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>
30 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
32 <!-- FIXME: these will be upstreamed -->
33 <maven.depends.version>1.2</maven.depends.version>
34 <maven.javadoc.version>2.9.1</maven.javadoc.version>
35 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
36 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
37 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
38 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
39 <sonar.profile>Sonar way with Findbugs</sonar.profile>
42 <dependencyManagement>
44 <!-- Testing Dependencies -->
46 <groupId>org.apache.maven.shared</groupId>
47 <artifactId>maven-verifier</artifactId>
48 <version>1.5</version>
52 <groupId>equinoxSDK381</groupId>
53 <artifactId>org.eclipse.osgi</artifactId>
54 <version>3.8.1.v20120830-144521</version>
58 <groupId>org.codehaus.groovy</groupId>
59 <artifactId>groovy</artifactId>
60 <version>2.1.6</version>
64 <groupId>org.codehaus.groovy</groupId>
65 <artifactId>groovy-xml</artifactId>
66 <version>2.1.6</version>
70 <groupId>xmlunit</groupId>
71 <artifactId>xmlunit</artifactId>
72 <version>1.5</version>
76 <groupId>org.apache.maven</groupId>
77 <artifactId>maven-core</artifactId>
78 <version>3.1.1</version>
81 <groupId>org.apache.maven</groupId>
82 <artifactId>maven-plugin-api</artifactId>
83 <version>3.1.1</version>
86 <groupId>org.javassist</groupId>
87 <artifactId>javassist</artifactId>
88 <version>${javassist.version}</version>
91 <groupId>xml-apis</groupId>
92 <artifactId>xml-apis</artifactId>
93 <version>2.0.2</version>
96 <groupId>org.eclipse.xtend</groupId>
97 <artifactId>org.eclipse.xtend.lib</artifactId>
98 <version>2.7.3</version>
101 <groupId>org.osgi</groupId>
102 <artifactId>org.osgi.core</artifactId>
103 <version>5.0.0</version>
104 <scope>provided</scope>
107 <groupId>javax.ws.rs</groupId>
108 <artifactId>javax.ws.rs-api</artifactId>
109 <version>2.0</version>
113 <groupId>org.glassfish.jersey.ext</groupId>
114 <artifactId>jersey-proxy-client</artifactId>
115 <version>2.0</version>
118 <groupId>org.glassfish.jersey.core</groupId>
119 <artifactId>jersey-client</artifactId>
120 <version>2.0</version>
124 <groupId>org.opendaylight.yangtools</groupId>
125 <artifactId>yangtools-artifacts</artifactId>
126 <version>${yangtools.version}</version>
127 <scope>import</scope>
131 </dependencyManagement>
136 <groupId>org.codehaus.sonar-plugins.java</groupId>
137 <artifactId>sonar-jacoco-listeners</artifactId>
138 <version>${sonar-jacoco-listeners.version}</version>
142 <groupId>org.slf4j</groupId>
143 <artifactId>slf4j-simple</artifactId>
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-jar-plugin</artifactId>
154 <version>${maven.jar.version}</version>
158 Bundle OSGi Manifest created by maven-bundle-plugin
161 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
166 <groupId>org.apache.felix</groupId>
167 <artifactId>maven-bundle-plugin</artifactId>
168 <version>${maven.bundle.version}</version>
169 <extensions>true</extensions>
172 <id>bundle-manifest</id>
173 <phase>process-classes</phase>
175 <goal>manifest</goal>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-failsafe-plugin</artifactId>
184 <!-- Specific to generate mapping between tests and covered code -->
185 <argLine>${jacoco.agent.it.arg}</argLine>
188 <name>listener</name>
189 <value>org.sonar.java.jacoco.JUnitListener</value>
192 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
193 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-surefire-plugin</artifactId>
199 <version>${maven.surefire.version}</version>
201 <!-- Specific to generate mapping between tests and covered code -->
202 <argLine>${jacoco.agent.ut.arg}</argLine>
205 <name>listener</name>
206 <value>org.sonar.java.jacoco.JUnitListener</value>
213 <groupId>org.eclipse.m2e</groupId>
214 <artifactId>lifecycle-mapping</artifactId>
215 <version>1.0.0</version>
217 <lifecycleMappingMetadata>
220 <pluginExecutionFilter>
221 <groupId>org.apache.felix</groupId>
222 <artifactId>maven-bundle-plugin</artifactId>
223 <versionRange>[1.0,)</versionRange>
225 <goal>manifest</goal>
227 </pluginExecutionFilter>
233 <pluginExecutionFilter>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-antrun-plugin</artifactId>
236 <versionRange>[1.0,)</versionRange>
240 </pluginExecutionFilter>
246 <pluginExecutionFilter>
247 <groupId>org.opendaylight.yangtools</groupId>
248 <artifactId>yang-maven-plugin</artifactId>
249 <versionRange>[0.5,)</versionRange>
251 <goal>generate-sources</goal>
253 </pluginExecutionFilter>
259 <pluginExecutionFilter>
260 <groupId>org.codehaus.mojo</groupId>
261 <artifactId>properties-maven-plugin</artifactId>
262 <versionRange>1.0-alpha-2</versionRange>
264 <goal>write-project-properties</goal>
266 </pluginExecutionFilter>
272 <pluginExecutionFilter>
273 <groupId>org.ops4j.pax.exam</groupId>
274 <artifactId>maven-paxexam-plugin</artifactId>
275 <versionRange>1.2.4</versionRange>
277 <goal>generate-depends-file</goal>
279 </pluginExecutionFilter>
285 <pluginExecutionFilter>
286 <groupId>org.jacoco</groupId>
287 <artifactId>jacoco-maven-plugin</artifactId>
288 <versionRange>[0.6,)</versionRange>
290 <goal>prepare-agent</goal>
292 </pluginExecutionFilter>
298 </lifecycleMappingMetadata>
302 <groupId>org.opendaylight.yangtools</groupId>
303 <artifactId>yang-maven-plugin</artifactId>
304 <version>0.7.0-SNAPSHOT</version>
308 <goal>generate-sources</goal>
311 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
315 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
316 </codeGeneratorClass>
318 target/generated-sources/sal
322 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
323 <outputBaseDir>target/site/restconf</outputBaseDir>
326 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
327 <outputBaseDir>target/site/restconf</outputBaseDir>
330 <inspectDependencies>true</inspectDependencies>
336 <groupId>org.opendaylight.yangtools</groupId>
337 <artifactId>maven-sal-api-gen-plugin</artifactId>
338 <version>0.7.0-SNAPSHOT</version>
344 <groupId>org.ops4j.pax.exam</groupId>
345 <artifactId>maven-paxexam-plugin</artifactId>
346 <version>1.2.4</version>
349 <id>generate-config</id>
351 <goal>generate-depends-file</goal>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-javadoc-plugin</artifactId>
359 <version>${maven.javadoc.version}</version>
361 <stylesheetfile>stylesheet.css</stylesheetfile>
365 <id>attach-javadocs</id>
372 <goal>aggregate</goal>
379 <groupId>org.codehaus.mojo</groupId>
380 <artifactId>build-helper-maven-plugin</artifactId>
381 <version>1.8</version>
384 <phase>generate-sources</phase>
386 <goal>add-source</goal>
390 <source>target/generated-sources/parser</source>
391 <source>target/generated-sources/sal</source>
392 <source>${basedir}/src/main/xtend-gen</source>
399 <groupId>org.eclipse.xtend</groupId>
400 <artifactId>xtend-maven-plugin</artifactId>
401 <version>2.7.3</version>
408 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
414 <groupId>org.apache.servicemix.tooling</groupId>
415 <artifactId>depends-maven-plugin</artifactId>
416 <version>${maven.depends.version}</version>
419 <id>generate-depends-file</id>
421 <goal>generate-depends-file</goal>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-enforcer-plugin</artifactId>
436 <id>enforce-dependencies</id>
439 <DependencyConvergence />
451 <artifactId>maven-clean-plugin</artifactId>
452 <version>2.5</version>
456 <directory>${basedir}/src/main/xtend-gen</directory>
458 <include>**</include>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-jar-plugin</artifactId>
469 <groupId>org.apache.felix</groupId>
470 <artifactId>maven-bundle-plugin</artifactId>
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-source-plugin</artifactId>
475 <version>${maven.source.version}</version>
478 <id>attach-sources</id>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-javadoc-plugin</artifactId>
490 <groupId>org.jacoco</groupId>
491 <artifactId>jacoco-maven-plugin</artifactId>
492 <version>0.7.2.201409121644</version>
495 <id>prepare-ut-agent</id>
496 <phase>process-test-classes</phase>
498 <goal>prepare-agent</goal>
501 <destFile>${sonar.jacoco.reportPath}</destFile>
502 <propertyName>jacoco.agent.ut.arg</propertyName>
506 <id>prepare-it-agent</id>
507 <phase>pre-integration-test</phase>
509 <goal>prepare-agent</goal>
512 <destFile>${sonar.jacoco.itReportPath}</destFile>
513 <propertyName>jacoco.agent.it.arg</propertyName>
524 <groupId>org.codehaus.mojo</groupId>
525 <artifactId>findbugs-maven-plugin</artifactId>
526 <version>${findbugs.maven.plugin.version}</version>
529 <threshold>Low</threshold>
534 <groupId>org.codehaus.mojo</groupId>
535 <artifactId>jdepend-maven-plugin</artifactId>
536 <version>${jdepend.maven.plugin.version}</version>
542 <!-- Note: we can not use variables for these URLs because we need to
543 be able to download the parent pom from the repository the first
544 time we go to use it (since it is in a different project).
545 To override the settings, use the "mirror" section of the
546 settings.xml. See http://maven.apache.org/settings.html -->
548 <!-- OpenDayLight Repo Mirror -->
550 <id>opendaylight-mirror</id>
551 <name>opendaylight-mirror</name>
552 <url>http://nexus.opendaylight.org/content/groups/public/</url>
554 <enabled>false</enabled>
557 <enabled>true</enabled>
558 <updatePolicy>never</updatePolicy>
562 <!-- OpenDayLight Snapshot artifact -->
564 <id>opendaylight-snapshot</id>
565 <name>opendaylight-snapshot</name>
566 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
568 <enabled>true</enabled>
571 <enabled>false</enabled>