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 <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
36 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
37 <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
40 <karaf.distro.empty.version>1.5.0-SNAPSHOT</karaf.distro.empty.version>
41 <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
42 <sonar.branch>${user.name}-private-view</sonar.branch>
43 <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
44 <yang.prototype.version>1.2.0-SNAPSHOT</yang.prototype.version>
45 <ietf.model.version>2010.09.24.7-SNAPSHOT</ietf.model.version>
46 <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
47 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
48 <yangtools.generator.version>0.7.0-SNAPSHOT</yangtools.generator.version>
49 <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
50 <config.version>0.3.0-SNAPSHOT</config.version>
53 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
54 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
55 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
56 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57 <sonar.profile>Sonar way with Findbugs</sonar.profile>
60 <distributionManagement>
61 <!-- OpenDayLight Released artifact -->
63 <id>opendaylight-release</id>
64 <url>${nexusproxy}/repositories/opendaylight.release/</url>
66 <!-- OpenDayLight Snapshot artifact -->
68 <id>opendaylight-snapshot</id>
69 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
71 <!-- Site deployment -->
74 <url>${sitedeploy}</url>
76 </distributionManagement>
79 <dependencyManagement>
81 <!-- feature dependencies -->
83 <groupId>org.opendaylight.yangtools</groupId>
84 <artifactId>features-yangtools</artifactId>
85 <version>${yangtools.version}</version>
86 <classifier>features</classifier>
90 <groupId>org.opendaylight.controller</groupId>
91 <artifactId>features-config</artifactId>
92 <version>${config.version}</version>
93 <classifier>features</classifier>
97 <groupId>org.opendaylight.yangtools.model</groupId>
98 <artifactId>ietf-inet-types</artifactId>
99 <version>${ietf.model.version}</version>
102 <groupId>org.opendaylight.yangtools.model</groupId>
103 <artifactId>ietf-yang-types</artifactId>
104 <version>${ietf.model.version}</version>
107 <groupId>org.opendaylight.yangtools.model</groupId>
108 <artifactId>yang-ext</artifactId>
109 <version>${yang.ext.version}</version>
112 <groupId>org.opendaylight.controller</groupId>
113 <artifactId>config-api</artifactId>
114 <version>0.3.0-SNAPSHOT</version>
117 <groupId>org.opendaylight.yangtools</groupId>
118 <artifactId>features-test</artifactId>
119 <version>${yangtools.version}</version>
122 </dependencyManagement>
127 <groupId>org.codehaus.sonar-plugins.java</groupId>
128 <artifactId>sonar-jacoco-listeners</artifactId>
129 <version>${sonar-jacoco-listeners.version}</version>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-compiler-plugin</artifactId>
139 <inherited>true</inherited>
146 <artifactId>maven-source-plugin</artifactId>
149 <id>attach-sources</id>
150 <phase>deploy</phase>
152 <goal>jar-no-fork</goal>
158 <groupId>org.apache.felix</groupId>
159 <artifactId>maven-bundle-plugin</artifactId>
160 <extensions>true</extensions>
163 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
165 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-checkstyle-plugin</artifactId>
171 <version>2.12</version>
173 <failOnViolation>false</failOnViolation>
174 <configLocation>checkstyle-logging.xml</configLocation>
175 <consoleOutput>true</consoleOutput>
176 <includeTestSourceDirectory>true</includeTestSourceDirectory>
177 <sourceDirectory>${project.basedir}</sourceDirectory>
178 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
179 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
183 <groupId>org.opendaylight.yangtools</groupId>
184 <artifactId>checkstyle-logging</artifactId>
185 <version>${yangtools.version}</version>
197 <groupId>org.codehaus.mojo</groupId>
198 <artifactId>build-helper-maven-plugin</artifactId>
201 <groupId>org.jacoco</groupId>
202 <artifactId>jacoco-maven-plugin</artifactId>
205 <id>prepare-ut-agent</id>
206 <phase>process-test-classes</phase>
208 <goal>prepare-agent</goal>
211 <destFile>${sonar.jacoco.reportPath}</destFile>
212 <propertyName>jacoco.agent.ut.arg</propertyName>
216 <id>prepare-it-agent</id>
217 <phase>pre-integration-test</phase>
219 <goal>prepare-agent</goal>
222 <destFile>${sonar.jacoco.itReportPath}</destFile>
223 <propertyName>jacoco.agent.it.arg</propertyName>
232 <groupId>org.opendaylight.yangtools</groupId>
233 <artifactId>yang-maven-plugin</artifactId>
234 <version>${yangtools.version}</version>
237 <groupId>org.codehaus.mojo</groupId>
238 <artifactId>build-helper-maven-plugin</artifactId>
239 <version>1.8</version>
244 <goal>add-source</goal>
246 <phase>generate-sources</phase>
249 <source>src/main/yang</source>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-failsafe-plugin</artifactId>
259 <!-- Specific to generate mapping between tests and covered code -->
260 <argLine>${jacoco.agent.it.arg}</argLine>
263 <name>listener</name>
264 <value>org.sonar.java.jacoco.JUnitListener</value>
267 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
268 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-surefire-plugin</artifactId>
275 <!-- Specific to generate mapping between tests and covered code -->
276 <argLine>${jacoco.agent.ut.arg}</argLine>
279 <name>listener</name>
280 <value>org.sonar.java.jacoco.JUnitListener</value>
285 <!-- Ignore/Execute plugin execution -->
287 <groupId>org.eclipse.m2e</groupId>
288 <artifactId>lifecycle-mapping</artifactId>
289 <version>1.0.0</version>
291 <lifecycleMappingMetadata>
294 <pluginExecutionFilter>
295 <groupId>org.codehaus.mojo</groupId>
296 <artifactId>properties-maven-plugin</artifactId>
297 <versionRange>[0.0,)</versionRange>
299 <goal>set-system-properties</goal>
301 </pluginExecutionFilter>
307 <pluginExecutionFilter>
308 <groupId>org.codehaus.enunciate</groupId>
309 <artifactId>maven-enunciate-plugin</artifactId>
310 <versionRange>[0.0,)</versionRange>
314 </pluginExecutionFilter>
320 <pluginExecutionFilter>
321 <groupId>org.jacoco</groupId>
322 <artifactId>jacoco-maven-plugin</artifactId>
323 <versionRange>[0.0,)</versionRange>
325 <goal>prepare-agent</goal>
326 <goal>pre-test</goal>
327 <goal>post-test</goal>
329 </pluginExecutionFilter>
335 <pluginExecutionFilter>
336 <groupId>org.ops4j.pax.exam</groupId>
337 <artifactId>maven-paxexam-plugin</artifactId>
338 <versionRange>[1.2.4,)</versionRange>
340 <goal>generate-depends-file</goal>
342 </pluginExecutionFilter>
345 <runOnIncremental>false</runOnIncremental>
350 <pluginExecutionFilter>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-checkstyle-plugin</artifactId>
353 <versionRange>[2.0,)</versionRange>
357 </pluginExecutionFilter>
363 <pluginExecutionFilter>
364 <groupId>org.opendaylight.yangtools</groupId>
365 <artifactId>yang-maven-plugin</artifactId>
366 <versionRange>[0.5,)</versionRange>
368 <goal>generate-sources</goal>
370 </pluginExecutionFilter>
376 <pluginExecutionFilter>
377 <groupId>org.codehaus.groovy.maven</groupId>
378 <artifactId>gmaven-plugin</artifactId>
379 <versionRange>1.0</versionRange>
383 </pluginExecutionFilter>
389 <pluginExecutionFilter>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-enforcer-plugin</artifactId>
392 <versionRange>${enforcer.version}</versionRange>
396 </pluginExecutionFilter>
402 </lifecycleMappingMetadata>
411 <groupId>org.codehaus.mojo</groupId>
412 <artifactId>findbugs-maven-plugin</artifactId>
413 <version>2.5.2</version>
416 <threshold>Low</threshold>
421 <artifactId>maven-jxr-plugin</artifactId>
422 <version>2.3</version>
424 <aggregate>true</aggregate>
425 <linkJavadoc>true</linkJavadoc>
430 <groupId>org.codehaus.mojo</groupId>
431 <artifactId>jdepend-maven-plugin</artifactId>
432 <version>2.0-beta-2</version>
440 <activeByDefault>true</activeByDefault>
443 <build.suffix>${project.version}</build.suffix>
450 <name>BUILDSUFFIX</name>
454 <build.suffix>${BUILDSUFFIX}</build.suffix>
462 <groupId>org.apache.maven.plugins</groupId>
463 <artifactId>maven-javadoc-plugin</artifactId>
464 <version>2.8.1</version>
468 <goal>aggregate</goal>
473 <id>attach-javadocs</id>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-source-plugin</artifactId>
485 <id>attach-sources</id>
486 <phase>package</phase>
488 <goal>jar-no-fork</goal>