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>
5 <groupId>org.opendaylight.odlparent</groupId>
6 <artifactId>odlparent</artifactId>
7 <version>1.5.0-SNAPSHOT</version>
11 <groupId>org.opendaylight.openflowjava</groupId>
12 <artifactId>openflow-protocol-parent</artifactId>
13 <version>0.6.0-SNAPSHOT</version>
14 <name>openflowjava</name> <!-- Used by Sonar to set project name -->
15 <packaging>pom</packaging>
18 <module>openflowjava-config</module>
19 <module>openflow-protocol-api</module>
20 <module>openflow-protocol-spi</module>
22 <module>openflow-protocol-impl</module>
23 <module>openflow-protocol-it</module>
24 <module>features</module>
25 <module>simple-client</module>
28 <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
29 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
30 <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
35 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
36 <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
39 <karaf.distro.empty.version>1.5.0-SNAPSHOT</karaf.distro.empty.version>
40 <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
41 <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
42 <yang.prototype.version>1.2.0-SNAPSHOT</yang.prototype.version>
43 <ietf.model.version>2010.09.24.7-SNAPSHOT</ietf.model.version>
44 <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
45 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
46 <yangtools.generator.version>0.7.0-SNAPSHOT</yangtools.generator.version>
47 <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
48 <config.version>0.3.0-SNAPSHOT</config.version>
51 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
52 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
53 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
54 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57 <distributionManagement>
58 <!-- OpenDayLight Released artifact -->
60 <id>opendaylight-release</id>
61 <url>${nexusproxy}/repositories/opendaylight.release/</url>
63 <!-- OpenDayLight Snapshot artifact -->
65 <id>opendaylight-snapshot</id>
66 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
68 <!-- Site deployment -->
71 <url>${sitedeploy}</url>
73 </distributionManagement>
76 <dependencyManagement>
78 <!-- feature dependencies -->
80 <groupId>org.opendaylight.yangtools</groupId>
81 <artifactId>features-yangtools</artifactId>
82 <version>${yangtools.version}</version>
83 <classifier>features</classifier>
87 <groupId>org.opendaylight.controller</groupId>
88 <artifactId>features-config</artifactId>
89 <version>${config.version}</version>
90 <classifier>features</classifier>
94 <groupId>org.opendaylight.yangtools.model</groupId>
95 <artifactId>ietf-inet-types</artifactId>
96 <version>${ietf.model.version}</version>
99 <groupId>org.opendaylight.yangtools.model</groupId>
100 <artifactId>ietf-yang-types</artifactId>
101 <version>${ietf.model.version}</version>
104 <groupId>org.opendaylight.yangtools.model</groupId>
105 <artifactId>yang-ext</artifactId>
106 <version>${yang.ext.version}</version>
109 <groupId>org.opendaylight.controller</groupId>
110 <artifactId>config-api</artifactId>
111 <version>0.3.0-SNAPSHOT</version>
114 <groupId>org.opendaylight.yangtools</groupId>
115 <artifactId>features-test</artifactId>
116 <version>${yangtools.version}</version>
119 </dependencyManagement>
124 <groupId>org.codehaus.sonar-plugins.java</groupId>
125 <artifactId>sonar-jacoco-listeners</artifactId>
126 <version>${sonar-jacoco-listeners.version}</version>
134 <groupId>org.apache.maven.plugins</groupId>
135 <artifactId>maven-compiler-plugin</artifactId>
136 <inherited>true</inherited>
143 <artifactId>maven-source-plugin</artifactId>
146 <id>attach-sources</id>
147 <phase>deploy</phase>
149 <goal>jar-no-fork</goal>
155 <groupId>org.apache.felix</groupId>
156 <artifactId>maven-bundle-plugin</artifactId>
157 <extensions>true</extensions>
160 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
162 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-checkstyle-plugin</artifactId>
168 <version>2.12</version>
170 <failOnViolation>false</failOnViolation>
171 <configLocation>checkstyle-logging.xml</configLocation>
172 <consoleOutput>true</consoleOutput>
173 <includeTestSourceDirectory>true</includeTestSourceDirectory>
174 <sourceDirectory>${project.basedir}</sourceDirectory>
175 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
176 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
180 <groupId>org.opendaylight.yangtools</groupId>
181 <artifactId>checkstyle-logging</artifactId>
182 <version>${yangtools.version}</version>
194 <groupId>org.codehaus.mojo</groupId>
195 <artifactId>build-helper-maven-plugin</artifactId>
198 <groupId>org.jacoco</groupId>
199 <artifactId>jacoco-maven-plugin</artifactId>
202 <id>prepare-ut-agent</id>
203 <phase>process-test-classes</phase>
205 <goal>prepare-agent</goal>
208 <destFile>${sonar.jacoco.reportPath}</destFile>
209 <propertyName>jacoco.agent.ut.arg</propertyName>
213 <id>prepare-it-agent</id>
214 <phase>pre-integration-test</phase>
216 <goal>prepare-agent</goal>
219 <destFile>${sonar.jacoco.itReportPath}</destFile>
220 <propertyName>jacoco.agent.it.arg</propertyName>
229 <groupId>org.opendaylight.yangtools</groupId>
230 <artifactId>yang-maven-plugin</artifactId>
231 <version>${yangtools.version}</version>
234 <groupId>org.codehaus.mojo</groupId>
235 <artifactId>build-helper-maven-plugin</artifactId>
236 <version>1.8</version>
241 <goal>add-source</goal>
243 <phase>generate-sources</phase>
246 <source>src/main/yang</source>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-failsafe-plugin</artifactId>
256 <!-- Specific to generate mapping between tests and covered code -->
257 <argLine>${jacoco.agent.it.arg}</argLine>
260 <name>listener</name>
261 <value>org.sonar.java.jacoco.JUnitListener</value>
264 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
265 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-surefire-plugin</artifactId>
272 <!-- Specific to generate mapping between tests and covered code -->
273 <argLine>${jacoco.agent.ut.arg}</argLine>
276 <name>listener</name>
277 <value>org.sonar.java.jacoco.JUnitListener</value>
282 <!-- Ignore/Execute plugin execution -->
284 <groupId>org.eclipse.m2e</groupId>
285 <artifactId>lifecycle-mapping</artifactId>
286 <version>1.0.0</version>
288 <lifecycleMappingMetadata>
291 <pluginExecutionFilter>
292 <groupId>org.codehaus.mojo</groupId>
293 <artifactId>properties-maven-plugin</artifactId>
294 <versionRange>[0.0,)</versionRange>
296 <goal>set-system-properties</goal>
298 </pluginExecutionFilter>
304 <pluginExecutionFilter>
305 <groupId>org.codehaus.enunciate</groupId>
306 <artifactId>maven-enunciate-plugin</artifactId>
307 <versionRange>[0.0,)</versionRange>
311 </pluginExecutionFilter>
317 <pluginExecutionFilter>
318 <groupId>org.jacoco</groupId>
319 <artifactId>jacoco-maven-plugin</artifactId>
320 <versionRange>[0.0,)</versionRange>
322 <goal>prepare-agent</goal>
323 <goal>pre-test</goal>
324 <goal>post-test</goal>
326 </pluginExecutionFilter>
332 <pluginExecutionFilter>
333 <groupId>org.ops4j.pax.exam</groupId>
334 <artifactId>maven-paxexam-plugin</artifactId>
335 <versionRange>[1.2.4,)</versionRange>
337 <goal>generate-depends-file</goal>
339 </pluginExecutionFilter>
342 <runOnIncremental>false</runOnIncremental>
347 <pluginExecutionFilter>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-checkstyle-plugin</artifactId>
350 <versionRange>[2.0,)</versionRange>
354 </pluginExecutionFilter>
360 <pluginExecutionFilter>
361 <groupId>org.opendaylight.yangtools</groupId>
362 <artifactId>yang-maven-plugin</artifactId>
363 <versionRange>[0.5,)</versionRange>
365 <goal>generate-sources</goal>
367 </pluginExecutionFilter>
373 <pluginExecutionFilter>
374 <groupId>org.codehaus.groovy.maven</groupId>
375 <artifactId>gmaven-plugin</artifactId>
376 <versionRange>1.0</versionRange>
380 </pluginExecutionFilter>
386 <pluginExecutionFilter>
387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-enforcer-plugin</artifactId>
389 <versionRange>${enforcer.version}</versionRange>
393 </pluginExecutionFilter>
399 </lifecycleMappingMetadata>
408 <groupId>org.codehaus.mojo</groupId>
409 <artifactId>findbugs-maven-plugin</artifactId>
410 <version>2.5.2</version>
413 <threshold>Low</threshold>
418 <artifactId>maven-jxr-plugin</artifactId>
419 <version>2.3</version>
421 <aggregate>true</aggregate>
422 <linkJavadoc>true</linkJavadoc>
427 <groupId>org.codehaus.mojo</groupId>
428 <artifactId>jdepend-maven-plugin</artifactId>
429 <version>2.0-beta-2</version>
437 <activeByDefault>true</activeByDefault>
440 <build.suffix>${project.version}</build.suffix>
447 <name>BUILDSUFFIX</name>
451 <build.suffix>${BUILDSUFFIX}</build.suffix>
459 <groupId>org.apache.maven.plugins</groupId>
460 <artifactId>maven-javadoc-plugin</artifactId>
461 <version>2.8.1</version>
465 <goal>aggregate</goal>
470 <id>attach-javadocs</id>
478 <groupId>org.apache.maven.plugins</groupId>
479 <artifactId>maven-source-plugin</artifactId>
482 <id>attach-sources</id>
483 <phase>package</phase>
485 <goal>jar-no-fork</goal>