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>yangtools-parent</artifactId>
22 <groupId>org.opendaylight.yangtools</groupId>
23 <version>0.8.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>
40 <!-- Testing Dependencies -->
42 <groupId>org.apache.maven.shared</groupId>
43 <artifactId>maven-verifier</artifactId>
44 <version>1.5</version>
48 <groupId>equinoxSDK381</groupId>
49 <artifactId>org.eclipse.osgi</artifactId>
50 <version>3.8.1.v20120830-144521</version>
54 <groupId>org.codehaus.groovy</groupId>
55 <artifactId>groovy</artifactId>
56 <version>2.1.6</version>
60 <groupId>org.codehaus.groovy</groupId>
61 <artifactId>groovy-xml</artifactId>
62 <version>2.1.6</version>
66 <groupId>xmlunit</groupId>
67 <artifactId>xmlunit</artifactId>
68 <version>1.5</version>
72 <groupId>org.apache.maven</groupId>
73 <artifactId>maven-core</artifactId>
74 <version>3.1.1</version>
77 <groupId>org.apache.maven</groupId>
78 <artifactId>maven-plugin-api</artifactId>
79 <version>3.1.1</version>
82 <groupId>org.javassist</groupId>
83 <artifactId>javassist</artifactId>
84 <version>${javassist.version}</version>
87 <groupId>xml-apis</groupId>
88 <artifactId>xml-apis</artifactId>
89 <version>2.0.2</version>
92 <groupId>org.eclipse.xtend</groupId>
93 <artifactId>org.eclipse.xtend.lib</artifactId>
94 <version>2.7.3</version>
97 <groupId>org.osgi</groupId>
98 <artifactId>org.osgi.core</artifactId>
99 <version>5.0.0</version>
100 <scope>provided</scope>
103 <groupId>javax.ws.rs</groupId>
104 <artifactId>javax.ws.rs-api</artifactId>
105 <version>2.0</version>
109 <groupId>org.glassfish.jersey.ext</groupId>
110 <artifactId>jersey-proxy-client</artifactId>
111 <version>2.0</version>
114 <groupId>org.glassfish.jersey.core</groupId>
115 <artifactId>jersey-client</artifactId>
116 <version>2.0</version>
120 <groupId>org.opendaylight.yangtools</groupId>
121 <artifactId>yangtools-artifacts</artifactId>
122 <version>${yangtools.version}</version>
123 <scope>import</scope>
127 </dependencyManagement>
132 <groupId>org.codehaus.sonar-plugins.java</groupId>
133 <artifactId>sonar-jacoco-listeners</artifactId>
134 <version>${sonar-jacoco-listeners.version}</version>
138 <groupId>org.slf4j</groupId>
139 <artifactId>slf4j-simple</artifactId>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-jar-plugin</artifactId>
150 <version>${maven.jar.version}</version>
154 Bundle OSGi Manifest created by maven-bundle-plugin
157 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
162 <groupId>org.apache.felix</groupId>
163 <artifactId>maven-bundle-plugin</artifactId>
164 <extensions>true</extensions>
167 <id>bundle-manifest</id>
168 <phase>process-classes</phase>
170 <goal>manifest</goal>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-failsafe-plugin</artifactId>
179 <!-- Specific to generate mapping between tests and covered code -->
180 <argLine>${jacoco.agent.it.arg}</argLine>
183 <name>listener</name>
184 <value>org.sonar.java.jacoco.JUnitListener</value>
187 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
188 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-surefire-plugin</artifactId>
194 <version>${maven.surefire.version}</version>
196 <!-- Specific to generate mapping between tests and covered code -->
197 <argLine>${jacoco.agent.ut.arg}</argLine>
200 <name>listener</name>
201 <value>org.sonar.java.jacoco.JUnitListener</value>
208 <groupId>org.eclipse.m2e</groupId>
209 <artifactId>lifecycle-mapping</artifactId>
210 <version>1.0.0</version>
212 <lifecycleMappingMetadata>
215 <pluginExecutionFilter>
216 <groupId>org.apache.felix</groupId>
217 <artifactId>maven-bundle-plugin</artifactId>
218 <versionRange>[1.0,)</versionRange>
220 <goal>manifest</goal>
222 </pluginExecutionFilter>
228 <pluginExecutionFilter>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-antrun-plugin</artifactId>
231 <versionRange>[1.0,)</versionRange>
235 </pluginExecutionFilter>
241 <pluginExecutionFilter>
242 <groupId>org.opendaylight.yangtools</groupId>
243 <artifactId>yang-maven-plugin</artifactId>
244 <versionRange>[0.5,)</versionRange>
246 <goal>generate-sources</goal>
248 </pluginExecutionFilter>
254 <pluginExecutionFilter>
255 <groupId>org.codehaus.mojo</groupId>
256 <artifactId>properties-maven-plugin</artifactId>
257 <versionRange>1.0-alpha-2</versionRange>
259 <goal>write-project-properties</goal>
261 </pluginExecutionFilter>
267 <pluginExecutionFilter>
268 <groupId>org.ops4j.pax.exam</groupId>
269 <artifactId>maven-paxexam-plugin</artifactId>
270 <versionRange>1.2.4</versionRange>
272 <goal>generate-depends-file</goal>
274 </pluginExecutionFilter>
280 <pluginExecutionFilter>
281 <groupId>org.jacoco</groupId>
282 <artifactId>jacoco-maven-plugin</artifactId>
283 <versionRange>[0.6,)</versionRange>
285 <goal>prepare-agent</goal>
287 </pluginExecutionFilter>
293 </lifecycleMappingMetadata>
297 <groupId>org.opendaylight.yangtools</groupId>
298 <artifactId>yang-maven-plugin</artifactId>
299 <version>0.8.0-SNAPSHOT</version>
303 <goal>generate-sources</goal>
306 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
307 <inspectDependencies>true</inspectDependencies>
313 <groupId>org.ops4j.pax.exam</groupId>
314 <artifactId>maven-paxexam-plugin</artifactId>
315 <version>1.2.4</version>
318 <id>generate-config</id>
320 <goal>generate-depends-file</goal>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-javadoc-plugin</artifactId>
328 <version>${maven.javadoc.version}</version>
330 <stylesheetfile>stylesheet.css</stylesheetfile>
334 <id>attach-javadocs</id>
341 <goal>aggregate</goal>
348 <groupId>org.codehaus.mojo</groupId>
349 <artifactId>build-helper-maven-plugin</artifactId>
350 <version>1.8</version>
353 <phase>generate-sources</phase>
355 <goal>add-source</goal>
359 <source>target/generated-sources/parser</source>
360 <source>target/generated-sources/sal</source>
361 <source>${basedir}/src/main/xtend-gen</source>
368 <groupId>org.eclipse.xtend</groupId>
369 <artifactId>xtend-maven-plugin</artifactId>
370 <version>2.7.3</version>
377 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
383 <groupId>org.apache.servicemix.tooling</groupId>
384 <artifactId>depends-maven-plugin</artifactId>
385 <version>${maven.depends.version}</version>
388 <id>generate-depends-file</id>
390 <goal>generate-depends-file</goal>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-enforcer-plugin</artifactId>
405 <id>enforce-dependencies</id>
408 <DependencyConvergence />
420 <artifactId>maven-clean-plugin</artifactId>
424 <directory>${basedir}/src/main/xtend-gen</directory>
426 <include>**</include>
433 <groupId>org.apache.maven.plugins</groupId>
434 <artifactId>maven-jar-plugin</artifactId>
437 <groupId>org.apache.felix</groupId>
438 <artifactId>maven-bundle-plugin</artifactId>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-source-plugin</artifactId>
445 <id>attach-sources</id>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-javadoc-plugin</artifactId>
457 <groupId>org.jacoco</groupId>
458 <artifactId>jacoco-maven-plugin</artifactId>
461 <id>prepare-ut-agent</id>
462 <phase>process-test-classes</phase>
464 <goal>prepare-agent</goal>
467 <destFile>${sonar.jacoco.reportPath}</destFile>
468 <propertyName>jacoco.agent.ut.arg</propertyName>
472 <id>prepare-it-agent</id>
473 <phase>pre-integration-test</phase>
475 <goal>prepare-agent</goal>
478 <destFile>${sonar.jacoco.itReportPath}</destFile>
479 <propertyName>jacoco.agent.it.arg</propertyName>
490 <groupId>org.codehaus.mojo</groupId>
491 <artifactId>findbugs-maven-plugin</artifactId>
492 <version>${findbugs.maven.plugin.version}</version>
495 <threshold>Low</threshold>
500 <groupId>org.codehaus.mojo</groupId>
501 <artifactId>jdepend-maven-plugin</artifactId>
502 <version>${jdepend.maven.plugin.version}</version>