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.5.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.7.0-SNAPSHOT</version>
24 <packaging>pom</packaging>
27 <yangtools.version>0.7.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 <version>${maven.bundle.version}</version>
165 <extensions>true</extensions>
168 <id>bundle-manifest</id>
169 <phase>process-classes</phase>
171 <goal>manifest</goal>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-failsafe-plugin</artifactId>
180 <!-- Specific to generate mapping between tests and covered code -->
181 <argLine>${jacoco.agent.it.arg}</argLine>
184 <name>listener</name>
185 <value>org.sonar.java.jacoco.JUnitListener</value>
188 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
189 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-surefire-plugin</artifactId>
195 <version>${maven.surefire.version}</version>
197 <!-- Specific to generate mapping between tests and covered code -->
198 <argLine>${jacoco.agent.ut.arg}</argLine>
201 <name>listener</name>
202 <value>org.sonar.java.jacoco.JUnitListener</value>
209 <groupId>org.eclipse.m2e</groupId>
210 <artifactId>lifecycle-mapping</artifactId>
211 <version>1.0.0</version>
213 <lifecycleMappingMetadata>
216 <pluginExecutionFilter>
217 <groupId>org.apache.felix</groupId>
218 <artifactId>maven-bundle-plugin</artifactId>
219 <versionRange>[1.0,)</versionRange>
221 <goal>manifest</goal>
223 </pluginExecutionFilter>
229 <pluginExecutionFilter>
230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-antrun-plugin</artifactId>
232 <versionRange>[1.0,)</versionRange>
236 </pluginExecutionFilter>
242 <pluginExecutionFilter>
243 <groupId>org.opendaylight.yangtools</groupId>
244 <artifactId>yang-maven-plugin</artifactId>
245 <versionRange>[0.5,)</versionRange>
247 <goal>generate-sources</goal>
249 </pluginExecutionFilter>
255 <pluginExecutionFilter>
256 <groupId>org.codehaus.mojo</groupId>
257 <artifactId>properties-maven-plugin</artifactId>
258 <versionRange>1.0-alpha-2</versionRange>
260 <goal>write-project-properties</goal>
262 </pluginExecutionFilter>
268 <pluginExecutionFilter>
269 <groupId>org.ops4j.pax.exam</groupId>
270 <artifactId>maven-paxexam-plugin</artifactId>
271 <versionRange>1.2.4</versionRange>
273 <goal>generate-depends-file</goal>
275 </pluginExecutionFilter>
281 <pluginExecutionFilter>
282 <groupId>org.jacoco</groupId>
283 <artifactId>jacoco-maven-plugin</artifactId>
284 <versionRange>[0.6,)</versionRange>
286 <goal>prepare-agent</goal>
288 </pluginExecutionFilter>
294 </lifecycleMappingMetadata>
298 <groupId>org.opendaylight.yangtools</groupId>
299 <artifactId>yang-maven-plugin</artifactId>
300 <version>0.7.0-SNAPSHOT</version>
304 <goal>generate-sources</goal>
307 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
311 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
312 </codeGeneratorClass>
314 target/generated-sources/sal
318 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
319 <outputBaseDir>target/site/restconf</outputBaseDir>
322 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
323 <outputBaseDir>target/site/restconf</outputBaseDir>
326 <inspectDependencies>true</inspectDependencies>
332 <groupId>org.opendaylight.yangtools</groupId>
333 <artifactId>maven-sal-api-gen-plugin</artifactId>
334 <version>0.7.0-SNAPSHOT</version>
340 <groupId>org.ops4j.pax.exam</groupId>
341 <artifactId>maven-paxexam-plugin</artifactId>
342 <version>1.2.4</version>
345 <id>generate-config</id>
347 <goal>generate-depends-file</goal>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-javadoc-plugin</artifactId>
355 <version>${maven.javadoc.version}</version>
357 <stylesheetfile>stylesheet.css</stylesheetfile>
361 <id>attach-javadocs</id>
368 <goal>aggregate</goal>
375 <groupId>org.codehaus.mojo</groupId>
376 <artifactId>build-helper-maven-plugin</artifactId>
377 <version>1.8</version>
380 <phase>generate-sources</phase>
382 <goal>add-source</goal>
386 <source>target/generated-sources/parser</source>
387 <source>target/generated-sources/sal</source>
388 <source>${basedir}/src/main/xtend-gen</source>
395 <groupId>org.eclipse.xtend</groupId>
396 <artifactId>xtend-maven-plugin</artifactId>
397 <version>2.7.3</version>
404 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
410 <groupId>org.apache.servicemix.tooling</groupId>
411 <artifactId>depends-maven-plugin</artifactId>
412 <version>${maven.depends.version}</version>
415 <id>generate-depends-file</id>
417 <goal>generate-depends-file</goal>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-enforcer-plugin</artifactId>
432 <id>enforce-dependencies</id>
435 <DependencyConvergence />
447 <artifactId>maven-clean-plugin</artifactId>
451 <directory>${basedir}/src/main/xtend-gen</directory>
453 <include>**</include>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-jar-plugin</artifactId>
464 <groupId>org.apache.felix</groupId>
465 <artifactId>maven-bundle-plugin</artifactId>
468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-source-plugin</artifactId>
472 <id>attach-sources</id>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-javadoc-plugin</artifactId>
484 <groupId>org.jacoco</groupId>
485 <artifactId>jacoco-maven-plugin</artifactId>
488 <id>prepare-ut-agent</id>
489 <phase>process-test-classes</phase>
491 <goal>prepare-agent</goal>
494 <destFile>${sonar.jacoco.reportPath}</destFile>
495 <propertyName>jacoco.agent.ut.arg</propertyName>
499 <id>prepare-it-agent</id>
500 <phase>pre-integration-test</phase>
502 <goal>prepare-agent</goal>
505 <destFile>${sonar.jacoco.itReportPath}</destFile>
506 <propertyName>jacoco.agent.it.arg</propertyName>
517 <groupId>org.codehaus.mojo</groupId>
518 <artifactId>findbugs-maven-plugin</artifactId>
519 <version>${findbugs.maven.plugin.version}</version>
522 <threshold>Low</threshold>
527 <groupId>org.codehaus.mojo</groupId>
528 <artifactId>jdepend-maven-plugin</artifactId>
529 <version>${jdepend.maven.plugin.version}</version>
535 <!-- Note: we can not use variables for these URLs because we need to
536 be able to download the parent pom from the repository the first
537 time we go to use it (since it is in a different project).
538 To override the settings, use the "mirror" section of the
539 settings.xml. See http://maven.apache.org/settings.html -->
541 <!-- OpenDayLight Repo Mirror -->
543 <id>opendaylight-mirror</id>
544 <name>opendaylight-mirror</name>
545 <url>http://nexus.opendaylight.org/content/groups/public/</url>
547 <enabled>false</enabled>
550 <enabled>true</enabled>
551 <updatePolicy>never</updatePolicy>
555 <!-- OpenDayLight Snapshot artifact -->
557 <id>opendaylight-snapshot</id>
558 <name>opendaylight-snapshot</name>
559 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
561 <enabled>true</enabled>
564 <enabled>false</enabled>