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.7.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>1.0.0-SNAPSHOT</version>
24 <packaging>pom</packaging>
27 <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
30 <dependencyManagement>
32 <!-- Testing Dependencies -->
34 <groupId>org.apache.maven.shared</groupId>
35 <artifactId>maven-verifier</artifactId>
36 <version>1.6</version>
40 <groupId>org.codehaus.groovy</groupId>
41 <artifactId>groovy</artifactId>
42 <version>2.4.5</version>
46 <groupId>org.codehaus.groovy</groupId>
47 <artifactId>groovy-xml</artifactId>
48 <version>2.4.5</version>
52 <groupId>org.apache.maven</groupId>
53 <artifactId>maven-core</artifactId>
54 <version>3.3.9</version>
57 <groupId>org.apache.maven</groupId>
58 <artifactId>maven-plugin-api</artifactId>
59 <version>3.3.9</version>
62 <groupId>org.eclipse.xtend</groupId>
63 <artifactId>org.eclipse.xtend.lib</artifactId>
64 <version>2.8.4</version>
68 <groupId>org.glassfish.jersey.ext</groupId>
69 <artifactId>jersey-proxy-client</artifactId>
70 <version>2.22</version>
73 <groupId>org.glassfish.jersey.core</groupId>
74 <artifactId>jersey-client</artifactId>
75 <version>2.22</version>
79 <groupId>org.opendaylight.yangtools</groupId>
80 <artifactId>yangtools-artifacts</artifactId>
81 <version>${yangtools.version}</version>
87 <groupId>org.antlr</groupId>
88 <artifactId>antlr4-runtime</artifactId>
89 <version>4.5.1</version>
92 </dependencyManagement>
97 <groupId>org.codehaus.sonar-plugins.java</groupId>
98 <artifactId>sonar-jacoco-listeners</artifactId>
99 <version>${sonar-jacoco-listeners.version}</version>
103 <groupId>org.slf4j</groupId>
104 <artifactId>slf4j-simple</artifactId>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-jar-plugin</artifactId>
115 <version>${maven.jar.version}</version>
119 Bundle OSGi Manifest created by maven-bundle-plugin
122 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
127 <groupId>org.apache.felix</groupId>
128 <artifactId>maven-bundle-plugin</artifactId>
129 <extensions>true</extensions>
132 <id>bundle-manifest</id>
133 <phase>process-classes</phase>
135 <goal>manifest</goal>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-failsafe-plugin</artifactId>
144 <!-- Specific to generate mapping between tests and covered code -->
145 <argLine>${jacoco.agent.it.arg}</argLine>
148 <name>listener</name>
149 <value>org.sonar.java.jacoco.JUnitListener</value>
152 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
153 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-surefire-plugin</artifactId>
159 <version>${maven.surefire.version}</version>
161 <!-- Specific to generate mapping between tests and covered code -->
162 <argLine>${jacoco.agent.ut.arg}</argLine>
165 <name>listener</name>
166 <value>org.sonar.java.jacoco.JUnitListener</value>
173 <groupId>org.eclipse.m2e</groupId>
174 <artifactId>lifecycle-mapping</artifactId>
175 <version>1.0.0</version>
177 <lifecycleMappingMetadata>
180 <pluginExecutionFilter>
181 <groupId>org.apache.felix</groupId>
182 <artifactId>maven-bundle-plugin</artifactId>
183 <versionRange>[1.0,)</versionRange>
185 <goal>manifest</goal>
187 </pluginExecutionFilter>
193 <pluginExecutionFilter>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-antrun-plugin</artifactId>
196 <versionRange>[1.0,)</versionRange>
200 </pluginExecutionFilter>
206 <pluginExecutionFilter>
207 <groupId>org.opendaylight.yangtools</groupId>
208 <artifactId>yang-maven-plugin</artifactId>
209 <versionRange>[0.5,)</versionRange>
211 <goal>generate-sources</goal>
213 </pluginExecutionFilter>
219 <pluginExecutionFilter>
220 <groupId>org.codehaus.mojo</groupId>
221 <artifactId>properties-maven-plugin</artifactId>
222 <versionRange>1.0-alpha-2</versionRange>
224 <goal>write-project-properties</goal>
226 </pluginExecutionFilter>
232 <pluginExecutionFilter>
233 <groupId>org.ops4j.pax.exam</groupId>
234 <artifactId>maven-paxexam-plugin</artifactId>
235 <versionRange>1.2.4</versionRange>
237 <goal>generate-depends-file</goal>
239 </pluginExecutionFilter>
245 <pluginExecutionFilter>
246 <groupId>org.jacoco</groupId>
247 <artifactId>jacoco-maven-plugin</artifactId>
248 <versionRange>[0.6,)</versionRange>
250 <goal>prepare-agent</goal>
252 </pluginExecutionFilter>
258 <pluginExecutionFilter>
259 <groupId>org.antlr</groupId>
260 <artifactId>antlr4-maven-plugin</artifactId>
261 <versionRange>[4.0,)</versionRange>
265 </pluginExecutionFilter>
271 </lifecycleMappingMetadata>
275 <groupId>org.opendaylight.yangtools</groupId>
276 <artifactId>yang-maven-plugin</artifactId>
277 <version>1.0.0-SNAPSHOT</version>
281 <goal>generate-sources</goal>
284 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
285 <inspectDependencies>true</inspectDependencies>
291 <groupId>org.ops4j.pax.exam</groupId>
292 <artifactId>maven-paxexam-plugin</artifactId>
293 <version>1.2.4</version>
296 <id>generate-config</id>
298 <goal>generate-depends-file</goal>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-javadoc-plugin</artifactId>
306 <version>${maven.javadoc.version}</version>
308 <stylesheetfile>stylesheet.css</stylesheetfile>
312 <id>attach-javadocs</id>
319 <goal>aggregate</goal>
326 <groupId>org.codehaus.mojo</groupId>
327 <artifactId>build-helper-maven-plugin</artifactId>
328 <version>1.9.1</version>
331 <phase>generate-sources</phase>
333 <goal>add-source</goal>
337 <source>target/generated-sources/parser</source>
338 <source>target/generated-sources/sal</source>
339 <source>${basedir}/src/main/xtend-gen</source>
346 <groupId>org.eclipse.xtend</groupId>
347 <artifactId>xtend-maven-plugin</artifactId>
348 <version>2.8.4</version>
355 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
361 <groupId>org.apache.servicemix.tooling</groupId>
362 <artifactId>depends-maven-plugin</artifactId>
365 <id>generate-depends-file</id>
367 <goal>generate-depends-file</goal>
374 <groupId>org.antlr</groupId>
375 <artifactId>antlr4-maven-plugin</artifactId>
376 <version>4.5.1</version>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-enforcer-plugin</artifactId>
395 <id>enforce-dependencies</id>
398 <DependencyConvergence />
410 <artifactId>maven-clean-plugin</artifactId>
414 <directory>${basedir}/src/main/xtend-gen</directory>
416 <include>**</include>
423 <groupId>org.apache.maven.plugins</groupId>
424 <artifactId>maven-jar-plugin</artifactId>
427 <groupId>org.apache.felix</groupId>
428 <artifactId>maven-bundle-plugin</artifactId>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-source-plugin</artifactId>
435 <id>attach-sources</id>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-javadoc-plugin</artifactId>
447 <groupId>org.jacoco</groupId>
448 <artifactId>jacoco-maven-plugin</artifactId>
451 <id>prepare-ut-agent</id>
452 <phase>process-test-classes</phase>
454 <goal>prepare-agent</goal>
457 <destFile>${sonar.jacoco.reportPath}</destFile>
458 <propertyName>jacoco.agent.ut.arg</propertyName>
462 <id>prepare-it-agent</id>
463 <phase>pre-integration-test</phase>
465 <goal>prepare-agent</goal>
468 <destFile>${sonar.jacoco.itReportPath}</destFile>
469 <propertyName>jacoco.agent.it.arg</propertyName>
478 Maven Site Configuration
480 The following configuration is necessary for maven-site-plugin to
481 correctly identify the correct deployment path for OpenDaylight Maven
484 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
486 <distributionManagement>
488 <id>opendaylight-site</id>
489 <url>${nexus.site.url}/${project.artifactId}/</url>
491 </distributionManagement>