Merge "TLS unit test resources moved from src/main/resources to test/main/resources"
[openflowjava.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4     <groupId>org.opendaylight.openflowjava</groupId>
5     <artifactId>openflow-protocol-parent</artifactId>
6     <version>0.5-SNAPSHOT</version>
7     <packaging>pom</packaging>
8     <modules>
9         <module>openflow-protocol-api</module>
10         <module>openflow-protocol-spi</module>
11         <module>openflow-protocol-impl</module>
12         <module>openflow-protocol-it</module>
13         <module>feature</module>
14         <module>simple-client</module>
15     </modules>
16     <scm>
17         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
18         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
19         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
20       <tag>HEAD</tag>
21     </scm>
22
23     <properties>
24         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
25         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
26         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
27         <siteplugin>3.2</siteplugin>
28         <projectinfo>2.6</projectinfo>
29         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30         <compiler.version>2.3.2</compiler.version>
31         <surefire.version>2.13</surefire.version>
32         <exam.version>3.0.0</exam.version>
33         <url.version>1.5.0</url.version>
34         <enunciate.version>1.26.2</enunciate.version>
35         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
36         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
37         <sonar.branch>${user.name}-private-view</sonar.branch>
38         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
39         <logback.version>1.0.9</logback.version>
40         <slf4j.version>1.7.2</slf4j.version>
41         <yang.prototype.version>1.1-SNAPSHOT</yang.prototype.version>
42         <ietf.model.version>2010.09.24.4-SNAPSHOT</ietf.model.version>
43         <yang.ext.version>2013.09.07.4-SNAPSHOT</yang.ext.version>
44         <maven.bundle.version>2.4.0</maven.bundle.version>
45         <guava.version>14.0.1</guava.version> 
46         <netty.version>4.0.19.Final</netty.version>
47         <releaseplugin.version>2.3.2</releaseplugin.version>
48         <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
49         <yangtools.generator.version>0.6.2-SNAPSHOT</yangtools.generator.version>
50         <config.version>0.2.5-SNAPSHOT</config.version>
51     </properties>
52
53     <pluginRepositories>
54         <!-- Opendaylight public group -->
55         <pluginRepository>
56             <id>odlPublic</id>
57             <name>odlPublic</name>
58             <url>${nexusproxy}/groups/public/</url>
59             <snapshots>
60               <enabled>false</enabled>
61             </snapshots>
62         </pluginRepository>
63         <!-- OpenDayLight Snapshot artifact -->
64         <pluginRepository>
65             <id>opendaylight-snapshot</id>
66             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
67             <releases>
68               <enabled>false</enabled>
69             </releases>
70         </pluginRepository>
71     </pluginRepositories>
72
73
74     <repositories>
75         <!-- Opendaylight public group -->
76         <repository>
77             <id>odlPublic</id>
78             <name>odlPublic</name>
79             <url>${nexusproxy}/groups/public/</url>
80             <snapshots>
81               <enabled>false</enabled>
82             </snapshots>
83         </repository>
84         <!-- OpenDayLight Snapshot artifact -->
85         <repository>
86             <id>opendaylight-snapshot</id>
87             <name>opendaylight-snapshot</name>
88             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
89             <releases>
90               <enabled>false</enabled>
91             </releases>
92         </repository>
93     </repositories>
94     <distributionManagement>
95         <!-- OpenDayLight Released artifact -->
96         <repository>
97             <id>opendaylight-release</id>
98             <url>${nexusproxy}/repositories/opendaylight.release/</url>
99         </repository>
100         <!-- OpenDayLight Snapshot artifact -->
101         <snapshotRepository>
102             <id>opendaylight-snapshot</id>
103             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
104         </snapshotRepository>
105         <!-- Site deployment -->
106         <!-- site>
107             <id>website</id>
108             <url>${sitedeploy}</url>
109         </site -->
110     </distributionManagement>
111
112
113     <dependencyManagement>
114         <dependencies>
115             <dependency>
116                 <groupId>org.slf4j</groupId>
117                 <artifactId>slf4j-api</artifactId>
118                 <version>${slf4j.version}</version>
119             </dependency>
120             <dependency>
121                 <groupId>io.netty</groupId>
122                 <artifactId>netty-buffer</artifactId>
123                 <version>${netty.version}</version>
124             </dependency>
125             <dependency>
126                 <groupId>io.netty</groupId>
127                 <artifactId>netty-handler</artifactId>
128                 <version>${netty.version}</version>
129             </dependency>
130             <dependency>
131                 <groupId>com.google.guava</groupId>
132                 <artifactId>guava</artifactId>
133                 <version>${guava.version}</version>
134             </dependency>
135             <dependency>
136                 <groupId>org.opendaylight.yangtools.model</groupId>
137                 <artifactId>ietf-inet-types</artifactId>
138                 <version>${ietf.model.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>org.opendaylight.yangtools.model</groupId>
142                 <artifactId>ietf-yang-types</artifactId>
143                 <version>${ietf.model.version}</version>
144             </dependency>
145             <dependency>
146                 <groupId>org.opendaylight.yangtools.model</groupId>
147                 <artifactId>yang-ext</artifactId>
148                 <version>${yang.ext.version}</version>
149             </dependency>
150             <dependency>
151                 <groupId>org.osgi</groupId>
152                 <artifactId>org.osgi.core</artifactId>
153                 <version>5.0.0</version>
154             </dependency>
155             <dependency>
156                 <groupId>org.opendaylight.controller</groupId>
157                 <artifactId>config-api</artifactId>
158                 <version>0.2.5-SNAPSHOT</version>
159             </dependency>
160             <dependency>
161                 <groupId>junit</groupId>
162                 <artifactId>junit</artifactId>
163                 <version>4.10</version>
164                 <scope>test</scope>
165                 <optional>true</optional>
166             </dependency>
167             <dependency>
168                 <groupId>org.mockito</groupId>
169                 <artifactId>mockito-all</artifactId>
170                 <version>1.9.5</version>
171                 <scope>test</scope>
172             </dependency>
173         </dependencies>
174     </dependencyManagement>
175     <build>
176         <plugins>
177             <plugin>
178                 <groupId>org.apache.maven.plugins</groupId>
179                 <artifactId>maven-compiler-plugin</artifactId>
180                 <version>${compiler.version}</version>
181                 <inherited>true</inherited>
182                 <configuration>
183                     <source>1.7</source>
184                     <target>1.7</target>
185                 </configuration>
186             </plugin>
187             <plugin>
188                 <artifactId>maven-source-plugin</artifactId>
189                 <executions>
190                     <execution>
191                         <id>attach-sources</id>
192                         <phase>deploy</phase>
193                         <goals>
194                             <goal>jar-no-fork</goal>
195                         </goals> 
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200               <groupId>org.apache.felix</groupId>
201               <artifactId>maven-bundle-plugin</artifactId>
202               <extensions>true</extensions>
203               <configuration>
204                 <instructions>
205                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
206                 </instructions>
207                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
208               </configuration>
209             </plugin>
210             <plugin>
211               <groupId>org.apache.maven.plugins</groupId>
212               <artifactId>maven-checkstyle-plugin</artifactId>
213               <version>2.12</version>
214               <configuration>
215                 <failOnViolation>false</failOnViolation>
216                 <configLocation>checkstyle-logging.xml</configLocation>
217                 <consoleOutput>true</consoleOutput>
218                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
219                 <sourceDirectory>${project.basedir}</sourceDirectory>
220                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
221                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
222               </configuration>
223               <dependencies>
224                 <dependency>
225                 <groupId>org.opendaylight.yangtools</groupId>
226                 <artifactId>checkstyle-logging</artifactId>
227                 <version>${yangtools.version}</version>
228                 </dependency>
229               </dependencies>
230               <executions>
231                 <execution>
232                 <goals>
233                   <goal>check</goal>
234                 </goals>
235                 </execution>
236               </executions>
237             </plugin>
238             <plugin>
239                 <groupId>org.codehaus.mojo</groupId>
240                 <artifactId>build-helper-maven-plugin</artifactId>
241             </plugin>
242         </plugins>
243         <pluginManagement>
244             <plugins>
245                 <plugin>
246                     <groupId>org.apache.maven.plugins</groupId>
247                     <artifactId>maven-source-plugin</artifactId>
248                     <version>2.2.1</version>
249                 </plugin>
250                 <plugin>
251                     <groupId>org.apache.maven.plugins</groupId>
252                     <artifactId>maven-deploy-plugin</artifactId>
253                     <version>2.7</version>
254                 </plugin>
255                 <plugin>
256                     <groupId>org.apache.maven.plugins</groupId>
257                     <artifactId>maven-jar-plugin</artifactId>
258                     <version>2.4</version>
259                 </plugin>
260                 <plugin>
261                     <groupId>org.apache.maven.plugins</groupId>
262                     <artifactId>maven-release-plugin</artifactId>
263                     <version>${releaseplugin.version}</version>
264                 </plugin>
265                 <plugin>
266                     <groupId>org.opendaylight.yangtools</groupId>
267                     <artifactId>yang-maven-plugin</artifactId>
268                     <version>${yangtools.version}</version>
269                 </plugin>
270                 <plugin>
271                     <groupId>org.apache.felix</groupId>
272                     <artifactId>maven-bundle-plugin</artifactId>
273                     <version>${maven.bundle.version}</version>
274                 </plugin>
275                 <plugin>
276                     <groupId>org.codehaus.mojo</groupId>
277                     <artifactId>build-helper-maven-plugin</artifactId>
278                     <version>1.8</version>
279                     <executions>
280                         <execution>
281                             <id>add-source</id>
282                             <goals>
283                                 <goal>add-source</goal>
284                             </goals>
285                             <phase>generate-sources</phase>
286                             <configuration>
287                                 <sources>
288                                     <source>src/main/yang</source>
289                                     <source>${jmxGeneratorPath}</source>
290                                     <source>${salGeneratorPath}</source>
291                                 </sources>
292                             </configuration>
293                         </execution>
294                     </executions>
295                 </plugin>
296                 <!-- Ignore/Execute plugin execution -->
297                 <plugin>
298                   <groupId>org.eclipse.m2e</groupId>
299                   <artifactId>lifecycle-mapping</artifactId>
300                   <version>1.0.0</version>
301                   <configuration>
302                     <lifecycleMappingMetadata>
303                       <pluginExecutions>
304                         <pluginExecution>
305                           <pluginExecutionFilter>
306                             <groupId>org.codehaus.mojo</groupId>
307                             <artifactId>properties-maven-plugin</artifactId>
308                             <versionRange>[0.0,)</versionRange>
309                             <goals>
310                               <goal>set-system-properties</goal>
311                             </goals>
312                           </pluginExecutionFilter>
313                           <action>
314                             <ignore></ignore>
315                           </action>
316                         </pluginExecution>
317                         <pluginExecution>
318                           <pluginExecutionFilter>
319                             <groupId>org.codehaus.enunciate</groupId>
320                             <artifactId>maven-enunciate-plugin</artifactId>
321                             <versionRange>[0.0,)</versionRange>
322                             <goals>
323                               <goal>docs</goal>
324                             </goals>
325                           </pluginExecutionFilter>
326                           <action>
327                             <ignore></ignore>
328                           </action>
329                         </pluginExecution>
330                         <pluginExecution>
331                           <pluginExecutionFilter>
332                             <groupId>org.jacoco</groupId>
333                             <artifactId>jacoco-maven-plugin</artifactId>
334                             <versionRange>[0.0,)</versionRange>
335                             <goals>
336                               <goal>prepare-agent</goal>
337                               <goal>pre-test</goal>
338                               <goal>post-test</goal>
339                             </goals>
340                           </pluginExecutionFilter>
341                           <action>
342                             <ignore></ignore>
343                           </action>
344                         </pluginExecution>
345                         <pluginExecution>
346                           <pluginExecutionFilter>
347                             <groupId>org.ops4j.pax.exam</groupId>
348                             <artifactId>maven-paxexam-plugin</artifactId>
349                             <versionRange>[1.2.4,)</versionRange>
350                             <goals>
351                               <goal>generate-depends-file</goal>
352                             </goals>
353                           </pluginExecutionFilter>
354                           <action>
355                             <execute>
356                               <runOnIncremental>false</runOnIncremental>
357                             </execute>
358                           </action>
359                         </pluginExecution>
360                         <pluginExecution>
361                           <pluginExecutionFilter>
362                             <groupId>org.apache.maven.plugins</groupId>
363                             <artifactId>maven-checkstyle-plugin</artifactId>
364                             <versionRange>[2.0,)</versionRange>
365                             <goals>
366                               <goal>check</goal>
367                             </goals>
368                           </pluginExecutionFilter>
369                           <action>
370                             <ignore></ignore>
371                           </action>
372                         </pluginExecution>
373                         <pluginExecution>
374                           <pluginExecutionFilter>
375                             <groupId>org.opendaylight.yangtools</groupId>
376                             <artifactId>yang-maven-plugin</artifactId>
377                             <versionRange>[0.5,)</versionRange>
378                             <goals>
379                               <goal>generate-sources</goal>
380                             </goals>
381                           </pluginExecutionFilter>
382                           <action>
383                             <execute></execute>
384                           </action>
385                         </pluginExecution>
386                         <pluginExecution>
387                           <pluginExecutionFilter>
388                             <groupId>org.codehaus.groovy.maven</groupId>
389                             <artifactId>gmaven-plugin</artifactId>
390                             <versionRange>1.0</versionRange>
391                             <goals>
392                               <goal>execute</goal>
393                             </goals>
394                           </pluginExecutionFilter>
395                           <action>
396                             <ignore></ignore>
397                           </action>
398                         </pluginExecution>
399                         <pluginExecution>
400                           <pluginExecutionFilter>
401                             <groupId>org.apache.maven.plugins</groupId>
402                             <artifactId>maven-enforcer-plugin</artifactId>
403                             <versionRange>${enforcer.version}</versionRange>
404                             <goals>
405                               <goal>enforce</goal>
406                             </goals>
407                           </pluginExecutionFilter>
408                           <action>
409                             <ignore></ignore>
410                           </action>
411                         </pluginExecution>
412                       </pluginExecutions>
413                     </lifecycleMappingMetadata>
414                   </configuration>
415                 </plugin>
416             </plugins>
417         </pluginManagement>
418     </build>
419     <reporting>
420         <plugins>
421             <plugin>
422                 <groupId>org.codehaus.mojo</groupId>
423                 <artifactId>findbugs-maven-plugin</artifactId>
424                 <version>2.5.2</version>
425                 <configuration>
426                     <effort>Max</effort>
427                     <threshold>Low</threshold>
428                     <goal>site</goal>
429                 </configuration>
430             </plugin>
431             <plugin>
432               <artifactId>maven-jxr-plugin</artifactId>
433               <version>2.3</version>
434               <configuration>
435                 <aggregate>true</aggregate>
436                 <linkJavadoc>true</linkJavadoc>
437               </configuration>
438             </plugin>
439
440             <plugin>
441                 <groupId>org.codehaus.mojo</groupId>
442                 <artifactId>jdepend-maven-plugin</artifactId>
443                 <version>2.0-beta-2</version>
444             </plugin>
445         </plugins>
446     </reporting>
447     <profiles>
448         <profile>
449             <id>viewbuild</id>
450             <activation>
451                 <activeByDefault>true</activeByDefault>
452             </activation>
453             <properties>
454                 <build.suffix>${project.version}</build.suffix>
455             </properties>
456         </profile>
457         <profile>
458             <id>jenkins</id>
459             <activation>
460                 <property>
461                     <name>BUILDSUFFIX</name>
462                 </property>
463             </activation>
464             <properties>
465                 <build.suffix>${BUILDSUFFIX}</build.suffix>
466             </properties>
467         </profile>
468         <profile>
469             <id>repoBuild</id>
470             <build>
471                 <plugins>
472                     <plugin>
473                         <groupId>org.apache.maven.plugins</groupId>
474                         <artifactId>maven-javadoc-plugin</artifactId>
475                         <version>2.8.1</version>
476                         <executions>
477                             <execution>
478                                 <goals>
479                                     <goal>aggregate</goal>
480                                 </goals>
481                                 <phase>site</phase>
482                             </execution>
483                             <execution>
484                                 <id>attach-javadocs</id>
485                                 <goals>
486                                     <goal>jar</goal>
487                                 </goals>
488                             </execution>
489                         </executions>
490                     </plugin>
491                     <plugin>
492                         <groupId>org.apache.maven.plugins</groupId>
493                         <artifactId>maven-source-plugin</artifactId>
494                         <executions>
495                             <execution>
496                                 <id>attach-sources</id>
497                                 <phase>package</phase>
498                                 <goals>
499                                     <goal>jar-no-fork</goal>
500                                 </goals>
501                             </execution>
502                         </executions>
503                     </plugin>
504                 </plugins>
505             </build>
506         </profile>
507     </profiles>
508 </project>