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>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.0-SNAPSHOT</karaf.distro.empty.version>
40 <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
41 <yang.prototype.version>1.2.0-SNAPSHOT</yang.prototype.version>
42 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
43 <yangtools.generator.version>0.7.0-SNAPSHOT</yangtools.generator.version>
44 <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
45 <config.version>0.3.0-SNAPSHOT</config.version>
48 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
49 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
50 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
51 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54 <dependencyManagement>
57 <groupId>org.opendaylight.openflowjava</groupId>
58 <artifactId>openflowjava-artifacts</artifactId>
59 <version>${project.version}</version>
64 <groupId>org.opendaylight.yangtools</groupId>
65 <artifactId>yangtools-artifacts</artifactId>
66 <version>${yangtools.version}</version>
71 <groupId>org.opendaylight.controller</groupId>
72 <artifactId>config-artifacts</artifactId>
73 <version>${config.version}</version>
78 <groupId>org.opendaylight.controller</groupId>
79 <artifactId>mdsal-artifacts</artifactId>
80 <version>${mdsal.version}</version>
85 </dependencyManagement>
90 <groupId>org.codehaus.sonar-plugins.java</groupId>
91 <artifactId>sonar-jacoco-listeners</artifactId>
92 <version>${sonar-jacoco-listeners.version}</version>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-compiler-plugin</artifactId>
102 <inherited>true</inherited>
109 <artifactId>maven-source-plugin</artifactId>
112 <id>attach-sources</id>
113 <phase>deploy</phase>
115 <goal>jar-no-fork</goal>
121 <groupId>org.apache.felix</groupId>
122 <artifactId>maven-bundle-plugin</artifactId>
123 <extensions>true</extensions>
126 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
128 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-checkstyle-plugin</artifactId>
134 <version>2.12</version>
136 <failOnViolation>false</failOnViolation>
137 <configLocation>checkstyle-logging.xml</configLocation>
138 <consoleOutput>true</consoleOutput>
139 <includeTestSourceDirectory>true</includeTestSourceDirectory>
140 <sourceDirectory>${project.basedir}</sourceDirectory>
141 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
142 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
146 <groupId>org.opendaylight.yangtools</groupId>
147 <artifactId>checkstyle-logging</artifactId>
148 <version>${yangtools.version}</version>
160 <groupId>org.codehaus.mojo</groupId>
161 <artifactId>build-helper-maven-plugin</artifactId>
164 <groupId>org.jacoco</groupId>
165 <artifactId>jacoco-maven-plugin</artifactId>
168 <id>prepare-ut-agent</id>
169 <phase>process-test-classes</phase>
171 <goal>prepare-agent</goal>
174 <destFile>${sonar.jacoco.reportPath}</destFile>
175 <propertyName>jacoco.agent.ut.arg</propertyName>
179 <id>prepare-it-agent</id>
180 <phase>pre-integration-test</phase>
182 <goal>prepare-agent</goal>
185 <destFile>${sonar.jacoco.itReportPath}</destFile>
186 <propertyName>jacoco.agent.it.arg</propertyName>
195 <groupId>org.opendaylight.yangtools</groupId>
196 <artifactId>yang-maven-plugin</artifactId>
197 <version>${yangtools.version}</version>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>build-helper-maven-plugin</artifactId>
202 <version>1.8</version>
207 <goal>add-source</goal>
209 <phase>generate-sources</phase>
212 <source>src/main/yang</source>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-failsafe-plugin</artifactId>
222 <!-- Specific to generate mapping between tests and covered code -->
223 <argLine>${jacoco.agent.it.arg}</argLine>
226 <name>listener</name>
227 <value>org.sonar.java.jacoco.JUnitListener</value>
230 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
231 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-surefire-plugin</artifactId>
238 <!-- Specific to generate mapping between tests and covered code -->
239 <argLine>${jacoco.agent.ut.arg}</argLine>
242 <name>listener</name>
243 <value>org.sonar.java.jacoco.JUnitListener</value>
248 <!-- Ignore/Execute plugin execution -->
250 <groupId>org.eclipse.m2e</groupId>
251 <artifactId>lifecycle-mapping</artifactId>
252 <version>1.0.0</version>
254 <lifecycleMappingMetadata>
257 <pluginExecutionFilter>
258 <groupId>org.codehaus.mojo</groupId>
259 <artifactId>properties-maven-plugin</artifactId>
260 <versionRange>[0.0,)</versionRange>
262 <goal>set-system-properties</goal>
264 </pluginExecutionFilter>
270 <pluginExecutionFilter>
271 <groupId>org.codehaus.enunciate</groupId>
272 <artifactId>maven-enunciate-plugin</artifactId>
273 <versionRange>[0.0,)</versionRange>
277 </pluginExecutionFilter>
283 <pluginExecutionFilter>
284 <groupId>org.jacoco</groupId>
285 <artifactId>jacoco-maven-plugin</artifactId>
286 <versionRange>[0.0,)</versionRange>
288 <goal>prepare-agent</goal>
289 <goal>pre-test</goal>
290 <goal>post-test</goal>
292 </pluginExecutionFilter>
298 <pluginExecutionFilter>
299 <groupId>org.ops4j.pax.exam</groupId>
300 <artifactId>maven-paxexam-plugin</artifactId>
301 <versionRange>[1.2.4,)</versionRange>
303 <goal>generate-depends-file</goal>
305 </pluginExecutionFilter>
308 <runOnIncremental>false</runOnIncremental>
313 <pluginExecutionFilter>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-checkstyle-plugin</artifactId>
316 <versionRange>[2.0,)</versionRange>
320 </pluginExecutionFilter>
326 <pluginExecutionFilter>
327 <groupId>org.opendaylight.yangtools</groupId>
328 <artifactId>yang-maven-plugin</artifactId>
329 <versionRange>[0.5,)</versionRange>
331 <goal>generate-sources</goal>
333 </pluginExecutionFilter>
339 <pluginExecutionFilter>
340 <groupId>org.codehaus.groovy.maven</groupId>
341 <artifactId>gmaven-plugin</artifactId>
342 <versionRange>1.0</versionRange>
346 </pluginExecutionFilter>
352 <pluginExecutionFilter>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-enforcer-plugin</artifactId>
355 <versionRange>${enforcer.version}</versionRange>
359 </pluginExecutionFilter>
365 </lifecycleMappingMetadata>
374 <groupId>org.codehaus.mojo</groupId>
375 <artifactId>findbugs-maven-plugin</artifactId>
376 <version>2.5.2</version>
379 <threshold>Low</threshold>
384 <artifactId>maven-jxr-plugin</artifactId>
385 <version>2.3</version>
387 <aggregate>true</aggregate>
388 <linkJavadoc>true</linkJavadoc>
393 <groupId>org.codehaus.mojo</groupId>
394 <artifactId>jdepend-maven-plugin</artifactId>
395 <version>2.0-beta-2</version>
403 <activeByDefault>true</activeByDefault>
406 <build.suffix>${project.version}</build.suffix>
413 <name>BUILDSUFFIX</name>
417 <build.suffix>${BUILDSUFFIX}</build.suffix>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-javadoc-plugin</artifactId>
427 <version>2.8.1</version>
431 <goal>aggregate</goal>
436 <id>attach-javadocs</id>
444 <groupId>org.apache.maven.plugins</groupId>
445 <artifactId>maven-source-plugin</artifactId>
448 <id>attach-sources</id>
449 <phase>package</phase>
451 <goal>jar-no-fork</goal>