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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11 <modelVersion>4.0.0</modelVersion>
13 <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
14 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
15 <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
19 <groupId>org.opendaylight.odlparent</groupId>
20 <artifactId>odlparent</artifactId>
21 <version>2.0.7</version>
25 <groupId>org.opendaylight.bgpcep</groupId>
26 <artifactId>bgpcep-parent</artifactId>
27 <name>BGPCEP common parent</name>
28 <version>0.8.3</version>
29 <packaging>pom</packaging>
33 <name>The Eclipse Public License v1.0</name>
34 <url>http://www.eclipse.org/legal/epl-v10.html</url>
35 <distribution>repo</distribution>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <maven.info.reports.version>2.7</maven.info.reports.version>
44 <!-- YANG tools artifacts -->
45 <yangtools.version>1.2.3</yangtools.version>
47 <!-- MD-SAL artifacts -->
48 <mdsal.version>2.3.3</mdsal.version>
49 <mdsal.model.version>0.11.3</mdsal.model.version>
51 <!-- Controller artifacts -->
52 <controller.config.version>0.7.3</controller.config.version>
53 <controller.framework.version>0.10.3</controller.framework.version>
54 <controller.mdsal.version>1.6.3</controller.mdsal.version>
56 <bgpcep.version>0.8.3</bgpcep.version>
59 <dependencyManagement>
62 <groupId>org.opendaylight.bgpcep</groupId>
63 <artifactId>bgpcep-artifacts</artifactId>
64 <version>${bgpcep.version}</version>
71 <groupId>org.opendaylight.yangtools</groupId>
72 <artifactId>yangtools-artifacts</artifactId>
73 <version>${yangtools.version}</version>
80 <groupId>org.opendaylight.mdsal</groupId>
81 <artifactId>mdsal-artifacts</artifactId>
82 <version>${mdsal.version}</version>
87 <groupId>org.opendaylight.mdsal.model</groupId>
88 <artifactId>mdsal-model-artifacts</artifactId>
89 <version>${mdsal.model.version}</version>
94 <!-- Controller infrastructure -->
96 <groupId>org.opendaylight.controller</groupId>
97 <artifactId>mdsal-artifacts</artifactId>
98 <version>${controller.mdsal.version}</version>
103 <groupId>org.opendaylight.controller</groupId>
104 <artifactId>config-artifacts</artifactId>
105 <version>${controller.config.version}</version>
106 <scope>import</scope>
110 </dependencyManagement>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-project-info-reports-plugin</artifactId>
117 <version>${maven.info.reports.version}</version>
121 <report>dependency-info</report>
122 <report>license</report>
128 <groupId>org.codehaus.mojo</groupId>
129 <artifactId>findbugs-maven-plugin</artifactId>
130 <version>2.4.0</version>
133 <threshold>Low</threshold>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-compiler-plugin</artifactId>
146 <source>${java.version.source}</source>
147 <target>${java.version.target}</target>
148 <testSource>${java.version.source}</testSource>
149 <testTarget>${java.version.target}</testTarget>
150 <showDeprecation>true</showDeprecation>
151 <showWarnings>true</showWarnings>
152 <optimize>true</optimize>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-surefire-plugin</artifactId>
159 <redirectTestOutputToFile>true</redirectTestOutputToFile>
160 <!--parallel>classes</parallel>
161 <forkCount>1C</forkCount>
162 <perCoreThreadCount>true</perCoreThreadCount-->
163 <runOrder>alphabetical</runOrder>
164 <threadCount>1</threadCount>
165 <reuseForks>false</reuseForks>
166 <!-- Specific to generate mapping between tests and covered code -->
169 <name>listener</name>
170 <value>org.sonar.java.jacoco.JUnitListener</value>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-dependency-plugin</artifactId>
180 <failOnWarning>true</failOnWarning>
181 <ignoreNonCompile>true</ignoreNonCompile>
185 <!-- Let eclipse know about the generated sources -->
186 <groupId>org.codehaus.mojo</groupId>
187 <artifactId>build-helper-maven-plugin</artifactId>
190 <phase>generate-sources</phase>
192 <goal>add-source</goal>
196 <source>target/generated-sources/sal</source>
197 <source>target/generated-sources/config</source>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-checkstyle-plugin</artifactId>
207 <failOnViolation>true</failOnViolation>
208 <configLocation>checkstyle-logging.xml</configLocation>
209 <consoleOutput>true</consoleOutput>
210 <includeTestSourceDirectory>true</includeTestSourceDirectory>
211 <sourceDirectory>${project.basedir}</sourceDirectory>
212 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
213 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/
214 .m2repo\/,**\/org/opendaylight/protocol/util/LoggerUtil.java,**\/org/opendaylight/protocol/util/LoggerUtilTest.java</excludes>
218 <groupId>org.opendaylight.yangtools</groupId>
219 <artifactId>checkstyle-logging</artifactId>
220 <version>${yangtools.version}</version>
235 <!--This plugin's configuration is used to store Eclipse m2e settings
236 only. It has no influence on the Maven build itself. -->
238 <groupId>org.eclipse.m2e</groupId>
239 <artifactId>lifecycle-mapping</artifactId>
240 <version>1.0.0</version>
242 <lifecycleMappingMetadata>
245 <pluginExecutionFilter>
246 <groupId>pl.project13.maven</groupId>
247 <artifactId>git-commit-id-plugin</artifactId>
248 <versionRange>[2.1.4,)</versionRange>
250 <goal>revision</goal>
252 </pluginExecutionFilter>
258 <pluginExecutionFilter>
259 <groupId>org.opendaylight.yangtools</groupId>
260 <artifactId>yang-maven-plugin</artifactId>
261 <versionRange>[0.5,)</versionRange>
263 <goal>generate-sources</goal>
265 </pluginExecutionFilter>
271 <pluginExecutionFilter>
272 <groupId>org.jacoco</groupId>
273 <artifactId>jacoco-maven-plugin</artifactId>
274 <versionRange>[0.6,)</versionRange>
276 <goal>prepare-agent</goal>
278 </pluginExecutionFilter>
284 <pluginExecutionFilter>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-checkstyle-plugin</artifactId>
287 <versionRange>[2.13,)</versionRange>
291 </pluginExecutionFilter>
297 </lifecycleMappingMetadata>
301 <!-- Our YANG->DTO generation plugin -->
303 <groupId>org.opendaylight.yangtools</groupId>
304 <artifactId>yang-maven-plugin</artifactId>
305 <version>${yangtools.version}</version>
309 <goal>generate-sources</goal>
312 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
316 org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
317 </codeGeneratorClass>
319 target/generated-sources/sal
323 <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
324 <outputBaseDir>target/site</outputBaseDir>
327 <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
328 <outputBaseDir>target/site</outputBaseDir>
332 org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
333 </codeGeneratorClass>
334 <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
335 <additionalConfiguration>
336 <namespaceToPackage1>
337 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
338 </namespaceToPackage1>
339 </additionalConfiguration>
342 <inspectDependencies>true</inspectDependencies>
348 <groupId>org.opendaylight.mdsal</groupId>
349 <artifactId>maven-sal-api-gen-plugin</artifactId>
350 <version>${mdsal.model.version}</version>
354 <groupId>org.opendaylight.controller</groupId>
355 <artifactId>yang-jmx-generator-plugin</artifactId>
356 <version>${controller.config.version}</version>
365 Maven Site Configuration
367 The following configuration is necessary for maven-site-plugin to
368 correctly identify the correct deployment path for OpenDaylight Maven
371 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
373 <distributionManagement>
375 <id>opendaylight-site</id>
376 <url>${nexus.site.url}/${project.artifactId}/</url>
378 </distributionManagement>