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.1-SNAPSHOT</version>
11 <groupId>org.opendaylight.openflowjava</groupId>
12 <artifactId>openflow-protocol-parent</artifactId>
13 <version>0.6.1-SNAPSHOT</version>
14 <name>openflowjava</name> <!-- Used by Sonar to set project name -->
15 <packaging>pom</packaging>
18 <module>artifacts</module>
19 <module>features</module>
20 <module>openflowjava-config</module>
21 <module>openflow-protocol-api</module>
22 <module>openflow-protocol-impl</module>
23 <module>openflow-protocol-it</module>
24 <module>openflow-protocol-spi</module>
25 <module>simple-client</module>
29 <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
30 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
31 <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
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.1-SNAPSHOT</karaf.distro.empty.version>
40 <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
42 <config.version>0.3.1-SNAPSHOT</config.version>
43 <mdsal.version>1.2.1-SNAPSHOT</mdsal.version>
44 <yangtools.version>0.7.1-SNAPSHOT</yangtools.version>
47 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
48 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
49 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
50 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <dependencyManagement>
56 <groupId>org.opendaylight.openflowjava</groupId>
57 <artifactId>openflowjava-artifacts</artifactId>
58 <version>${project.version}</version>
63 <groupId>org.opendaylight.yangtools</groupId>
64 <artifactId>yangtools-artifacts</artifactId>
65 <version>${yangtools.version}</version>
70 <groupId>org.opendaylight.controller</groupId>
71 <artifactId>config-artifacts</artifactId>
72 <version>${config.version}</version>
77 <groupId>org.opendaylight.controller</groupId>
78 <artifactId>mdsal-artifacts</artifactId>
79 <version>${mdsal.version}</version>
84 </dependencyManagement>
89 <groupId>org.codehaus.sonar-plugins.java</groupId>
90 <artifactId>sonar-jacoco-listeners</artifactId>
91 <version>${sonar-jacoco-listeners.version}</version>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-compiler-plugin</artifactId>
101 <inherited>true</inherited>
108 <artifactId>maven-source-plugin</artifactId>
111 <id>attach-sources</id>
112 <phase>deploy</phase>
114 <goal>jar-no-fork</goal>
120 <groupId>org.apache.felix</groupId>
121 <artifactId>maven-bundle-plugin</artifactId>
122 <extensions>true</extensions>
125 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
127 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-checkstyle-plugin</artifactId>
133 <version>2.12</version>
135 <failOnViolation>false</failOnViolation>
136 <configLocation>checkstyle-logging.xml</configLocation>
137 <consoleOutput>true</consoleOutput>
138 <includeTestSourceDirectory>true</includeTestSourceDirectory>
139 <sourceDirectory>${project.basedir}</sourceDirectory>
140 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
141 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
145 <groupId>org.opendaylight.yangtools</groupId>
146 <artifactId>checkstyle-logging</artifactId>
147 <version>${yangtools.version}</version>
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>build-helper-maven-plugin</artifactId>
163 <groupId>org.jacoco</groupId>
164 <artifactId>jacoco-maven-plugin</artifactId>
167 <id>prepare-ut-agent</id>
168 <phase>process-test-classes</phase>
170 <goal>prepare-agent</goal>
173 <destFile>${sonar.jacoco.reportPath}</destFile>
174 <propertyName>jacoco.agent.ut.arg</propertyName>
178 <id>prepare-it-agent</id>
179 <phase>pre-integration-test</phase>
181 <goal>prepare-agent</goal>
184 <destFile>${sonar.jacoco.itReportPath}</destFile>
185 <propertyName>jacoco.agent.it.arg</propertyName>
194 <groupId>org.opendaylight.yangtools</groupId>
195 <artifactId>yang-maven-plugin</artifactId>
196 <version>${yangtools.version}</version>
199 <groupId>org.codehaus.mojo</groupId>
200 <artifactId>build-helper-maven-plugin</artifactId>
201 <version>1.8</version>
206 <goal>add-source</goal>
208 <phase>generate-sources</phase>
211 <source>src/main/yang</source>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-failsafe-plugin</artifactId>
221 <!-- Specific to generate mapping between tests and covered code -->
222 <argLine>${jacoco.agent.it.arg}</argLine>
225 <name>listener</name>
226 <value>org.sonar.java.jacoco.JUnitListener</value>
229 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
230 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-surefire-plugin</artifactId>
237 <!-- Specific to generate mapping between tests and covered code -->
238 <argLine>${jacoco.agent.ut.arg}</argLine>
241 <name>listener</name>
242 <value>org.sonar.java.jacoco.JUnitListener</value>
247 <!-- Ignore/Execute plugin execution -->
249 <groupId>org.eclipse.m2e</groupId>
250 <artifactId>lifecycle-mapping</artifactId>
251 <version>1.0.0</version>
253 <lifecycleMappingMetadata>
256 <pluginExecutionFilter>
257 <groupId>org.codehaus.mojo</groupId>
258 <artifactId>properties-maven-plugin</artifactId>
259 <versionRange>[0.0,)</versionRange>
261 <goal>set-system-properties</goal>
263 </pluginExecutionFilter>
269 <pluginExecutionFilter>
270 <groupId>org.jacoco</groupId>
271 <artifactId>jacoco-maven-plugin</artifactId>
272 <versionRange>[0.0,)</versionRange>
274 <goal>prepare-agent</goal>
275 <goal>pre-test</goal>
276 <goal>post-test</goal>
278 </pluginExecutionFilter>
284 <pluginExecutionFilter>
285 <groupId>org.ops4j.pax.exam</groupId>
286 <artifactId>maven-paxexam-plugin</artifactId>
287 <versionRange>[1.2.4,)</versionRange>
289 <goal>generate-depends-file</goal>
291 </pluginExecutionFilter>
294 <runOnIncremental>false</runOnIncremental>
299 <pluginExecutionFilter>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-checkstyle-plugin</artifactId>
302 <versionRange>[2.0,)</versionRange>
306 </pluginExecutionFilter>
312 <pluginExecutionFilter>
313 <groupId>org.opendaylight.yangtools</groupId>
314 <artifactId>yang-maven-plugin</artifactId>
315 <versionRange>[0.5,)</versionRange>
317 <goal>generate-sources</goal>
319 </pluginExecutionFilter>
325 <pluginExecutionFilter>
326 <groupId>org.codehaus.groovy.maven</groupId>
327 <artifactId>gmaven-plugin</artifactId>
328 <versionRange>1.0</versionRange>
332 </pluginExecutionFilter>
338 <pluginExecutionFilter>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-enforcer-plugin</artifactId>
341 <versionRange>${enforcer.version}</versionRange>
345 </pluginExecutionFilter>
351 </lifecycleMappingMetadata>
360 <groupId>org.codehaus.mojo</groupId>
361 <artifactId>findbugs-maven-plugin</artifactId>
362 <version>2.5.2</version>
365 <threshold>Low</threshold>
370 <artifactId>maven-jxr-plugin</artifactId>
371 <version>2.3</version>
373 <aggregate>true</aggregate>
374 <linkJavadoc>true</linkJavadoc>
379 <groupId>org.codehaus.mojo</groupId>
380 <artifactId>jdepend-maven-plugin</artifactId>
381 <version>2.0-beta-2</version>
389 <activeByDefault>true</activeByDefault>
392 <build.suffix>${project.version}</build.suffix>
399 <name>BUILDSUFFIX</name>
403 <build.suffix>${BUILDSUFFIX}</build.suffix>
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-javadoc-plugin</artifactId>
413 <version>2.8.1</version>
417 <goal>aggregate</goal>
422 <id>attach-javadocs</id>
430 <groupId>org.apache.maven.plugins</groupId>
431 <artifactId>maven-source-plugin</artifactId>
434 <id>attach-sources</id>
435 <phase>package</phase>
437 <goal>jar-no-fork</goal>