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 <commons.io.version>2.4</commons.io.version>
31 <ctrie.version>0.2.0</ctrie.version>
32 <exam.version>3.0.0</exam.version>
33 <groovy.version>2.1.6</groovy.version>
34 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
35 <karaf.version>3.0.1</karaf.version>
36 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
37 <maven.javadoc.version>2.9.1</maven.javadoc.version>
38 <jsr305.version>2.0.1</jsr305.version>
39 <maven.depends.version>1.2</maven.depends.version>
42 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
43 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
45 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
46 <sonar.profile>Sonar way with Findbugs</sonar.profile>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-javadoc-plugin</artifactId>
61 <version>${maven.javadoc.version}</version>
63 <stylesheetfile>stylesheet.css</stylesheetfile>
64 <additionalparam>-Xdoclint:none</additionalparam>
68 <id>attach-javadocs</id>
75 <goal>aggregate</goal>
87 <dependencyManagement>
89 <!-- Testing Dependencies -->
91 <groupId>org.apache.maven.shared</groupId>
92 <artifactId>maven-verifier</artifactId>
93 <version>1.5</version>
97 <groupId>equinoxSDK381</groupId>
98 <artifactId>org.eclipse.osgi</artifactId>
99 <version>3.8.1.v20120830-144521</version>
103 <groupId>org.codehaus.groovy</groupId>
104 <artifactId>groovy</artifactId>
105 <version>2.1.6</version>
109 <groupId>org.codehaus.groovy</groupId>
110 <artifactId>groovy-xml</artifactId>
111 <version>2.1.6</version>
115 <groupId>xmlunit</groupId>
116 <artifactId>xmlunit</artifactId>
117 <version>1.5</version>
121 <groupId>org.apache.maven</groupId>
122 <artifactId>maven-core</artifactId>
123 <version>3.0.5</version>
126 <groupId>org.apache.maven</groupId>
127 <artifactId>maven-plugin-api</artifactId>
128 <version>3.0.5</version>
131 <groupId>org.javassist</groupId>
132 <artifactId>javassist</artifactId>
133 <version>${javassist.version}</version>
136 <groupId>xml-apis</groupId>
137 <artifactId>xml-apis</artifactId>
138 <version>2.0.2</version>
141 <groupId>org.eclipse.xtend</groupId>
142 <artifactId>org.eclipse.xtend.lib</artifactId>
143 <version>2.4.3</version>
146 <groupId>org.osgi</groupId>
147 <artifactId>org.osgi.core</artifactId>
148 <version>5.0.0</version>
149 <scope>provided</scope>
152 <groupId>javax.ws.rs</groupId>
153 <artifactId>javax.ws.rs-api</artifactId>
154 <version>2.0</version>
158 <groupId>org.glassfish.jersey.ext</groupId>
159 <artifactId>jersey-proxy-client</artifactId>
160 <version>2.0</version>
163 <groupId>org.glassfish.jersey.core</groupId>
164 <artifactId>jersey-client</artifactId>
165 <version>2.0</version>
169 <groupId>org.opendaylight.yangtools</groupId>
170 <artifactId>yangtools-artifacts</artifactId>
171 <version>${yangtools.version}</version>
172 <scope>import</scope>
176 </dependencyManagement>
181 <groupId>org.codehaus.sonar-plugins.java</groupId>
182 <artifactId>sonar-jacoco-listeners</artifactId>
183 <version>${sonar-jacoco-listeners.version}</version>
187 <groupId>org.slf4j</groupId>
188 <artifactId>slf4j-simple</artifactId>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-jar-plugin</artifactId>
199 <version>${maven.jar.version}</version>
203 Bundle OSGi Manifest created by maven-bundle-plugin
206 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
211 <groupId>org.apache.felix</groupId>
212 <artifactId>maven-bundle-plugin</artifactId>
213 <version>${maven.bundle.version}</version>
214 <extensions>true</extensions>
217 <id>bundle-manifest</id>
218 <phase>process-classes</phase>
220 <goal>manifest</goal>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-failsafe-plugin</artifactId>
229 <!-- Specific to generate mapping between tests and covered code -->
230 <argLine>${jacoco.agent.it.arg}</argLine>
233 <name>listener</name>
234 <value>org.sonar.java.jacoco.JUnitListener</value>
237 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
238 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-surefire-plugin</artifactId>
244 <version>${maven.surefire.version}</version>
246 <!-- Specific to generate mapping between tests and covered code -->
247 <argLine>${jacoco.agent.ut.arg}</argLine>
250 <name>listener</name>
251 <value>org.sonar.java.jacoco.JUnitListener</value>
258 <groupId>org.eclipse.m2e</groupId>
259 <artifactId>lifecycle-mapping</artifactId>
260 <version>1.0.0</version>
262 <lifecycleMappingMetadata>
265 <pluginExecutionFilter>
266 <groupId>org.apache.felix</groupId>
267 <artifactId>maven-bundle-plugin</artifactId>
268 <versionRange>[1.0,)</versionRange>
270 <goal>manifest</goal>
272 </pluginExecutionFilter>
278 <pluginExecutionFilter>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-antrun-plugin</artifactId>
281 <versionRange>[1.0,)</versionRange>
285 </pluginExecutionFilter>
291 <pluginExecutionFilter>
292 <groupId>org.opendaylight.yangtools</groupId>
293 <artifactId>yang-maven-plugin</artifactId>
294 <versionRange>[0.5,)</versionRange>
296 <goal>generate-sources</goal>
298 </pluginExecutionFilter>
304 <pluginExecutionFilter>
305 <groupId>org.codehaus.mojo</groupId>
306 <artifactId>properties-maven-plugin</artifactId>
307 <versionRange>1.0-alpha-2</versionRange>
309 <goal>write-project-properties</goal>
311 </pluginExecutionFilter>
317 <pluginExecutionFilter>
318 <groupId>org.ops4j.pax.exam</groupId>
319 <artifactId>maven-paxexam-plugin</artifactId>
320 <versionRange>1.2.4</versionRange>
322 <goal>generate-depends-file</goal>
324 </pluginExecutionFilter>
330 <pluginExecutionFilter>
331 <groupId>org.jacoco</groupId>
332 <artifactId>jacoco-maven-plugin</artifactId>
333 <versionRange>[0.6,)</versionRange>
335 <goal>prepare-agent</goal>
337 </pluginExecutionFilter>
343 </lifecycleMappingMetadata>
347 <groupId>org.opendaylight.yangtools</groupId>
348 <artifactId>yang-maven-plugin</artifactId>
349 <version>0.7.0-SNAPSHOT</version>
353 <goal>generate-sources</goal>
356 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
360 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
361 </codeGeneratorClass>
363 target/generated-sources/sal
367 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
368 <outputBaseDir>target/site/restconf</outputBaseDir>
371 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
372 <outputBaseDir>target/site/restconf</outputBaseDir>
375 <inspectDependencies>true</inspectDependencies>
381 <groupId>org.opendaylight.yangtools</groupId>
382 <artifactId>maven-sal-api-gen-plugin</artifactId>
383 <version>0.7.0-SNAPSHOT</version>
389 <groupId>org.ops4j.pax.exam</groupId>
390 <artifactId>maven-paxexam-plugin</artifactId>
391 <version>1.2.4</version>
394 <id>generate-config</id>
396 <goal>generate-depends-file</goal>
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-javadoc-plugin</artifactId>
404 <version>${maven.javadoc.version}</version>
406 <stylesheetfile>stylesheet.css</stylesheetfile>
410 <id>attach-javadocs</id>
417 <goal>aggregate</goal>
424 <groupId>org.codehaus.mojo</groupId>
425 <artifactId>build-helper-maven-plugin</artifactId>
426 <version>1.8</version>
429 <phase>generate-sources</phase>
431 <goal>add-source</goal>
435 <source>target/generated-sources/parser</source>
436 <source>target/generated-sources/sal</source>
437 <source>${basedir}/src/main/xtend-gen</source>
444 <groupId>org.eclipse.xtend</groupId>
445 <artifactId>xtend-maven-plugin</artifactId>
446 <version>${xtend.version}</version>
453 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
459 <groupId>org.apache.servicemix.tooling</groupId>
460 <artifactId>depends-maven-plugin</artifactId>
461 <version>${maven.depends.version}</version>
464 <id>generate-depends-file</id>
466 <goal>generate-depends-file</goal>
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-enforcer-plugin</artifactId>
479 <version>1.0</version>
485 <DependencyConvergence />
496 <artifactId>maven-clean-plugin</artifactId>
497 <version>2.5</version>
501 <directory>${basedir}/src/main/xtend-gen</directory>
503 <include>**</include>
510 <groupId>org.apache.maven.plugins</groupId>
511 <artifactId>maven-jar-plugin</artifactId>
514 <groupId>org.apache.felix</groupId>
515 <artifactId>maven-bundle-plugin</artifactId>
518 <groupId>org.apache.maven.plugins</groupId>
519 <artifactId>maven-source-plugin</artifactId>
520 <version>${maven.source.version}</version>
523 <id>attach-sources</id>
531 <groupId>org.apache.maven.plugins</groupId>
532 <artifactId>maven-javadoc-plugin</artifactId>
535 <groupId>org.jacoco</groupId>
536 <artifactId>jacoco-maven-plugin</artifactId>
537 <version>0.7.2.201409121644</version>
540 <id>prepare-ut-agent</id>
541 <phase>process-test-classes</phase>
543 <goal>prepare-agent</goal>
546 <destFile>${sonar.jacoco.reportPath}</destFile>
547 <propertyName>jacoco.agent.ut.arg</propertyName>
551 <id>prepare-it-agent</id>
552 <phase>pre-integration-test</phase>
554 <goal>prepare-agent</goal>
557 <destFile>${sonar.jacoco.itReportPath}</destFile>
558 <propertyName>jacoco.agent.it.arg</propertyName>
569 <groupId>org.codehaus.mojo</groupId>
570 <artifactId>findbugs-maven-plugin</artifactId>
571 <version>${findbugs.maven.plugin.version}</version>
574 <threshold>Low</threshold>
579 <groupId>org.codehaus.mojo</groupId>
580 <artifactId>jdepend-maven-plugin</artifactId>
581 <version>${jdepend.maven.plugin.version}</version>
587 <!-- Note: we can not use variables for these URLs because we need to
588 be able to download the parent pom from the repository the first
589 time we go to use it (since it is in a different project).
590 To override the settings, use the "mirror" section of the
591 settings.xml. See http://maven.apache.org/settings.html -->
593 <!-- OpenDayLight Repo Mirror -->
595 <id>opendaylight-mirror</id>
596 <name>opendaylight-mirror</name>
597 <url>http://nexus.opendaylight.org/content/groups/public/</url>
599 <enabled>false</enabled>
602 <enabled>true</enabled>
603 <updatePolicy>never</updatePolicy>
607 <!-- OpenDayLight Snapshot artifact -->
609 <id>opendaylight-snapshot</id>
610 <name>opendaylight-snapshot</name>
611 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
613 <enabled>true</enabled>
616 <enabled>false</enabled>