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 <pluginExecutionFilter>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-checkstyle-plugin</artifactId>
296 <versionRange>[2.12,)</versionRange>
300 </pluginExecutionFilter>
306 </lifecycleMappingMetadata>
310 <groupId>org.opendaylight.yangtools</groupId>
311 <artifactId>yang-maven-plugin</artifactId>
312 <version>0.8.0-SNAPSHOT</version>
316 <goal>generate-sources</goal>
319 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
323 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
324 </codeGeneratorClass>
326 target/generated-sources/sal
330 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
331 <outputBaseDir>target/site/restconf</outputBaseDir>
334 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
335 <outputBaseDir>target/site/restconf</outputBaseDir>
338 <inspectDependencies>true</inspectDependencies>
344 <groupId>org.opendaylight.yangtools</groupId>
345 <artifactId>maven-sal-api-gen-plugin</artifactId>
346 <version>0.8.0-SNAPSHOT</version>
352 <groupId>org.ops4j.pax.exam</groupId>
353 <artifactId>maven-paxexam-plugin</artifactId>
354 <version>1.2.4</version>
357 <id>generate-config</id>
359 <goal>generate-depends-file</goal>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-javadoc-plugin</artifactId>
367 <version>${maven.javadoc.version}</version>
369 <stylesheetfile>stylesheet.css</stylesheetfile>
373 <id>attach-javadocs</id>
380 <goal>aggregate</goal>
387 <groupId>org.codehaus.mojo</groupId>
388 <artifactId>build-helper-maven-plugin</artifactId>
389 <version>1.8</version>
392 <phase>generate-sources</phase>
394 <goal>add-source</goal>
398 <source>target/generated-sources/parser</source>
399 <source>target/generated-sources/sal</source>
400 <source>${basedir}/src/main/xtend-gen</source>
407 <groupId>org.eclipse.xtend</groupId>
408 <artifactId>xtend-maven-plugin</artifactId>
409 <version>2.7.3</version>
416 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
422 <groupId>org.apache.servicemix.tooling</groupId>
423 <artifactId>depends-maven-plugin</artifactId>
424 <version>${maven.depends.version}</version>
427 <id>generate-depends-file</id>
429 <goal>generate-depends-file</goal>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-enforcer-plugin</artifactId>
444 <id>enforce-dependencies</id>
447 <DependencyConvergence />
459 <artifactId>maven-clean-plugin</artifactId>
463 <directory>${basedir}/src/main/xtend-gen</directory>
465 <include>**</include>
472 <groupId>org.apache.maven.plugins</groupId>
473 <artifactId>maven-jar-plugin</artifactId>
476 <groupId>org.apache.felix</groupId>
477 <artifactId>maven-bundle-plugin</artifactId>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-source-plugin</artifactId>
484 <id>attach-sources</id>
492 <groupId>org.apache.maven.plugins</groupId>
493 <artifactId>maven-javadoc-plugin</artifactId>
496 <groupId>org.jacoco</groupId>
497 <artifactId>jacoco-maven-plugin</artifactId>
500 <id>prepare-ut-agent</id>
501 <phase>process-test-classes</phase>
503 <goal>prepare-agent</goal>
506 <destFile>${sonar.jacoco.reportPath}</destFile>
507 <propertyName>jacoco.agent.ut.arg</propertyName>
511 <id>prepare-it-agent</id>
512 <phase>pre-integration-test</phase>
514 <goal>prepare-agent</goal>
517 <destFile>${sonar.jacoco.itReportPath}</destFile>
518 <propertyName>jacoco.agent.it.arg</propertyName>
529 <groupId>org.codehaus.mojo</groupId>
530 <artifactId>findbugs-maven-plugin</artifactId>
531 <version>${findbugs.maven.plugin.version}</version>
534 <threshold>Low</threshold>
539 <groupId>org.codehaus.mojo</groupId>
540 <artifactId>jdepend-maven-plugin</artifactId>
541 <version>${jdepend.maven.plugin.version}</version>