Break spurious dependencies
[openflowplugin.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     <parent>
5         <groupId>org.opendaylight.odlparent</groupId>
6         <artifactId>odlparent</artifactId>
7         <version>1.4.2-SNAPSHOT</version>
8         <relativePath></relativePath>
9     </parent>
10     <prerequisites>
11         <maven>3.0</maven>
12     </prerequisites>
13     <groupId>org.opendaylight.openflowplugin</groupId>
14     <artifactId>openflowplugin-parent</artifactId>
15     <version>0.0.3-SNAPSHOT</version>
16     <packaging>pom</packaging>
17
18     <scm>
19       <connection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</connection>
20       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</developerConnection>
21       <url>https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Main</url>
22       <tag>HEAD</tag>
23     </scm>
24
25     <distributionManagement>
26       <!-- OpenDayLight Released artifact -->
27       <repository>
28         <id>opendaylight-release</id>
29         <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release</url>
30       </repository>
31       <!-- OpenDayLight Snapshot artifact -->
32       <snapshotRepository>
33         <id>opendaylight-snapshot</id>
34         <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
35       </snapshotRepository>
36       <!-- Site deployment -->
37       <!-- site>
38            <id>website</id>
39            <url>${sitedeploy}</url>
40            </site -->
41     </distributionManagement>
42
43     <properties>
44       <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
45       <mdsal.version>1.1-SNAPSHOT</mdsal.version>
46       <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
47       <openflowjava.version>0.5-SNAPSHOT</openflowjava.version>
48       <controller.model.version>1.1-SNAPSHOT</controller.model.version>
49       <sal.api.version>0.8.1-SNAPSHOT</sal.api.version>
50       <sal.connection.api.version>0.1.2-SNAPSHOT</sal.connection.api.version>
51       <netconf.parent.version>0.2.5-SNAPSHOT</netconf.parent.version>
52       <config.parent.version>0.2.5-SNAPSHOT</config.parent.version>
53       <build.helper.version>1.8</build.helper.version>
54       <xtend.dstdir>src/main/xtend-gen</xtend.dstdir>
55       <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
56       <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
57       <exi.nagasena.version>0000.0002.0038.0</exi.nagasena.version>
58       <controller.distribution.version>0.1.2-SNAPSHOT</controller.distribution.version>
59
60       <!-- Sonar config -->
61       <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
62       <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
63       <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
64       <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
65       <sonar.profile>Sonar way with Findbugs</sonar.profile>
66     </properties>
67
68     <dependencyManagement>
69       <dependencies>
70         <dependency>
71           <groupId>org.opendaylight.openflowjava</groupId>
72           <artifactId>openflow-protocol-impl</artifactId>
73           <version>${openflowjava.version}</version>
74         </dependency>
75         <dependency>
76           <groupId>org.opendaylight.openflowjava</groupId>
77           <artifactId>openflow-protocol-api</artifactId>
78           <version>${openflowjava.version}</version>
79         </dependency>
80         <dependency>
81           <groupId>org.opendaylight.openflowjava</groupId>
82           <artifactId>openflow-protocol-spi</artifactId>
83           <version>${openflowjava.version}</version>
84         </dependency>
85         <dependency>
86           <groupId>org.opendaylight.openflowjava</groupId>
87           <artifactId>util</artifactId>
88           <version>${openflowjava.version}</version>
89         </dependency>
90         <dependency>
91           <groupId>org.opendaylight.openflowjava</groupId>
92           <artifactId>simple-client</artifactId>
93           <version>${openflowjava.version}</version>
94         </dependency>
95         <dependency>
96           <groupId>org.opendaylight.controller.model</groupId>
97           <artifactId>model-flow-base</artifactId>
98           <version>${controller.model.version}</version>
99         </dependency>
100         <dependency>
101           <groupId>org.opendaylight.controller.model</groupId>
102           <artifactId>model-flow-service</artifactId>
103           <version>${controller.model.version}</version>
104         </dependency>
105         <dependency>
106           <groupId>org.opendaylight.controller.model</groupId>
107           <artifactId>model-flow-statistics</artifactId>
108           <version>${controller.model.version}</version>
109         </dependency>
110         <dependency>
111           <groupId>org.opendaylight.controller.model</groupId>
112           <artifactId>model-inventory</artifactId>
113           <version>${controller.model.version}</version>
114         </dependency>
115         <dependency>
116           <groupId>org.opendaylight.controller</groupId>
117           <artifactId>sal-binding-api</artifactId>
118           <version>${controller.model.version}</version>
119         </dependency>
120         <dependency>
121             <groupId>org.opendaylight.controller</groupId>
122             <artifactId>liblldp</artifactId>
123             <version>${sal.api.version}</version>
124         </dependency>
125         <dependency>
126             <groupId>org.opendaylight.controller</groupId>
127             <artifactId>sal-common-util</artifactId>
128             <version>${controller.model.version}</version>
129         </dependency>
130
131         <!-- IT -->
132         <dependency>
133             <groupId>org.opendaylight.controller</groupId>
134             <artifactId>config-netconf-connector</artifactId>
135             <version>${netconf.parent.version}</version>
136         </dependency>
137         <dependency>
138             <groupId>org.opendaylight.controller</groupId>
139             <artifactId>sal-binding-it</artifactId>
140             <version>${controller.model.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>org.opendaylight.controller</groupId>
144             <artifactId>sal-binding-broker-impl</artifactId>
145             <version>${controller.model.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>org.opendaylight.controller</groupId>
149             <artifactId>config-manager</artifactId>
150             <version>${config.parent.version}</version>
151         </dependency>
152           <dependency>
153               <groupId>org.opendaylight.controller</groupId>
154               <artifactId>config-api</artifactId>
155               <version>${config.parent.version}</version>
156           </dependency>
157         <dependency>
158             <groupId>org.opendaylight.yangtools.thirdparty</groupId>
159             <artifactId>antlr4-runtime-osgi-nohead</artifactId>
160             <version>4.0</version>
161         </dependency>
162         <dependency>
163           <groupId>org.opendaylight.controller</groupId>
164           <artifactId>logback-config</artifactId>
165           <version>${config.parent.version}</version>
166         </dependency>
167         <dependency>
168           <groupId>org.opendaylight.controller</groupId>
169           <artifactId>config-persister-api</artifactId>
170           <version>${config.parent.version}</version>
171         </dependency>
172         <dependency>
173           <groupId>org.opendaylight.controller</groupId>
174           <artifactId>config-persister-impl</artifactId>
175           <version>${config.parent.version}</version>
176         </dependency>
177         <dependency>
178           <groupId>org.opendaylight.controller</groupId>
179           <artifactId>config-persister-file-xml-adapter</artifactId>
180           <version>${config.parent.version}</version>
181         </dependency>
182         <dependency>
183           <groupId>org.opendaylight.controller</groupId>
184           <artifactId>netconf-monitoring</artifactId>
185           <version>${netconf.parent.version}</version>
186         </dependency>
187         <dependency>
188           <groupId>org.opendaylight.controller</groupId>
189           <artifactId>netconf-client</artifactId>
190           <version>${netconf.parent.version}</version>
191         </dependency>
192         <dependency>
193           <groupId>org.opendaylight.controller</groupId>
194           <artifactId>netconf-impl</artifactId>
195           <version>${netconf.parent.version}</version>
196         </dependency>
197
198         <!-- thirdparty -->
199         <dependency>
200           <groupId>org.openexi</groupId>
201           <artifactId>nagasena</artifactId>
202           <version>${exi.nagasena.version}</version>
203         </dependency>
204         <dependency>
205           <groupId>org.openexi</groupId>
206           <artifactId>nagasena-rta</artifactId>
207           <version>${exi.nagasena.version}</version>
208         </dependency>
209         <dependency>
210           <groupId>org.opendaylight.controller.thirdparty</groupId>
211           <artifactId>ganymed</artifactId>
212           <version>1.1-SNAPSHOT</version>
213         </dependency>
214         <dependency>
215             <groupId>xml-apis</groupId>
216             <artifactId>xml-apis</artifactId>
217             <version>1.4.01</version>
218         </dependency>
219         <dependency>
220             <groupId>org.opendaylight.yangtools.thirdparty</groupId>
221             <artifactId>xtend-lib-osgi</artifactId>
222             <version>2.4.3</version>
223             <scope>test</scope>
224         </dependency>
225       </dependencies>
226     </dependencyManagement>
227
228     <dependencies>
229         <!-- Sonar -->
230         <dependency>
231             <groupId>org.codehaus.sonar-plugins.java</groupId>
232             <artifactId>sonar-jacoco-listeners</artifactId>
233             <version>${sonar-jacoco-listeners.version}</version>
234             <scope>test</scope>
235         </dependency>
236     </dependencies>
237
238     <build>
239         <plugins>
240             <plugin>
241                  <groupId>org.codehaus.mojo</groupId>
242                  <artifactId>build-helper-maven-plugin</artifactId>
243             </plugin>
244             <plugin>
245                 <groupId>org.jacoco</groupId>
246                 <artifactId>jacoco-maven-plugin</artifactId>
247                 <executions>
248                     <execution>
249                         <id>prepare-ut-agent</id>
250                         <phase>process-test-classes</phase>
251                         <goals>
252                             <goal>prepare-agent</goal>
253                         </goals>
254                         <configuration>
255                             <destFile>${sonar.jacoco.reportPath}</destFile>
256                             <propertyName>jacoco.agent.ut.arg</propertyName>
257                         </configuration>
258                     </execution>
259                     <execution>
260                         <id>prepare-it-agent</id>
261                         <phase>pre-integration-test</phase>
262                         <goals>
263                             <goal>prepare-agent</goal>
264                         </goals>
265                         <configuration>
266                             <destFile>${sonar.jacoco.itReportPath}</destFile>
267                             <propertyName>jacoco.agent.it.arg</propertyName>
268                         </configuration>
269                     </execution>
270                 </executions>
271             </plugin>
272         </plugins>
273         <pluginManagement>
274           <plugins>
275             <plugin>
276               <groupId>org.apache.maven.plugins</groupId>
277               <artifactId>maven-compiler-plugin</artifactId>
278               <configuration>
279                 <source>1.7</source>
280                 <target>1.7</target>
281               </configuration>
282             </plugin>
283             <plugin>
284               <groupId>org.ops4j.pax.exam</groupId>
285               <artifactId>maven-paxexam-plugin</artifactId>
286               <version>1.2.4</version>
287             </plugin>
288             <plugin>
289               <groupId>org.eclipse.xtend</groupId>
290               <artifactId>xtend-maven-plugin</artifactId>
291               <version>${xtend.version}</version>
292               <executions>
293                   <execution>
294                       <goals>
295                           <goal>compile</goal>
296                       </goals>
297                       <configuration>
298                           <outputDirectory>${xtend.dstdir}</outputDirectory>
299                       </configuration>
300                   </execution>
301               </executions>
302           </plugin>
303           <plugin>
304               <artifactId>maven-clean-plugin</artifactId>
305               <configuration>
306                   <filesets>
307                       <fileset>
308                           <directory>${xtend.dstdir}</directory>
309                           <includes>
310                               <include>**</include>
311                           </includes>
312                       </fileset>
313                       <fileset>
314                           <directory>${jmxGeneratorPath}</directory>
315                           <includes>
316                               <include>**</include>
317                           </includes>
318                       </fileset>
319                       <fileset>
320                           <directory>${salGeneratorPath}</directory>
321                           <includes>
322                               <include>**</include>
323                           </includes>
324                       </fileset>
325                   </filesets>
326               </configuration>
327             </plugin>
328           <plugin>
329              <groupId>org.codehaus.mojo</groupId>
330              <artifactId>build-helper-maven-plugin</artifactId>
331              <version>${build.helper.version}</version>
332              <executions>
333                 <execution>
334                    <id>add-source</id>
335                    <phase>generate-sources</phase>
336                    <goals>
337                       <goal>add-source</goal>
338                    </goals>
339                    <configuration>
340                       <sources>
341                          <source>${jmxGeneratorPath}</source>
342                          <source>${salGeneratorPath}</source>
343                          <source>${xtend.dstdir}</source>
344                       </sources>
345                    </configuration>
346                 </execution>
347              </executions>
348             </plugin>
349             <plugin>
350               <groupId>org.opendaylight.yangtools</groupId>
351               <artifactId>yang-maven-plugin</artifactId>
352               <version>0.6.2-SNAPSHOT</version>
353             </plugin>
354             <plugin>
355               <groupId>org.apache.felix</groupId>
356               <artifactId>maven-bundle-plugin</artifactId>
357               <version>${maven.bundle.version}</version>
358               <extensions>true</extensions>
359               <configuration>
360                 <instructions>
361                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
362                 </instructions>
363                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
364               </configuration>
365             </plugin>
366             <!-- Ignore/Execute plugin execution -->
367             <plugin>
368               <groupId>org.eclipse.m2e</groupId>
369               <artifactId>lifecycle-mapping</artifactId>
370               <version>1.0.0</version>
371               <configuration>
372                 <lifecycleMappingMetadata>
373                   <pluginExecutions>
374                     <pluginExecution>
375                       <pluginExecutionFilter>
376                         <groupId>org.codehaus.mojo</groupId>
377                         <artifactId>properties-maven-plugin</artifactId>
378                         <versionRange>[0.0,)</versionRange>
379                         <goals>
380                           <goal>set-system-properties</goal>
381                         </goals>
382                       </pluginExecutionFilter>
383                       <action>
384                         <ignore></ignore>
385                       </action>
386                     </pluginExecution>
387                     <pluginExecution>
388                       <pluginExecutionFilter>
389                         <groupId>org.codehaus.enunciate</groupId>
390                         <artifactId>maven-enunciate-plugin</artifactId>
391                         <versionRange>[0.0,)</versionRange>
392                         <goals>
393                           <goal>docs</goal>
394                         </goals>
395                       </pluginExecutionFilter>
396                       <action>
397                         <ignore></ignore>
398                       </action>
399                     </pluginExecution>
400                     <pluginExecution>
401                       <pluginExecutionFilter>
402                         <groupId>org.jacoco</groupId>
403                         <artifactId>jacoco-maven-plugin</artifactId>
404                         <versionRange>[0.0,)</versionRange>
405                         <goals>
406                           <goal>prepare-agent</goal>
407                           <goal>pre-test</goal>
408                           <goal>post-test</goal>
409                         </goals>
410                       </pluginExecutionFilter>
411                       <action>
412                         <ignore></ignore>
413                       </action>
414                     </pluginExecution>
415                     <pluginExecution>
416                       <pluginExecutionFilter>
417                         <groupId>org.ops4j.pax.exam</groupId>
418                         <artifactId>maven-paxexam-plugin</artifactId>
419                         <versionRange>[1.2.4,)</versionRange>
420                         <goals>
421                           <goal>generate-depends-file</goal>
422                         </goals>
423                       </pluginExecutionFilter>
424                       <action>
425                         <execute>
426                           <runOnIncremental>false</runOnIncremental>
427                         </execute>
428                       </action>
429                     </pluginExecution>
430                     <pluginExecution>
431                       <pluginExecutionFilter>
432                         <groupId>org.apache.maven.plugins</groupId>
433                         <artifactId>maven-checkstyle-plugin</artifactId>
434                         <versionRange>[2.0,)</versionRange>
435                         <goals>
436                           <goal>check</goal>
437                         </goals>
438                       </pluginExecutionFilter>
439                       <action>
440                         <ignore></ignore>
441                       </action>
442                     </pluginExecution>
443                     <pluginExecution>
444                       <pluginExecutionFilter>
445                         <groupId>org.opendaylight.yangtools</groupId>
446                         <artifactId>yang-maven-plugin</artifactId>
447                         <versionRange>[0.5,)</versionRange>
448                         <goals>
449                           <goal>generate-sources</goal>
450                         </goals>
451                       </pluginExecutionFilter>
452                       <action>
453                         <execute></execute>
454                       </action>
455                     </pluginExecution>
456                     <pluginExecution>
457                       <pluginExecutionFilter>
458                         <groupId>org.codehaus.groovy.maven</groupId>
459                         <artifactId>gmaven-plugin</artifactId>
460                         <versionRange>1.0</versionRange>
461                         <goals>
462                           <goal>execute</goal>
463                         </goals>
464                       </pluginExecutionFilter>
465                       <action>
466                         <ignore></ignore>
467                       </action>
468                     </pluginExecution>
469                     <pluginExecution>
470                       <pluginExecutionFilter>
471                         <groupId>org.apache.maven.plugins</groupId>
472                         <artifactId>maven-enforcer-plugin</artifactId>
473                         <versionRange>${enforcer.version}</versionRange>
474                         <goals>
475                           <goal>enforce</goal>
476                         </goals>
477                       </pluginExecutionFilter>
478                       <action>
479                         <ignore></ignore>
480                       </action>
481                     </pluginExecution>
482                   </pluginExecutions>
483                 </lifecycleMappingMetadata>
484               </configuration>
485             </plugin>
486             <plugin>
487               <groupId>org.apache.maven.plugins</groupId>
488               <artifactId>maven-failsafe-plugin</artifactId>
489               <configuration>
490                 <!-- Specific to generate mapping between tests and covered code -->
491                 <argLine>${jacoco.agent.it.arg}</argLine>
492                 <properties>
493                   <property>
494                     <name>listener</name>
495                     <value>org.sonar.java.jacoco.JUnitListener</value>
496                   </property>
497                 </properties>
498                 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
499                 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
500               </configuration>
501             </plugin>
502             <plugin>
503               <groupId>org.apache.maven.plugins</groupId>
504               <artifactId>maven-surefire-plugin</artifactId>
505               <configuration>
506                 <!-- Specific to generate mapping between tests and covered code -->
507                 <argLine>${jacoco.agent.ut.arg}</argLine>
508                 <properties>
509                   <property>
510                     <name>listener</name>
511                     <value>org.sonar.java.jacoco.JUnitListener</value>
512                   </property>
513                 </properties>
514               </configuration>
515             </plugin>
516           </plugins>
517         </pluginManagement>
518     </build>
519
520     <profiles>
521       <profile>
522         <id>findbugsReport</id>
523         <reporting>
524           <plugins>
525             <plugin>
526               <groupId>org.apache.maven.plugins</groupId>
527               <artifactId>maven-project-info-reports-plugin</artifactId>
528               <version>2.7</version>
529               <configuration>
530                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
531                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
532               </configuration>
533               <reportSets>
534                 <reportSet>
535                   <reports>
536                     <report>index</report>
537                     <report>project-team</report>
538                     <report>license</report>
539                     <report>mailing-list</report>
540                     <report>plugin-management</report>
541                     <report>cim</report>
542                     <report>issue-tracking</report>
543                     <report>scm</report>
544                     <report>summary</report>
545                   </reports>
546                 </reportSet>
547               </reportSets>
548             </plugin>
549             <plugin>
550               <groupId>org.codehaus.mojo</groupId>
551               <artifactId>findbugs-maven-plugin</artifactId>
552               <version>2.5.2</version>
553             </plugin>
554             <plugin>
555               <groupId>org.apache.maven.plugins</groupId>
556               <artifactId>maven-pmd-plugin</artifactId>
557               <version>3.0.1</version>
558             </plugin>
559             <plugin>
560               <groupId>org.apache.maven.plugins</groupId>
561               <artifactId>maven-jxr-plugin</artifactId>
562               <version>2.3</version>
563             </plugin>
564           </plugins>
565         </reporting>
566       </profile>
567     </profiles>
568
569     <repositories>
570       <repository>
571         <id>opendaylight-snapshot</id>
572         <name>opendaylight-snapshot</name>
573         <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
574         <releases>
575           <enabled>false</enabled>
576         </releases>
577       </repository>
578       <repository>
579         <id>public</id>
580         <name>public</name>
581         <url>http://nexus.opendaylight.org/content/groups/public</url>
582         <snapshots>
583           <enabled>false</enabled>
584         </snapshots>
585       </repository>
586
587     </repositories>
588
589     <pluginRepositories>
590       <pluginRepository>
591         <id>opendaylight-central</id>
592         <name>opendaylight-central</name>
593         <url>http://nexus.opendaylight.org/content/repositories/public</url>
594         <snapshots>
595           <enabled>false</enabled>
596         </snapshots>
597       </pluginRepository>
598       <pluginRepository>
599         <id>opendaylight-snapshot</id>
600         <name>central2</name>
601         <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
602         <releases>
603           <enabled>false</enabled>
604         </releases>
605       </pluginRepository>
606     </pluginRepositories>
607
608     <modules>
609       <module>openflowplugin-api</module>
610       <module>openflowplugin</module>
611       <module>extension</module>
612       <module>distribution/base</module>
613       <module>distribution/cbench</module>            
614       <module>openflowplugin-controller-config</module>
615       <module>openflowplugin-it</module>
616       <module>test-provider</module>
617       <module>drop-test</module>
618       <module>features</module>
619       <module>samples/sample-consumer</module>
620       <module>samples/learning-switch</module>
621     </modules>
622 </project>