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 <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
38 <karaf.distro.empty.version>1.5.0-SNAPSHOT</karaf.distro.empty.version>
39 <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
40 <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
41 <yang.prototype.version>1.2.0-SNAPSHOT</yang.prototype.version>
42 <ietf.model.version>2010.09.24.7-SNAPSHOT</ietf.model.version>
43 <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
44 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
45 <yangtools.generator.version>0.7.0-SNAPSHOT</yangtools.generator.version>
46 <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
47 <config.version>0.3.0-SNAPSHOT</config.version>
50 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
51 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
52 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
53 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
56 <dependencyManagement>
58 <!-- feature dependencies -->
60 <groupId>org.opendaylight.yangtools</groupId>
61 <artifactId>features-yangtools</artifactId>
62 <version>${yangtools.version}</version>
63 <classifier>features</classifier>
67 <groupId>org.opendaylight.controller</groupId>
68 <artifactId>features-config</artifactId>
69 <version>${config.version}</version>
70 <classifier>features</classifier>
74 <groupId>org.opendaylight.yangtools.model</groupId>
75 <artifactId>ietf-inet-types</artifactId>
76 <version>${ietf.model.version}</version>
79 <groupId>org.opendaylight.yangtools.model</groupId>
80 <artifactId>ietf-yang-types</artifactId>
81 <version>${ietf.model.version}</version>
84 <groupId>org.opendaylight.yangtools.model</groupId>
85 <artifactId>yang-ext</artifactId>
86 <version>${yang.ext.version}</version>
89 <groupId>org.opendaylight.controller</groupId>
90 <artifactId>config-api</artifactId>
91 <version>0.3.0-SNAPSHOT</version>
94 <groupId>org.opendaylight.yangtools</groupId>
95 <artifactId>features-test</artifactId>
96 <version>${yangtools.version}</version>
99 </dependencyManagement>
104 <groupId>org.codehaus.sonar-plugins.java</groupId>
105 <artifactId>sonar-jacoco-listeners</artifactId>
106 <version>${sonar-jacoco-listeners.version}</version>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-compiler-plugin</artifactId>
116 <inherited>true</inherited>
123 <artifactId>maven-source-plugin</artifactId>
126 <id>attach-sources</id>
127 <phase>deploy</phase>
129 <goal>jar-no-fork</goal>
135 <groupId>org.apache.felix</groupId>
136 <artifactId>maven-bundle-plugin</artifactId>
137 <extensions>true</extensions>
140 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
142 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-checkstyle-plugin</artifactId>
148 <version>2.12</version>
150 <failOnViolation>false</failOnViolation>
151 <configLocation>checkstyle-logging.xml</configLocation>
152 <consoleOutput>true</consoleOutput>
153 <includeTestSourceDirectory>true</includeTestSourceDirectory>
154 <sourceDirectory>${project.basedir}</sourceDirectory>
155 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
156 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
160 <groupId>org.opendaylight.yangtools</groupId>
161 <artifactId>checkstyle-logging</artifactId>
162 <version>${yangtools.version}</version>
174 <groupId>org.codehaus.mojo</groupId>
175 <artifactId>build-helper-maven-plugin</artifactId>
178 <groupId>org.jacoco</groupId>
179 <artifactId>jacoco-maven-plugin</artifactId>
182 <id>prepare-ut-agent</id>
183 <phase>process-test-classes</phase>
185 <goal>prepare-agent</goal>
188 <destFile>${sonar.jacoco.reportPath}</destFile>
189 <propertyName>jacoco.agent.ut.arg</propertyName>
193 <id>prepare-it-agent</id>
194 <phase>pre-integration-test</phase>
196 <goal>prepare-agent</goal>
199 <destFile>${sonar.jacoco.itReportPath}</destFile>
200 <propertyName>jacoco.agent.it.arg</propertyName>
209 <groupId>org.opendaylight.yangtools</groupId>
210 <artifactId>yang-maven-plugin</artifactId>
211 <version>${yangtools.version}</version>
214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>build-helper-maven-plugin</artifactId>
216 <version>1.8</version>
221 <goal>add-source</goal>
223 <phase>generate-sources</phase>
226 <source>src/main/yang</source>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-failsafe-plugin</artifactId>
236 <!-- Specific to generate mapping between tests and covered code -->
237 <argLine>${jacoco.agent.it.arg}</argLine>
240 <name>listener</name>
241 <value>org.sonar.java.jacoco.JUnitListener</value>
244 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
245 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-surefire-plugin</artifactId>
252 <!-- Specific to generate mapping between tests and covered code -->
253 <argLine>${jacoco.agent.ut.arg}</argLine>
256 <name>listener</name>
257 <value>org.sonar.java.jacoco.JUnitListener</value>
262 <!-- Ignore/Execute plugin execution -->
264 <groupId>org.eclipse.m2e</groupId>
265 <artifactId>lifecycle-mapping</artifactId>
266 <version>1.0.0</version>
268 <lifecycleMappingMetadata>
271 <pluginExecutionFilter>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>properties-maven-plugin</artifactId>
274 <versionRange>[0.0,)</versionRange>
276 <goal>set-system-properties</goal>
278 </pluginExecutionFilter>
284 <pluginExecutionFilter>
285 <groupId>org.codehaus.enunciate</groupId>
286 <artifactId>maven-enunciate-plugin</artifactId>
287 <versionRange>[0.0,)</versionRange>
291 </pluginExecutionFilter>
297 <pluginExecutionFilter>
298 <groupId>org.jacoco</groupId>
299 <artifactId>jacoco-maven-plugin</artifactId>
300 <versionRange>[0.0,)</versionRange>
302 <goal>prepare-agent</goal>
303 <goal>pre-test</goal>
304 <goal>post-test</goal>
306 </pluginExecutionFilter>
312 <pluginExecutionFilter>
313 <groupId>org.ops4j.pax.exam</groupId>
314 <artifactId>maven-paxexam-plugin</artifactId>
315 <versionRange>[1.2.4,)</versionRange>
317 <goal>generate-depends-file</goal>
319 </pluginExecutionFilter>
322 <runOnIncremental>false</runOnIncremental>
327 <pluginExecutionFilter>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-checkstyle-plugin</artifactId>
330 <versionRange>[2.0,)</versionRange>
334 </pluginExecutionFilter>
340 <pluginExecutionFilter>
341 <groupId>org.opendaylight.yangtools</groupId>
342 <artifactId>yang-maven-plugin</artifactId>
343 <versionRange>[0.5,)</versionRange>
345 <goal>generate-sources</goal>
347 </pluginExecutionFilter>
353 <pluginExecutionFilter>
354 <groupId>org.codehaus.groovy.maven</groupId>
355 <artifactId>gmaven-plugin</artifactId>
356 <versionRange>1.0</versionRange>
360 </pluginExecutionFilter>
366 <pluginExecutionFilter>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-enforcer-plugin</artifactId>
369 <versionRange>${enforcer.version}</versionRange>
373 </pluginExecutionFilter>
379 </lifecycleMappingMetadata>
388 <groupId>org.codehaus.mojo</groupId>
389 <artifactId>findbugs-maven-plugin</artifactId>
390 <version>2.5.2</version>
393 <threshold>Low</threshold>
398 <artifactId>maven-jxr-plugin</artifactId>
399 <version>2.3</version>
401 <aggregate>true</aggregate>
402 <linkJavadoc>true</linkJavadoc>
407 <groupId>org.codehaus.mojo</groupId>
408 <artifactId>jdepend-maven-plugin</artifactId>
409 <version>2.0-beta-2</version>
417 <activeByDefault>true</activeByDefault>
420 <build.suffix>${project.version}</build.suffix>
427 <name>BUILDSUFFIX</name>
431 <build.suffix>${BUILDSUFFIX}</build.suffix>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-javadoc-plugin</artifactId>
441 <version>2.8.1</version>
445 <goal>aggregate</goal>
450 <id>attach-javadocs</id>
458 <groupId>org.apache.maven.plugins</groupId>
459 <artifactId>maven-source-plugin</artifactId>
462 <id>attach-sources</id>
463 <phase>package</phase>
465 <goal>jar-no-fork</goal>