Bug 1459-1 - Re-organize mdsal-binding2-spec
[mdsal.git] / binding2 / mdsal-binding2-java-api-generator / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>1.8.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.mdsal</groupId>
21     <artifactId>mdsal-binding2-java-api-generator</artifactId>
22     <version>0.10.0-SNAPSHOT</version>
23     <packaging>bundle</packaging>
24
25     <dependencyManagement>
26         <dependencies>
27             <dependency>
28                 <groupId>org.opendaylight.mdsal</groupId>
29                 <artifactId>mdsal-artifacts</artifactId>
30                 <version>2.2.0-SNAPSHOT</version>
31                 <type>pom</type>
32                 <scope>import</scope>
33             </dependency>
34             <dependency>
35                 <groupId>org.opendaylight.yangtools</groupId>
36                 <artifactId>yangtools-artifacts</artifactId>
37                 <version>1.1.0-SNAPSHOT</version>
38                 <type>pom</type>
39                 <scope>import</scope>
40             </dependency>
41         </dependencies>
42     </dependencyManagement>
43
44     <dependencies>
45         <dependency>
46             <groupId>org.opendaylight.mdsal</groupId>
47             <artifactId>mdsal-binding2-generator-impl</artifactId>
48             <scope>test</scope>
49         </dependency>
50         <dependency>
51             <groupId>org.opendaylight.mdsal</groupId>
52             <artifactId>mdsal-binding2-generator-util</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.opendaylight.mdsal</groupId>
56             <artifactId>mdsal-binding2-util</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>junit</groupId>
60             <artifactId>junit</artifactId>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>com.typesafe.play</groupId>
65             <artifactId>twirl-api_2.11</artifactId>
66             <version>1.1.1</version>
67         </dependency>
68         <dependency>
69             <groupId>com.google.guava</groupId>
70             <artifactId>guava</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.sonatype.plexus</groupId>
74             <artifactId>plexus-build-api</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.codehaus.plexus</groupId>
78             <artifactId>plexus-container-default</artifactId>
79             <version>1.6</version>
80             <scope>provided</scope>
81             <exclusions>
82                 <!-- plexus-build-api pulls in version 1.5.8, while this pulls in 3.0.20.
83                      Dependency convergence would break if we did not specify this. -->
84                 <exclusion>
85                     <groupId>org.codehaus.plexus</groupId>
86                     <artifactId>plexus-utils</artifactId>
87                 </exclusion>
88             </exclusions>
89         </dependency>
90
91         <dependency>
92             <groupId>org.mockito</groupId>
93             <artifactId>mockito-core</artifactId>
94         </dependency>
95     </dependencies>
96
97     <build>
98         <plugins>
99             <plugin>
100                 <groupId>org.apache.felix</groupId>
101                 <artifactId>maven-bundle-plugin</artifactId>
102                 <extensions>true</extensions>
103                 <configuration>
104                     <instructions>
105                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
106                         <Import-Package>
107                             !org.sonatype.plexus.build.incremental,
108                             *
109                         </Import-Package>
110                     </instructions>
111                 </configuration>
112             </plugin>
113
114             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
115             <plugin>
116                 <groupId>com.jakewharton.twirl</groupId>
117                 <artifactId>twirl-maven-plugin</artifactId>
118                 <version>1.0.4</version>
119                 <executions>
120                     <execution>
121                         <id>twirl-to-scala-first</id>
122                         <phase>generate-sources</phase>
123                         <goals>
124                             <goal>compile</goal>
125                         </goals>
126                     </execution>
127                 </executions>
128             </plugin>
129
130             <!-- Scala -> compile Scala files generated from Twirl -->
131             <plugin>
132                 <groupId>net.alchim31.maven</groupId>
133                 <artifactId>scala-maven-plugin</artifactId>
134                 <version>3.2.2</version>
135                 <executions>
136                     <execution>
137                         <id>scala-compile-second</id>
138                         <phase>process-resources</phase>
139                         <goals>
140                             <goal>add-source</goal>
141                             <goal>compile</goal>
142                         </goals>
143                     </execution>
144                 </executions>
145             </plugin>
146
147         </plugins>
148     </build>
149
150   <!--
151       Maven Site Configuration
152
153       The following configuration is necessary for maven-site-plugin to
154       correctly identify the correct deployment path for OpenDaylight Maven
155       sites.
156   -->
157   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
158
159   <distributionManagement>
160     <site>
161       <id>opendaylight-site</id>
162       <url>${nexus.site.url}/${project.artifactId}/</url>
163     </site>
164   </distributionManagement>
165
166 </project>