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.0-SNAPSHOT</version>
17 <relativePath></relativePath>
20 <modelVersion>4.0.0</modelVersion>
21 <artifactId>mdsal-parent</artifactId>
22 <groupId>org.opendaylight.mdsal</groupId>
23 <version>2.0.0-SNAPSHOT</version>
24 <packaging>pom</packaging>
27 <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
29 <!-- FIXME: these will be upstreamed -->
30 <maven.depends.version>1.2</maven.depends.version>
31 <maven.javadoc.version>2.9.1</maven.javadoc.version>
32 <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
33 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34 <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
35 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
38 <dependencyManagement>
41 <groupId>org.opendaylight.mdsal</groupId>
42 <artifactId>mdsal-artifacts</artifactId>
43 <version>2.0.0-SNAPSHOT</version>
48 <groupId>org.opendaylight.yangtools</groupId>
49 <artifactId>yangtools-artifacts</artifactId>
50 <version>0.8.0-SNAPSHOT</version>
54 <!-- Testing Dependencies -->
56 <groupId>org.apache.maven.shared</groupId>
57 <artifactId>maven-verifier</artifactId>
58 <version>1.5</version>
62 <groupId>equinoxSDK381</groupId>
63 <artifactId>org.eclipse.osgi</artifactId>
64 <version>3.8.1.v20120830-144521</version>
68 <groupId>org.codehaus.groovy</groupId>
69 <artifactId>groovy</artifactId>
70 <version>2.1.6</version>
74 <groupId>org.codehaus.groovy</groupId>
75 <artifactId>groovy-xml</artifactId>
76 <version>2.1.6</version>
80 <groupId>xmlunit</groupId>
81 <artifactId>xmlunit</artifactId>
82 <version>1.5</version>
86 <groupId>org.apache.maven</groupId>
87 <artifactId>maven-core</artifactId>
88 <version>3.1.1</version>
91 <groupId>org.apache.maven</groupId>
92 <artifactId>maven-plugin-api</artifactId>
93 <version>3.1.1</version>
96 <groupId>org.javassist</groupId>
97 <artifactId>javassist</artifactId>
98 <version>${javassist.version}</version>
101 <groupId>xml-apis</groupId>
102 <artifactId>xml-apis</artifactId>
103 <version>2.0.2</version>
106 <groupId>org.eclipse.xtend</groupId>
107 <artifactId>org.eclipse.xtend.lib</artifactId>
108 <version>2.7.3</version>
111 <groupId>org.osgi</groupId>
112 <artifactId>org.osgi.core</artifactId>
113 <version>5.0.0</version>
114 <scope>provided</scope>
117 <groupId>javax.ws.rs</groupId>
118 <artifactId>javax.ws.rs-api</artifactId>
119 <version>2.0</version>
123 <groupId>org.glassfish.jersey.ext</groupId>
124 <artifactId>jersey-proxy-client</artifactId>
125 <version>2.0</version>
128 <groupId>org.glassfish.jersey.core</groupId>
129 <artifactId>jersey-client</artifactId>
130 <version>2.0</version>
133 <groupId>com.lmax</groupId>
134 <artifactId>disruptor</artifactId>
135 <version>3.3.0</version>
138 </dependencyManagement>
143 <groupId>org.codehaus.sonar-plugins.java</groupId>
144 <artifactId>sonar-jacoco-listeners</artifactId>
145 <version>${sonar-jacoco-listeners.version}</version>
149 <groupId>org.slf4j</groupId>
150 <artifactId>slf4j-simple</artifactId>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-jar-plugin</artifactId>
161 <version>${maven.jar.version}</version>
165 Bundle OSGi Manifest created by maven-bundle-plugin
168 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
173 <groupId>org.apache.felix</groupId>
174 <artifactId>maven-bundle-plugin</artifactId>
175 <extensions>true</extensions>
178 <id>bundle-manifest</id>
179 <phase>process-classes</phase>
181 <goal>manifest</goal>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-failsafe-plugin</artifactId>
190 <!-- Specific to generate mapping between tests and covered code -->
191 <argLine>${jacoco.agent.it.arg}</argLine>
194 <name>listener</name>
195 <value>org.sonar.java.jacoco.JUnitListener</value>
198 <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
199 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-surefire-plugin</artifactId>
205 <version>${maven.surefire.version}</version>
207 <!-- Specific to generate mapping between tests and covered code -->
208 <argLine>${jacoco.agent.ut.arg}</argLine>
211 <name>listener</name>
212 <value>org.sonar.java.jacoco.JUnitListener</value>
219 <groupId>org.eclipse.m2e</groupId>
220 <artifactId>lifecycle-mapping</artifactId>
221 <version>1.0.0</version>
223 <lifecycleMappingMetadata>
226 <pluginExecutionFilter>
227 <groupId>org.apache.felix</groupId>
228 <artifactId>maven-bundle-plugin</artifactId>
229 <versionRange>[1.0,)</versionRange>
231 <goal>manifest</goal>
233 </pluginExecutionFilter>
239 <pluginExecutionFilter>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-antrun-plugin</artifactId>
242 <versionRange>[1.0,)</versionRange>
246 </pluginExecutionFilter>
252 <pluginExecutionFilter>
253 <groupId>org.opendaylight.yangtools</groupId>
254 <artifactId>yang-maven-plugin</artifactId>
255 <versionRange>[0.5,)</versionRange>
257 <goal>generate-sources</goal>
259 </pluginExecutionFilter>
265 <pluginExecutionFilter>
266 <groupId>org.codehaus.mojo</groupId>
267 <artifactId>properties-maven-plugin</artifactId>
268 <versionRange>1.0-alpha-2</versionRange>
270 <goal>write-project-properties</goal>
272 </pluginExecutionFilter>
278 <pluginExecutionFilter>
279 <groupId>org.ops4j.pax.exam</groupId>
280 <artifactId>maven-paxexam-plugin</artifactId>
281 <versionRange>1.2.4</versionRange>
283 <goal>generate-depends-file</goal>
285 </pluginExecutionFilter>
291 <pluginExecutionFilter>
292 <groupId>org.jacoco</groupId>
293 <artifactId>jacoco-maven-plugin</artifactId>
294 <versionRange>[0.6,)</versionRange>
296 <goal>prepare-agent</goal>
298 </pluginExecutionFilter>
304 <pluginExecutionFilter>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-checkstyle-plugin</artifactId>
307 <versionRange>[2.12,)</versionRange>
311 </pluginExecutionFilter>
317 </lifecycleMappingMetadata>
321 <groupId>org.opendaylight.yangtools</groupId>
322 <artifactId>yang-maven-plugin</artifactId>
323 <version>0.8.0-SNAPSHOT</version>
327 <goal>generate-sources</goal>
330 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
334 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
335 </codeGeneratorClass>
337 target/generated-sources/sal
341 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
342 <outputBaseDir>target/site/restconf</outputBaseDir>
345 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
346 <outputBaseDir>target/site/restconf</outputBaseDir>
349 <inspectDependencies>true</inspectDependencies>
355 <groupId>org.opendaylight.yangtools</groupId>
356 <artifactId>maven-sal-api-gen-plugin</artifactId>
357 <version>0.8.0-SNAPSHOT</version>
363 <groupId>org.ops4j.pax.exam</groupId>
364 <artifactId>maven-paxexam-plugin</artifactId>
365 <version>1.2.4</version>
368 <id>generate-config</id>
370 <goal>generate-depends-file</goal>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-javadoc-plugin</artifactId>
378 <version>${maven.javadoc.version}</version>
380 <stylesheetfile>stylesheet.css</stylesheetfile>
384 <id>attach-javadocs</id>
391 <goal>aggregate</goal>
398 <groupId>org.codehaus.mojo</groupId>
399 <artifactId>build-helper-maven-plugin</artifactId>
400 <version>1.8</version>
403 <phase>generate-sources</phase>
405 <goal>add-source</goal>
409 <source>target/generated-sources/parser</source>
410 <source>target/generated-sources/sal</source>
411 <source>${basedir}/src/main/xtend-gen</source>
418 <groupId>org.eclipse.xtend</groupId>
419 <artifactId>xtend-maven-plugin</artifactId>
420 <version>2.7.3</version>
427 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
433 <groupId>org.apache.servicemix.tooling</groupId>
434 <artifactId>depends-maven-plugin</artifactId>
435 <version>${maven.depends.version}</version>
438 <id>generate-depends-file</id>
440 <goal>generate-depends-file</goal>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-enforcer-plugin</artifactId>
455 <id>enforce-dependencies</id>
458 <DependencyConvergence />
470 <artifactId>maven-clean-plugin</artifactId>
474 <directory>${basedir}/src/main/xtend-gen</directory>
476 <include>**</include>
483 <groupId>org.apache.maven.plugins</groupId>
484 <artifactId>maven-jar-plugin</artifactId>
487 <groupId>org.apache.felix</groupId>
488 <artifactId>maven-bundle-plugin</artifactId>
491 <groupId>org.apache.maven.plugins</groupId>
492 <artifactId>maven-source-plugin</artifactId>
495 <id>attach-sources</id>
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-javadoc-plugin</artifactId>
507 <groupId>org.jacoco</groupId>
508 <artifactId>jacoco-maven-plugin</artifactId>
511 <id>prepare-ut-agent</id>
512 <phase>process-test-classes</phase>
514 <goal>prepare-agent</goal>
517 <destFile>${sonar.jacoco.reportPath}</destFile>
518 <propertyName>jacoco.agent.ut.arg</propertyName>
522 <id>prepare-it-agent</id>
523 <phase>pre-integration-test</phase>
525 <goal>prepare-agent</goal>
528 <destFile>${sonar.jacoco.itReportPath}</destFile>
529 <propertyName>jacoco.agent.it.arg</propertyName>
540 <groupId>org.codehaus.mojo</groupId>
541 <artifactId>findbugs-maven-plugin</artifactId>
542 <version>${findbugs.maven.plugin.version}</version>
545 <threshold>Low</threshold>
550 <groupId>org.codehaus.mojo</groupId>
551 <artifactId>jdepend-maven-plugin</artifactId>
552 <version>${jdepend.maven.plugin.version}</version>