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.1-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.1-SNAPSHOT</version>
24 <packaging>pom</packaging>
27 <yangtools.version>0.8.1-SNAPSHOT</yangtools.version>
29 <!-- FIXME: these will be upstreamed -->
30 <maven.depends.version>1.2</maven.depends.version>
33 <dependencyManagement>
35 <!-- Testing Dependencies -->
37 <groupId>org.apache.maven.shared</groupId>
38 <artifactId>maven-verifier</artifactId>
39 <version>1.6</version>
43 <groupId>org.codehaus.groovy</groupId>
44 <artifactId>groovy</artifactId>
45 <version>2.4.5</version>
49 <groupId>org.codehaus.groovy</groupId>
50 <artifactId>groovy-xml</artifactId>
51 <version>2.4.5</version>
55 <groupId>org.apache.maven</groupId>
56 <artifactId>maven-core</artifactId>
57 <version>3.3.3</version>
60 <groupId>org.apache.maven</groupId>
61 <artifactId>maven-plugin-api</artifactId>
62 <version>3.3.3</version>
65 <groupId>org.eclipse.xtend</groupId>
66 <artifactId>org.eclipse.xtend.lib</artifactId>
67 <version>2.8.4</version>
71 <groupId>org.glassfish.jersey.ext</groupId>
72 <artifactId>jersey-proxy-client</artifactId>
73 <version>2.22</version>
76 <groupId>org.glassfish.jersey.core</groupId>
77 <artifactId>jersey-client</artifactId>
78 <version>2.22</version>
82 <groupId>org.opendaylight.yangtools</groupId>
83 <artifactId>yangtools-artifacts</artifactId>
84 <version>${yangtools.version}</version>
90 <groupId>org.antlr</groupId>
91 <artifactId>antlr4-runtime</artifactId>
92 <version>4.5.1</version>
95 </dependencyManagement>
100 <groupId>org.codehaus.sonar-plugins.java</groupId>
101 <artifactId>sonar-jacoco-listeners</artifactId>
102 <version>${sonar-jacoco-listeners.version}</version>
106 <groupId>org.slf4j</groupId>
107 <artifactId>slf4j-simple</artifactId>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-jar-plugin</artifactId>
118 <version>${maven.jar.version}</version>
122 Bundle OSGi Manifest created by maven-bundle-plugin
125 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
130 <groupId>org.apache.felix</groupId>
131 <artifactId>maven-bundle-plugin</artifactId>
132 <extensions>true</extensions>
135 <id>bundle-manifest</id>
136 <phase>process-classes</phase>
138 <goal>manifest</goal>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-failsafe-plugin</artifactId>
147 <!-- Specific to generate mapping between tests and covered code -->
148 <argLine>${jacoco.agent.it.arg}</argLine>
151 <name>listener</name>
152 <value>org.sonar.java.jacoco.JUnitListener</value>
155 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
156 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-surefire-plugin</artifactId>
162 <version>${maven.surefire.version}</version>
164 <!-- Specific to generate mapping between tests and covered code -->
165 <argLine>${jacoco.agent.ut.arg}</argLine>
168 <name>listener</name>
169 <value>org.sonar.java.jacoco.JUnitListener</value>
176 <groupId>org.eclipse.m2e</groupId>
177 <artifactId>lifecycle-mapping</artifactId>
178 <version>1.0.0</version>
180 <lifecycleMappingMetadata>
183 <pluginExecutionFilter>
184 <groupId>org.apache.felix</groupId>
185 <artifactId>maven-bundle-plugin</artifactId>
186 <versionRange>[1.0,)</versionRange>
188 <goal>manifest</goal>
190 </pluginExecutionFilter>
196 <pluginExecutionFilter>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-antrun-plugin</artifactId>
199 <versionRange>[1.0,)</versionRange>
203 </pluginExecutionFilter>
209 <pluginExecutionFilter>
210 <groupId>org.opendaylight.yangtools</groupId>
211 <artifactId>yang-maven-plugin</artifactId>
212 <versionRange>[0.5,)</versionRange>
214 <goal>generate-sources</goal>
216 </pluginExecutionFilter>
222 <pluginExecutionFilter>
223 <groupId>org.codehaus.mojo</groupId>
224 <artifactId>properties-maven-plugin</artifactId>
225 <versionRange>1.0-alpha-2</versionRange>
227 <goal>write-project-properties</goal>
229 </pluginExecutionFilter>
235 <pluginExecutionFilter>
236 <groupId>org.ops4j.pax.exam</groupId>
237 <artifactId>maven-paxexam-plugin</artifactId>
238 <versionRange>1.2.4</versionRange>
240 <goal>generate-depends-file</goal>
242 </pluginExecutionFilter>
248 <pluginExecutionFilter>
249 <groupId>org.jacoco</groupId>
250 <artifactId>jacoco-maven-plugin</artifactId>
251 <versionRange>[0.6,)</versionRange>
253 <goal>prepare-agent</goal>
255 </pluginExecutionFilter>
261 <pluginExecutionFilter>
262 <groupId>org.antlr</groupId>
263 <artifactId>antlr4-maven-plugin</artifactId>
264 <versionRange>[4.0,)</versionRange>
268 </pluginExecutionFilter>
274 </lifecycleMappingMetadata>
278 <groupId>org.opendaylight.yangtools</groupId>
279 <artifactId>yang-maven-plugin</artifactId>
280 <version>0.8.1-SNAPSHOT</version>
284 <goal>generate-sources</goal>
287 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
288 <inspectDependencies>true</inspectDependencies>
294 <groupId>org.ops4j.pax.exam</groupId>
295 <artifactId>maven-paxexam-plugin</artifactId>
296 <version>1.2.4</version>
299 <id>generate-config</id>
301 <goal>generate-depends-file</goal>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-javadoc-plugin</artifactId>
309 <version>${maven.javadoc.version}</version>
311 <stylesheetfile>stylesheet.css</stylesheetfile>
315 <id>attach-javadocs</id>
322 <goal>aggregate</goal>
329 <groupId>org.codehaus.mojo</groupId>
330 <artifactId>build-helper-maven-plugin</artifactId>
331 <version>1.9.1</version>
334 <phase>generate-sources</phase>
336 <goal>add-source</goal>
340 <source>target/generated-sources/parser</source>
341 <source>target/generated-sources/sal</source>
342 <source>${basedir}/src/main/xtend-gen</source>
349 <groupId>org.eclipse.xtend</groupId>
350 <artifactId>xtend-maven-plugin</artifactId>
351 <version>2.8.4</version>
358 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
364 <groupId>org.apache.servicemix.tooling</groupId>
365 <artifactId>depends-maven-plugin</artifactId>
366 <version>${maven.depends.version}</version>
369 <id>generate-depends-file</id>
371 <goal>generate-depends-file</goal>
378 <groupId>org.antlr</groupId>
379 <artifactId>antlr4-maven-plugin</artifactId>
380 <version>4.5.1</version>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-enforcer-plugin</artifactId>
399 <id>enforce-dependencies</id>
402 <DependencyConvergence />
414 <artifactId>maven-clean-plugin</artifactId>
418 <directory>${basedir}/src/main/xtend-gen</directory>
420 <include>**</include>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-jar-plugin</artifactId>
431 <groupId>org.apache.felix</groupId>
432 <artifactId>maven-bundle-plugin</artifactId>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-source-plugin</artifactId>
439 <id>attach-sources</id>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-javadoc-plugin</artifactId>
451 <groupId>org.jacoco</groupId>
452 <artifactId>jacoco-maven-plugin</artifactId>
455 <id>prepare-ut-agent</id>
456 <phase>process-test-classes</phase>
458 <goal>prepare-agent</goal>
461 <destFile>${sonar.jacoco.reportPath}</destFile>
462 <propertyName>jacoco.agent.ut.arg</propertyName>
466 <id>prepare-it-agent</id>
467 <phase>pre-integration-test</phase>
469 <goal>prepare-agent</goal>
472 <destFile>${sonar.jacoco.itReportPath}</destFile>
473 <propertyName>jacoco.agent.it.arg</propertyName>
482 Maven Site Configuration
484 The following configuration is necessary for maven-site-plugin to
485 correctly identify the correct deployment path for OpenDaylight Maven
488 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
490 <distributionManagement>
492 <id>opendaylight-site</id>
493 <url>${nexus.site.url}/${project.artifactId}/</url>
495 </distributionManagement>