Fixed yangtools maven-sal-api-gen-plugin version
[openflowjava.git] / pom.xml
1 <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">
2     <modelVersion>4.0.0</modelVersion>
3     <groupId>org.opendaylight.openflowjava</groupId>
4     <artifactId>openflow-protocol-parent</artifactId>
5     <version>0.4-1-SNAPSHOT</version>
6     <packaging>pom</packaging>
7     <modules>
8         <module>openflow-protocol-api</module>
9         <module>openflow-protocol-spi</module>
10         <module>openflow-protocol-impl</module>
11         <module>openflow-protocol-it</module>
12         <module>simple-client</module>
13     </modules>
14     <scm>
15         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
16         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
17         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
18       <tag>HEAD</tag>
19     </scm>
20
21     <properties>
22         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
23         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
24         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
25         <siteplugin>3.2</siteplugin>
26         <projectinfo>2.6</projectinfo>
27         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28         <compiler.version>2.3.2</compiler.version>
29         <surefire.version>2.13</surefire.version>
30         <exam.version>3.0.0</exam.version>
31         <url.version>1.5.0</url.version>
32         <enunciate.version>1.26.2</enunciate.version>
33         <sonar.branch>${user.name}-private-view</sonar.branch>
34         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
35         <logback.version>1.0.9</logback.version>
36         <slf4j.version>1.7.2</slf4j.version>
37         <yang.prototype.version>1.0-1-SNAPSHOT</yang.prototype.version>
38         <ietf.model.version>2010.09.24.3-1-SNAPSHOT</ietf.model.version>
39         <yang.ext.version>2013.09.07.3-1-SNAPSHOT</yang.ext.version>
40         <maven.bundle.version>2.4.0</maven.bundle.version>
41         <guava.version>14.0.1</guava.version> 
42         <netty.version>4.0.17.Final</netty.version>
43         <releaseplugin.version>2.3.2</releaseplugin.version>
44         <yangtools.version>0.6.1-1-SNAPSHOT</yangtools.version>
45         <yangtools.generator.version>0.6.1-1-SNAPSHOT</yangtools.generator.version>
46         <config.version>0.2.3-1-SNAPSHOT</config.version>
47     </properties>
48
49     <pluginRepositories>
50         <!-- Opendaylight public group -->
51         <pluginRepository>
52             <id>odlPublic</id>
53             <name>odlPublic</name>
54             <url>${nexusproxy}/groups/public/</url>
55             <snapshots>
56               <enabled>false</enabled>
57             </snapshots>
58         </pluginRepository>
59         <!-- OpenDayLight Snapshot artifact -->
60         <pluginRepository>
61             <id>opendaylight-snapshot</id>
62             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
63             <releases>
64               <enabled>false</enabled>
65             </releases>
66         </pluginRepository>
67     </pluginRepositories>
68
69
70     <repositories>
71         <!-- Opendaylight public group -->
72         <repository>
73             <id>odlPublic</id>
74             <name>odlPublic</name>
75             <url>${nexusproxy}/groups/public/</url>
76             <snapshots>
77               <enabled>false</enabled>
78             </snapshots>
79         </repository>
80         <!-- OpenDayLight Snapshot artifact -->
81         <repository>
82             <id>opendaylight-snapshot</id>
83             <name>opendaylight-snapshot</name>
84             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
85             <releases>
86               <enabled>false</enabled>
87             </releases>
88         </repository>
89     </repositories>
90     <distributionManagement>
91         <!-- OpenDayLight Released artifact -->
92         <repository>
93             <id>opendaylight-release</id>
94             <url>${nexusproxy}/repositories/opendaylight.release/</url>
95         </repository>
96         <!-- OpenDayLight Snapshot artifact -->
97         <snapshotRepository>
98             <id>opendaylight-snapshot</id>
99             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
100         </snapshotRepository>
101         <!-- Site deployment -->
102         <!-- site>
103             <id>website</id>
104             <url>${sitedeploy}</url>
105         </site -->
106     </distributionManagement>
107
108
109     <dependencyManagement>
110         <dependencies>
111             <dependency>
112                 <groupId>org.slf4j</groupId>
113                 <artifactId>slf4j-api</artifactId>
114                 <version>${slf4j.version}</version>
115             </dependency>
116             <dependency>
117                 <groupId>io.netty</groupId>
118                 <artifactId>netty-handler</artifactId>
119                 <version>${netty.version}</version>
120             </dependency>
121             <dependency>
122                 <groupId>com.google.guava</groupId>
123                 <artifactId>guava</artifactId>
124                 <version>${guava.version}</version>
125             </dependency>
126             <dependency>
127                 <groupId>org.opendaylight.yangtools.model</groupId>
128                 <artifactId>ietf-inet-types</artifactId>
129                 <version>${ietf.model.version}</version>
130             </dependency>
131             <dependency>
132                 <groupId>org.opendaylight.yangtools.model</groupId>
133                 <artifactId>ietf-yang-types</artifactId>
134                 <version>${ietf.model.version}</version>
135             </dependency>
136             <dependency>
137                 <groupId>org.opendaylight.yangtools.model</groupId>
138                 <artifactId>yang-ext</artifactId>
139                 <version>${yang.ext.version}</version>
140             </dependency>
141             <dependency>
142                 <groupId>org.osgi</groupId>
143                 <artifactId>org.osgi.core</artifactId>
144                 <version>5.0.0</version>
145             </dependency>
146             <dependency>
147                 <groupId>junit</groupId>
148                 <artifactId>junit</artifactId>
149                 <version>4.10</version>
150                 <scope>test</scope>
151                 <optional>true</optional>
152             </dependency>
153             <dependency>
154                 <groupId>org.mockito</groupId>
155                 <artifactId>mockito-all</artifactId>
156                 <version>1.9.5</version>
157                 <scope>test</scope>
158             </dependency>
159         </dependencies>
160     </dependencyManagement>
161     <build>
162         <plugins>
163             <plugin>
164                 <groupId>org.apache.maven.plugins</groupId>
165                 <artifactId>maven-compiler-plugin</artifactId>
166                 <version>${compiler.version}</version>
167                 <inherited>true</inherited>
168                 <configuration>
169                     <source>1.7</source>
170                     <target>1.7</target>
171                 </configuration>
172             </plugin>
173             <plugin>
174                 <artifactId>maven-source-plugin</artifactId>
175                 <executions>
176                     <execution>
177                         <id>attach-sources</id>
178                         <phase>deploy</phase>
179                         <goals>
180                             <goal>jar-no-fork</goal>
181                         </goals> 
182                     </execution>
183                 </executions>
184             </plugin>
185             <plugin>
186               <groupId>org.apache.felix</groupId>
187               <artifactId>maven-bundle-plugin</artifactId>
188               <version>${maven.bundle.version}</version>
189               <extensions>true</extensions>
190               <configuration>
191                 <instructions>
192                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
193                 </instructions>
194                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
195               </configuration>
196             </plugin>
197         </plugins>
198         <pluginManagement>
199             <plugins>
200                 <plugin>
201                     <groupId>org.apache.maven.plugins</groupId>
202                     <artifactId>maven-source-plugin</artifactId>
203                     <version>2.2.1</version>
204                 </plugin>
205                 <plugin>
206                     <groupId>org.apache.maven.plugins</groupId>
207                     <artifactId>maven-deploy-plugin</artifactId>
208                     <version>2.7</version>
209                 </plugin>
210                 <plugin>
211                     <groupId>org.apache.maven.plugins</groupId>
212                     <artifactId>maven-jar-plugin</artifactId>
213                     <version>2.4</version>
214                 </plugin>
215                 <plugin>
216                     <groupId>org.apache.maven.plugins</groupId>
217                     <artifactId>maven-release-plugin</artifactId>
218                     <version>${releaseplugin.version}</version>
219                 </plugin>
220                 <plugin>
221                     <groupId>org.opendaylight.yangtools</groupId>
222                     <artifactId>yang-maven-plugin</artifactId>
223                     <version>${yangtools.version}</version>
224                 </plugin>
225                 <plugin>
226                     <groupId>org.apache.felix</groupId>
227                     <artifactId>maven-bundle-plugin</artifactId>
228                     <version>${maven.bundle.version}</version>
229                 </plugin>
230             </plugins>
231         </pluginManagement>
232     </build>
233     <reporting>
234         <plugins>
235             <plugin>
236                 <groupId>org.codehaus.mojo</groupId>
237                 <artifactId>findbugs-maven-plugin</artifactId>
238                 <version>2.5.2</version>
239                 <configuration>
240                     <effort>Max</effort>
241                     <threshold>Low</threshold>
242                     <goal>site</goal>
243                 </configuration>
244             </plugin>
245             <plugin>
246               <artifactId>maven-jxr-plugin</artifactId>
247               <version>2.3</version>
248               <configuration>
249                 <aggregate>true</aggregate>
250                 <linkJavadoc>true</linkJavadoc>
251               </configuration>
252             </plugin>
253
254             <plugin>
255                 <groupId>org.codehaus.mojo</groupId>
256                 <artifactId>jdepend-maven-plugin</artifactId>
257                 <version>2.0-beta-2</version>
258             </plugin>
259         </plugins>
260     </reporting>
261     <profiles>
262         <profile>
263             <id>viewbuild</id>
264             <activation>
265                 <activeByDefault>true</activeByDefault>
266             </activation>
267             <properties>
268                 <build.suffix>${project.version}</build.suffix>
269             </properties>
270         </profile>
271         <profile>
272             <id>jenkins</id>
273             <activation>
274                 <property>
275                     <name>BUILDSUFFIX</name>
276                 </property>
277             </activation>
278             <properties>
279                 <build.suffix>${BUILDSUFFIX}</build.suffix>
280             </properties>
281         </profile>
282         <profile>
283             <id>repoBuild</id>
284             <build>
285                 <plugins>
286                     <plugin>
287                         <groupId>org.apache.maven.plugins</groupId>
288                         <artifactId>maven-javadoc-plugin</artifactId>
289                         <version>2.8.1</version>
290                         <executions>
291                             <execution>
292                                 <goals>
293                                     <goal>aggregate</goal>
294                                 </goals>
295                                 <phase>site</phase>
296                             </execution>
297                             <execution>
298                                 <id>attach-javadocs</id>
299                                 <goals>
300                                     <goal>jar</goal>
301                                 </goals>
302                             </execution>
303                         </executions>
304                     </plugin>
305                     <plugin>
306                         <groupId>org.apache.maven.plugins</groupId>
307                         <artifactId>maven-source-plugin</artifactId>
308                         <executions>
309                             <execution>
310                                 <id>attach-sources</id>
311                                 <phase>package</phase>
312                                 <goals>
313                                     <goal>jar-no-fork</goal>
314                                 </goals>
315                             </execution>
316                         </executions>
317                     </plugin>
318                 </plugins>
319             </build>
320         </profile>
321     </profiles>
322 </project>