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
11 <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">
12 <modelVersion>4.0.0</modelVersion>
14 <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
15 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
16 <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
20 <groupId>org.opendaylight.odlparent</groupId>
21 <artifactId>odlparent</artifactId>
22 <version>1.8.4-Carbon</version>
23 <relativePath></relativePath>
26 <groupId>org.opendaylight.bgpcep</groupId>
27 <artifactId>bgpcep-parent</artifactId>
28 <name>BGPCEP common parent</name>
29 <version>0.7.4-Carbon</version>
30 <packaging>pom</packaging>
34 <name>The Eclipse Public License v1.0</name>
35 <url>http://www.eclipse.org/legal/epl-v10.html</url>
36 <distribution>repo</distribution>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <maven.info.reports.version>2.7</maven.info.reports.version>
45 <!-- YANG tools artifacts -->
46 <yangtools.version>1.1.4-Carbon</yangtools.version>
48 <!-- MD-SAL artifacts -->
49 <mdsal.version>2.2.4-Carbon</mdsal.version>
50 <mdsal.model.version>0.10.4-Carbon</mdsal.model.version>
52 <!-- Controller artifacts -->
53 <controller.config.version>0.6.4-Carbon</controller.config.version>
54 <controller.framework.version>0.9.4-Carbon</controller.framework.version>
55 <controller.mdsal.version>1.5.4-Carbon</controller.mdsal.version>
57 <bgpcep.version>0.7.4-Carbon</bgpcep.version>
60 <dependencyManagement>
63 <groupId>org.opendaylight.bgpcep</groupId>
64 <artifactId>bgpcep-artifacts</artifactId>
65 <version>${bgpcep.version}</version>
72 <groupId>org.opendaylight.yangtools</groupId>
73 <artifactId>yangtools-artifacts</artifactId>
74 <version>${yangtools.version}</version>
81 <groupId>org.opendaylight.mdsal</groupId>
82 <artifactId>mdsal-artifacts</artifactId>
83 <version>${mdsal.version}</version>
88 <groupId>org.opendaylight.mdsal.model</groupId>
89 <artifactId>mdsal-model-artifacts</artifactId>
90 <version>${mdsal.model.version}</version>
95 <!-- Controller infrastructure -->
97 <groupId>org.opendaylight.controller</groupId>
98 <artifactId>mdsal-artifacts</artifactId>
99 <version>${controller.mdsal.version}</version>
100 <scope>import</scope>
104 <groupId>org.opendaylight.controller</groupId>
105 <artifactId>config-artifacts</artifactId>
106 <version>${controller.config.version}</version>
107 <scope>import</scope>
111 </dependencyManagement>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-project-info-reports-plugin</artifactId>
118 <version>${maven.info.reports.version}</version>
122 <report>dependency-info</report>
123 <report>license</report>
129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>findbugs-maven-plugin</artifactId>
131 <version>2.4.0</version>
134 <threshold>Low</threshold>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-compiler-plugin</artifactId>
147 <source>${java.version.source}</source>
148 <target>${java.version.target}</target>
149 <testSource>${java.version.source}</testSource>
150 <testTarget>${java.version.target}</testTarget>
151 <showDeprecation>true</showDeprecation>
152 <showWarnings>true</showWarnings>
153 <optimize>true</optimize>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-surefire-plugin</artifactId>
160 <redirectTestOutputToFile>true</redirectTestOutputToFile>
161 <!--parallel>classes</parallel>
162 <forkCount>1C</forkCount>
163 <perCoreThreadCount>true</perCoreThreadCount-->
164 <runOrder>alphabetical</runOrder>
165 <threadCount>1</threadCount>
166 <reuseForks>false</reuseForks>
167 <!-- Specific to generate mapping between tests and covered code -->
170 <name>listener</name>
171 <value>org.sonar.java.jacoco.JUnitListener</value>
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-dependency-plugin</artifactId>
181 <failOnWarning>true</failOnWarning>
182 <ignoreNonCompile>true</ignoreNonCompile>
186 <!-- Let eclipse know about the generated sources -->
187 <groupId>org.codehaus.mojo</groupId>
188 <artifactId>build-helper-maven-plugin</artifactId>
191 <phase>generate-sources</phase>
193 <goal>add-source</goal>
197 <source>target/generated-sources/sal</source>
198 <source>target/generated-sources/config</source>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-checkstyle-plugin</artifactId>
208 <failOnViolation>true</failOnViolation>
209 <configLocation>checkstyle-logging.xml</configLocation>
210 <consoleOutput>true</consoleOutput>
211 <includeTestSourceDirectory>true</includeTestSourceDirectory>
212 <sourceDirectory>${project.basedir}</sourceDirectory>
213 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
214 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/
215 .m2repo\/,**\/org/opendaylight/protocol/util/LoggerUtil.java,**\/org/opendaylight/protocol/util/LoggerUtilTest.java</excludes>
219 <groupId>org.opendaylight.yangtools</groupId>
220 <artifactId>checkstyle-logging</artifactId>
221 <version>${yangtools.version}</version>
236 <!--This plugin's configuration is used to store Eclipse m2e settings
237 only. It has no influence on the Maven build itself. -->
239 <groupId>org.eclipse.m2e</groupId>
240 <artifactId>lifecycle-mapping</artifactId>
241 <version>1.0.0</version>
243 <lifecycleMappingMetadata>
246 <pluginExecutionFilter>
247 <groupId>pl.project13.maven</groupId>
248 <artifactId>git-commit-id-plugin</artifactId>
249 <versionRange>[2.1.4,)</versionRange>
251 <goal>revision</goal>
253 </pluginExecutionFilter>
259 <pluginExecutionFilter>
260 <groupId>org.opendaylight.yangtools</groupId>
261 <artifactId>yang-maven-plugin</artifactId>
262 <versionRange>[0.5,)</versionRange>
264 <goal>generate-sources</goal>
266 </pluginExecutionFilter>
272 <pluginExecutionFilter>
273 <groupId>org.jacoco</groupId>
274 <artifactId>jacoco-maven-plugin</artifactId>
275 <versionRange>[0.6,)</versionRange>
277 <goal>prepare-agent</goal>
279 </pluginExecutionFilter>
285 <pluginExecutionFilter>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-checkstyle-plugin</artifactId>
288 <versionRange>[2.13,)</versionRange>
292 </pluginExecutionFilter>
298 </lifecycleMappingMetadata>
302 <!-- Our YANG->DTO generation plugin -->
304 <groupId>org.opendaylight.yangtools</groupId>
305 <artifactId>yang-maven-plugin</artifactId>
306 <version>${yangtools.version}</version>
310 <goal>generate-sources</goal>
313 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
317 org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
318 </codeGeneratorClass>
320 target/generated-sources/sal
324 <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
325 <outputBaseDir>target/site</outputBaseDir>
328 <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
329 <outputBaseDir>target/site</outputBaseDir>
333 org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
334 </codeGeneratorClass>
335 <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
336 <additionalConfiguration>
337 <namespaceToPackage1>
338 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
339 </namespaceToPackage1>
340 </additionalConfiguration>
343 <inspectDependencies>true</inspectDependencies>
349 <groupId>org.opendaylight.mdsal</groupId>
350 <artifactId>maven-sal-api-gen-plugin</artifactId>
351 <version>${mdsal.model.version}</version>
355 <groupId>org.opendaylight.controller</groupId>
356 <artifactId>yang-jmx-generator-plugin</artifactId>
357 <version>${controller.config.version}</version>
366 Maven Site Configuration
368 The following configuration is necessary for maven-site-plugin to
369 correctly identify the correct deployment path for OpenDaylight Maven
372 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
374 <distributionManagement>
376 <id>opendaylight-site</id>
377 <url>${nexus.site.url}/${project.artifactId}/</url>
379 </distributionManagement>