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>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-javadoc-plugin</artifactId>
54 <version>${maven.javadoc.version}</version>
56 <stylesheetfile>stylesheet.css</stylesheetfile>
57 <additionalparam>-Xdoclint:none</additionalparam>
61 <id>attach-javadocs</id>
68 <goal>aggregate</goal>
80 <dependencyManagement>
82 <!-- Testing Dependencies -->
84 <groupId>org.apache.maven.shared</groupId>
85 <artifactId>maven-verifier</artifactId>
86 <version>1.5</version>
90 <groupId>equinoxSDK381</groupId>
91 <artifactId>org.eclipse.osgi</artifactId>
92 <version>3.8.1.v20120830-144521</version>
96 <groupId>org.codehaus.groovy</groupId>
97 <artifactId>groovy</artifactId>
98 <version>2.1.6</version>
102 <groupId>org.codehaus.groovy</groupId>
103 <artifactId>groovy-xml</artifactId>
104 <version>2.1.6</version>
108 <groupId>xmlunit</groupId>
109 <artifactId>xmlunit</artifactId>
110 <version>1.5</version>
114 <groupId>org.apache.maven</groupId>
115 <artifactId>maven-core</artifactId>
116 <version>3.0.5</version>
119 <groupId>org.apache.maven</groupId>
120 <artifactId>maven-plugin-api</artifactId>
121 <version>3.0.5</version>
124 <groupId>org.javassist</groupId>
125 <artifactId>javassist</artifactId>
126 <version>${javassist.version}</version>
129 <groupId>xml-apis</groupId>
130 <artifactId>xml-apis</artifactId>
131 <version>2.0.2</version>
134 <groupId>org.eclipse.xtend</groupId>
135 <artifactId>org.eclipse.xtend.lib</artifactId>
136 <version>2.4.3</version>
139 <groupId>org.osgi</groupId>
140 <artifactId>org.osgi.core</artifactId>
141 <version>5.0.0</version>
142 <scope>provided</scope>
145 <groupId>javax.ws.rs</groupId>
146 <artifactId>javax.ws.rs-api</artifactId>
147 <version>2.0</version>
151 <groupId>org.glassfish.jersey.ext</groupId>
152 <artifactId>jersey-proxy-client</artifactId>
153 <version>2.0</version>
156 <groupId>org.glassfish.jersey.core</groupId>
157 <artifactId>jersey-client</artifactId>
158 <version>2.0</version>
162 <groupId>org.opendaylight.yangtools</groupId>
163 <artifactId>yangtools-artifacts</artifactId>
164 <version>${yangtools.version}</version>
165 <scope>import</scope>
169 </dependencyManagement>
174 <groupId>org.codehaus.sonar-plugins.java</groupId>
175 <artifactId>sonar-jacoco-listeners</artifactId>
176 <version>${sonar-jacoco-listeners.version}</version>
180 <groupId>org.slf4j</groupId>
181 <artifactId>slf4j-simple</artifactId>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-jar-plugin</artifactId>
192 <version>${maven.jar.version}</version>
196 Bundle OSGi Manifest created by maven-bundle-plugin
199 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
204 <groupId>org.apache.felix</groupId>
205 <artifactId>maven-bundle-plugin</artifactId>
206 <version>${maven.bundle.version}</version>
207 <extensions>true</extensions>
210 <id>bundle-manifest</id>
211 <phase>process-classes</phase>
213 <goal>manifest</goal>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-failsafe-plugin</artifactId>
222 <!-- Specific to generate mapping between tests and covered code -->
223 <argLine>${jacoco.agent.it.arg}</argLine>
226 <name>listener</name>
227 <value>org.sonar.java.jacoco.JUnitListener</value>
230 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
231 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-surefire-plugin</artifactId>
237 <version>${maven.surefire.version}</version>
239 <!-- Specific to generate mapping between tests and covered code -->
240 <argLine>${jacoco.agent.ut.arg}</argLine>
243 <name>listener</name>
244 <value>org.sonar.java.jacoco.JUnitListener</value>
251 <groupId>org.eclipse.m2e</groupId>
252 <artifactId>lifecycle-mapping</artifactId>
253 <version>1.0.0</version>
255 <lifecycleMappingMetadata>
258 <pluginExecutionFilter>
259 <groupId>org.apache.felix</groupId>
260 <artifactId>maven-bundle-plugin</artifactId>
261 <versionRange>[1.0,)</versionRange>
263 <goal>manifest</goal>
265 </pluginExecutionFilter>
271 <pluginExecutionFilter>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-antrun-plugin</artifactId>
274 <versionRange>[1.0,)</versionRange>
278 </pluginExecutionFilter>
284 <pluginExecutionFilter>
285 <groupId>org.opendaylight.yangtools</groupId>
286 <artifactId>yang-maven-plugin</artifactId>
287 <versionRange>[0.5,)</versionRange>
289 <goal>generate-sources</goal>
291 </pluginExecutionFilter>
297 <pluginExecutionFilter>
298 <groupId>org.codehaus.mojo</groupId>
299 <artifactId>properties-maven-plugin</artifactId>
300 <versionRange>1.0-alpha-2</versionRange>
302 <goal>write-project-properties</goal>
304 </pluginExecutionFilter>
310 <pluginExecutionFilter>
311 <groupId>org.ops4j.pax.exam</groupId>
312 <artifactId>maven-paxexam-plugin</artifactId>
313 <versionRange>1.2.4</versionRange>
315 <goal>generate-depends-file</goal>
317 </pluginExecutionFilter>
323 <pluginExecutionFilter>
324 <groupId>org.jacoco</groupId>
325 <artifactId>jacoco-maven-plugin</artifactId>
326 <versionRange>[0.6,)</versionRange>
328 <goal>prepare-agent</goal>
330 </pluginExecutionFilter>
336 </lifecycleMappingMetadata>
340 <groupId>org.opendaylight.yangtools</groupId>
341 <artifactId>yang-maven-plugin</artifactId>
342 <version>0.7.0-SNAPSHOT</version>
346 <goal>generate-sources</goal>
349 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
353 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
354 </codeGeneratorClass>
356 target/generated-sources/sal
360 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
361 <outputBaseDir>target/site/restconf</outputBaseDir>
364 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
365 <outputBaseDir>target/site/restconf</outputBaseDir>
368 <inspectDependencies>true</inspectDependencies>
374 <groupId>org.opendaylight.yangtools</groupId>
375 <artifactId>maven-sal-api-gen-plugin</artifactId>
376 <version>0.7.0-SNAPSHOT</version>
382 <groupId>org.ops4j.pax.exam</groupId>
383 <artifactId>maven-paxexam-plugin</artifactId>
384 <version>1.2.4</version>
387 <id>generate-config</id>
389 <goal>generate-depends-file</goal>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-javadoc-plugin</artifactId>
397 <version>${maven.javadoc.version}</version>
399 <stylesheetfile>stylesheet.css</stylesheetfile>
403 <id>attach-javadocs</id>
410 <goal>aggregate</goal>
417 <groupId>org.codehaus.mojo</groupId>
418 <artifactId>build-helper-maven-plugin</artifactId>
419 <version>1.8</version>
422 <phase>generate-sources</phase>
424 <goal>add-source</goal>
428 <source>target/generated-sources/parser</source>
429 <source>target/generated-sources/sal</source>
430 <source>${basedir}/src/main/xtend-gen</source>
437 <groupId>org.eclipse.xtend</groupId>
438 <artifactId>xtend-maven-plugin</artifactId>
439 <version>${xtend.version}</version>
446 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
452 <groupId>org.apache.servicemix.tooling</groupId>
453 <artifactId>depends-maven-plugin</artifactId>
454 <version>${maven.depends.version}</version>
457 <id>generate-depends-file</id>
459 <goal>generate-depends-file</goal>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-enforcer-plugin</artifactId>
474 <id>enforce-dependencies</id>
477 <DependencyConvergence />
489 <artifactId>maven-clean-plugin</artifactId>
490 <version>2.5</version>
494 <directory>${basedir}/src/main/xtend-gen</directory>
496 <include>**</include>
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-jar-plugin</artifactId>
507 <groupId>org.apache.felix</groupId>
508 <artifactId>maven-bundle-plugin</artifactId>
511 <groupId>org.apache.maven.plugins</groupId>
512 <artifactId>maven-source-plugin</artifactId>
513 <version>${maven.source.version}</version>
516 <id>attach-sources</id>
524 <groupId>org.apache.maven.plugins</groupId>
525 <artifactId>maven-javadoc-plugin</artifactId>
528 <groupId>org.jacoco</groupId>
529 <artifactId>jacoco-maven-plugin</artifactId>
530 <version>0.7.2.201409121644</version>
533 <id>prepare-ut-agent</id>
534 <phase>process-test-classes</phase>
536 <goal>prepare-agent</goal>
539 <destFile>${sonar.jacoco.reportPath}</destFile>
540 <propertyName>jacoco.agent.ut.arg</propertyName>
544 <id>prepare-it-agent</id>
545 <phase>pre-integration-test</phase>
547 <goal>prepare-agent</goal>
550 <destFile>${sonar.jacoco.itReportPath}</destFile>
551 <propertyName>jacoco.agent.it.arg</propertyName>
562 <groupId>org.codehaus.mojo</groupId>
563 <artifactId>findbugs-maven-plugin</artifactId>
564 <version>${findbugs.maven.plugin.version}</version>
567 <threshold>Low</threshold>
572 <groupId>org.codehaus.mojo</groupId>
573 <artifactId>jdepend-maven-plugin</artifactId>
574 <version>${jdepend.maven.plugin.version}</version>
580 <!-- Note: we can not use variables for these URLs because we need to
581 be able to download the parent pom from the repository the first
582 time we go to use it (since it is in a different project).
583 To override the settings, use the "mirror" section of the
584 settings.xml. See http://maven.apache.org/settings.html -->
586 <!-- OpenDayLight Repo Mirror -->
588 <id>opendaylight-mirror</id>
589 <name>opendaylight-mirror</name>
590 <url>http://nexus.opendaylight.org/content/groups/public/</url>
592 <enabled>false</enabled>
595 <enabled>true</enabled>
596 <updatePolicy>never</updatePolicy>
600 <!-- OpenDayLight Snapshot artifact -->
602 <id>opendaylight-snapshot</id>
603 <name>opendaylight-snapshot</name>
604 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
606 <enabled>true</enabled>
609 <enabled>false</enabled>