1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <groupId>org.opendaylight.odlparent</groupId>
15 <artifactId>odlparent</artifactId>
16 <version>1.6.0-SNAPSHOT</version>
17 <relativePath></relativePath>
20 <modelVersion>4.0.0</modelVersion>
21 <artifactId>mdsal-parent</artifactId>
22 <groupId>org.opendaylight.mdsal</groupId>
23 <version>2.0.0-SNAPSHOT</version>
24 <packaging>pom</packaging>
27 <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
29 <!-- FIXME: these will be upstreamed -->
30 <maven.depends.version>1.2</maven.depends.version>
31 <maven.javadoc.version>2.9.1</maven.javadoc.version>
32 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
33 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
35 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
38 <dependencyManagement>
41 <groupId>org.opendaylight.mdsal</groupId>
42 <artifactId>mdsal-artifacts</artifactId>
43 <version>2.0.0-SNAPSHOT</version>
48 <groupId>org.opendaylight.yangtools</groupId>
49 <artifactId>yangtools-artifacts</artifactId>
50 <version>0.8.0-SNAPSHOT</version>
54 <!-- Testing Dependencies -->
56 <groupId>org.apache.maven.shared</groupId>
57 <artifactId>maven-verifier</artifactId>
58 <version>1.5</version>
62 <groupId>equinoxSDK381</groupId>
63 <artifactId>org.eclipse.osgi</artifactId>
64 <version>3.8.1.v20120830-144521</version>
68 <groupId>org.codehaus.groovy</groupId>
69 <artifactId>groovy</artifactId>
70 <version>2.1.6</version>
74 <groupId>org.codehaus.groovy</groupId>
75 <artifactId>groovy-xml</artifactId>
76 <version>2.1.6</version>
80 <groupId>xmlunit</groupId>
81 <artifactId>xmlunit</artifactId>
82 <version>1.5</version>
86 <groupId>org.apache.maven</groupId>
87 <artifactId>maven-core</artifactId>
88 <version>3.1.1</version>
91 <groupId>org.apache.maven</groupId>
92 <artifactId>maven-plugin-api</artifactId>
93 <version>3.1.1</version>
96 <groupId>org.javassist</groupId>
97 <artifactId>javassist</artifactId>
98 <version>${javassist.version}</version>
101 <groupId>xml-apis</groupId>
102 <artifactId>xml-apis</artifactId>
103 <version>2.0.2</version>
106 <groupId>org.eclipse.xtend</groupId>
107 <artifactId>org.eclipse.xtend.lib</artifactId>
108 <version>2.7.3</version>
111 <groupId>org.osgi</groupId>
112 <artifactId>org.osgi.core</artifactId>
113 <version>5.0.0</version>
114 <scope>provided</scope>
117 <groupId>javax.ws.rs</groupId>
118 <artifactId>javax.ws.rs-api</artifactId>
119 <version>2.0</version>
123 <groupId>org.glassfish.jersey.ext</groupId>
124 <artifactId>jersey-proxy-client</artifactId>
125 <version>2.0</version>
128 <groupId>org.glassfish.jersey.core</groupId>
129 <artifactId>jersey-client</artifactId>
130 <version>2.0</version>
134 <groupId>org.opendaylight.yangtools</groupId>
135 <artifactId>yangtools-artifacts</artifactId>
136 <version>${yangtools.version}</version>
137 <scope>import</scope>
141 </dependencyManagement>
146 <groupId>org.codehaus.sonar-plugins.java</groupId>
147 <artifactId>sonar-jacoco-listeners</artifactId>
148 <version>${sonar-jacoco-listeners.version}</version>
152 <groupId>org.slf4j</groupId>
153 <artifactId>slf4j-simple</artifactId>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-jar-plugin</artifactId>
164 <version>${maven.jar.version}</version>
168 Bundle OSGi Manifest created by maven-bundle-plugin
171 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
176 <groupId>org.apache.felix</groupId>
177 <artifactId>maven-bundle-plugin</artifactId>
178 <extensions>true</extensions>
181 <id>bundle-manifest</id>
182 <phase>process-classes</phase>
184 <goal>manifest</goal>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-failsafe-plugin</artifactId>
193 <!-- Specific to generate mapping between tests and covered code -->
194 <argLine>${jacoco.agent.it.arg}</argLine>
197 <name>listener</name>
198 <value>org.sonar.java.jacoco.JUnitListener</value>
201 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
202 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-surefire-plugin</artifactId>
208 <version>${maven.surefire.version}</version>
210 <!-- Specific to generate mapping between tests and covered code -->
211 <argLine>${jacoco.agent.ut.arg}</argLine>
214 <name>listener</name>
215 <value>org.sonar.java.jacoco.JUnitListener</value>
222 <groupId>org.eclipse.m2e</groupId>
223 <artifactId>lifecycle-mapping</artifactId>
224 <version>1.0.0</version>
226 <lifecycleMappingMetadata>
229 <pluginExecutionFilter>
230 <groupId>org.apache.felix</groupId>
231 <artifactId>maven-bundle-plugin</artifactId>
232 <versionRange>[1.0,)</versionRange>
234 <goal>manifest</goal>
236 </pluginExecutionFilter>
242 <pluginExecutionFilter>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-antrun-plugin</artifactId>
245 <versionRange>[1.0,)</versionRange>
249 </pluginExecutionFilter>
255 <pluginExecutionFilter>
256 <groupId>org.opendaylight.yangtools</groupId>
257 <artifactId>yang-maven-plugin</artifactId>
258 <versionRange>[0.5,)</versionRange>
260 <goal>generate-sources</goal>
262 </pluginExecutionFilter>
268 <pluginExecutionFilter>
269 <groupId>org.codehaus.mojo</groupId>
270 <artifactId>properties-maven-plugin</artifactId>
271 <versionRange>1.0-alpha-2</versionRange>
273 <goal>write-project-properties</goal>
275 </pluginExecutionFilter>
281 <pluginExecutionFilter>
282 <groupId>org.ops4j.pax.exam</groupId>
283 <artifactId>maven-paxexam-plugin</artifactId>
284 <versionRange>1.2.4</versionRange>
286 <goal>generate-depends-file</goal>
288 </pluginExecutionFilter>
294 <pluginExecutionFilter>
295 <groupId>org.jacoco</groupId>
296 <artifactId>jacoco-maven-plugin</artifactId>
297 <versionRange>[0.6,)</versionRange>
299 <goal>prepare-agent</goal>
301 </pluginExecutionFilter>
307 <pluginExecutionFilter>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-checkstyle-plugin</artifactId>
310 <versionRange>[2.12,)</versionRange>
314 </pluginExecutionFilter>
320 </lifecycleMappingMetadata>
324 <groupId>org.opendaylight.yangtools</groupId>
325 <artifactId>yang-maven-plugin</artifactId>
326 <version>0.8.0-SNAPSHOT</version>
330 <goal>generate-sources</goal>
333 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
337 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
338 </codeGeneratorClass>
340 target/generated-sources/sal
344 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
345 <outputBaseDir>target/site/restconf</outputBaseDir>
348 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
349 <outputBaseDir>target/site/restconf</outputBaseDir>
352 <inspectDependencies>true</inspectDependencies>
358 <groupId>org.opendaylight.yangtools</groupId>
359 <artifactId>maven-sal-api-gen-plugin</artifactId>
360 <version>0.8.0-SNAPSHOT</version>
366 <groupId>org.ops4j.pax.exam</groupId>
367 <artifactId>maven-paxexam-plugin</artifactId>
368 <version>1.2.4</version>
371 <id>generate-config</id>
373 <goal>generate-depends-file</goal>
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-javadoc-plugin</artifactId>
381 <version>${maven.javadoc.version}</version>
383 <stylesheetfile>stylesheet.css</stylesheetfile>
387 <id>attach-javadocs</id>
394 <goal>aggregate</goal>
401 <groupId>org.codehaus.mojo</groupId>
402 <artifactId>build-helper-maven-plugin</artifactId>
403 <version>1.8</version>
406 <phase>generate-sources</phase>
408 <goal>add-source</goal>
412 <source>target/generated-sources/parser</source>
413 <source>target/generated-sources/sal</source>
414 <source>${basedir}/src/main/xtend-gen</source>
421 <groupId>org.eclipse.xtend</groupId>
422 <artifactId>xtend-maven-plugin</artifactId>
423 <version>2.7.3</version>
430 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
436 <groupId>org.apache.servicemix.tooling</groupId>
437 <artifactId>depends-maven-plugin</artifactId>
438 <version>${maven.depends.version}</version>
441 <id>generate-depends-file</id>
443 <goal>generate-depends-file</goal>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-enforcer-plugin</artifactId>
458 <id>enforce-dependencies</id>
461 <DependencyConvergence />
473 <artifactId>maven-clean-plugin</artifactId>
477 <directory>${basedir}/src/main/xtend-gen</directory>
479 <include>**</include>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-jar-plugin</artifactId>
490 <groupId>org.apache.felix</groupId>
491 <artifactId>maven-bundle-plugin</artifactId>
494 <groupId>org.apache.maven.plugins</groupId>
495 <artifactId>maven-source-plugin</artifactId>
498 <id>attach-sources</id>
506 <groupId>org.apache.maven.plugins</groupId>
507 <artifactId>maven-javadoc-plugin</artifactId>
510 <groupId>org.jacoco</groupId>
511 <artifactId>jacoco-maven-plugin</artifactId>
514 <id>prepare-ut-agent</id>
515 <phase>process-test-classes</phase>
517 <goal>prepare-agent</goal>
520 <destFile>${sonar.jacoco.reportPath}</destFile>
521 <propertyName>jacoco.agent.ut.arg</propertyName>
525 <id>prepare-it-agent</id>
526 <phase>pre-integration-test</phase>
528 <goal>prepare-agent</goal>
531 <destFile>${sonar.jacoco.itReportPath}</destFile>
532 <propertyName>jacoco.agent.it.arg</propertyName>
543 <groupId>org.codehaus.mojo</groupId>
544 <artifactId>findbugs-maven-plugin</artifactId>
545 <version>${findbugs.maven.plugin.version}</version>
548 <threshold>Low</threshold>
553 <groupId>org.codehaus.mojo</groupId>
554 <artifactId>jdepend-maven-plugin</artifactId>
555 <version>${jdepend.maven.plugin.version}</version>