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.7.5-SNAPSHOT</version>
23 <relativePath></relativePath>
26 <groupId>org.opendaylight.bgpcep</groupId>
27 <artifactId>bgpcep-parent</artifactId>
28 <name>BGPCEP common parent</name>
29 <version>0.6.5-SNAPSHOT</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.0.5-SNAPSHOT</yangtools.version>
48 <!-- MD-SAL artifacts -->
49 <mdsal.version>2.1.5-SNAPSHOT</mdsal.version>
50 <mdsal.model.version>0.9.5-SNAPSHOT</mdsal.model.version>
52 <!-- Controller artifacts -->
53 <controller.config.version>0.5.5-SNAPSHOT</controller.config.version>
54 <controller.framework.version>0.8.5-SNAPSHOT</controller.framework.version>
55 <controller.mdsal.version>1.4.5-SNAPSHOT</controller.mdsal.version>
57 <!-- Netconf artifacts -->
58 <netconf.version>1.1.5-SNAPSHOT</netconf.version>
60 <!-- EPOLL artifacts -->
61 <os.detected.classifier>linux-x86_64</os.detected.classifier>
63 <bgpcep.version>0.6.5-SNAPSHOT</bgpcep.version>
66 <dependencyManagement>
69 <groupId>org.opendaylight.bgpcep</groupId>
70 <artifactId>bgpcep-artifacts</artifactId>
71 <version>${bgpcep.version}</version>
78 <groupId>org.opendaylight.yangtools</groupId>
79 <artifactId>yangtools-artifacts</artifactId>
80 <version>${yangtools.version}</version>
87 <groupId>org.opendaylight.mdsal</groupId>
88 <artifactId>mdsal-artifacts</artifactId>
89 <version>${mdsal.version}</version>
94 <groupId>org.opendaylight.mdsal.model</groupId>
95 <artifactId>mdsal-model-artifacts</artifactId>
96 <version>${mdsal.model.version}</version>
101 <!-- Controller infrastructure -->
103 <groupId>org.opendaylight.controller</groupId>
104 <artifactId>mdsal-artifacts</artifactId>
105 <version>${controller.mdsal.version}</version>
106 <scope>import</scope>
110 <groupId>org.opendaylight.controller</groupId>
111 <artifactId>config-artifacts</artifactId>
112 <version>${controller.config.version}</version>
113 <scope>import</scope>
119 <groupId>org.opendaylight.netconf</groupId>
120 <artifactId>netconf-artifacts</artifactId>
121 <version>${netconf.version}</version>
122 <scope>import</scope>
126 </dependencyManagement>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-project-info-reports-plugin</artifactId>
133 <version>${maven.info.reports.version}</version>
137 <report>dependency-info</report>
138 <report>license</report>
144 <groupId>org.codehaus.mojo</groupId>
145 <artifactId>findbugs-maven-plugin</artifactId>
146 <version>2.4.0</version>
149 <threshold>Low</threshold>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-compiler-plugin</artifactId>
162 <source>${java.version.source}</source>
163 <target>${java.version.target}</target>
164 <testSource>${java.version.source}</testSource>
165 <testTarget>${java.version.target}</testTarget>
166 <showDeprecation>true</showDeprecation>
167 <showWarnings>true</showWarnings>
168 <optimize>true</optimize>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-surefire-plugin</artifactId>
175 <redirectTestOutputToFile>true</redirectTestOutputToFile>
176 <!--parallel>classes</parallel>
177 <forkCount>1C</forkCount>
178 <perCoreThreadCount>true</perCoreThreadCount-->
179 <runOrder>alphabetical</runOrder>
180 <threadCount>1</threadCount>
181 <reuseForks>false</reuseForks>
182 <!-- Specific to generate mapping between tests and covered code -->
185 <name>listener</name>
186 <value>org.sonar.java.jacoco.JUnitListener</value>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-dependency-plugin</artifactId>
196 <failOnWarning>true</failOnWarning>
197 <ignoreNonCompile>true</ignoreNonCompile>
201 <!-- Let eclipse know about the generated sources -->
202 <groupId>org.codehaus.mojo</groupId>
203 <artifactId>build-helper-maven-plugin</artifactId>
206 <phase>generate-sources</phase>
208 <goal>add-source</goal>
212 <source>target/generated-sources/sal</source>
213 <source>target/generated-sources/config</source>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-checkstyle-plugin</artifactId>
223 <failOnViolation>true</failOnViolation>
224 <configLocation>checkstyle-logging.xml</configLocation>
225 <consoleOutput>true</consoleOutput>
226 <includeTestSourceDirectory>true</includeTestSourceDirectory>
227 <sourceDirectory>${project.basedir}</sourceDirectory>
228 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
229 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/
230 .m2repo\/,**\/org/opendaylight/protocol/util/LoggerUtil.java,**\/org/opendaylight/protocol/util/LoggerUtilTest.java</excludes>
234 <groupId>org.opendaylight.yangtools</groupId>
235 <artifactId>checkstyle-logging</artifactId>
236 <version>${yangtools.version}</version>
251 <!--This plugin's configuration is used to store Eclipse m2e settings
252 only. It has no influence on the Maven build itself. -->
254 <groupId>org.eclipse.m2e</groupId>
255 <artifactId>lifecycle-mapping</artifactId>
256 <version>1.0.0</version>
258 <lifecycleMappingMetadata>
261 <pluginExecutionFilter>
262 <groupId>pl.project13.maven</groupId>
263 <artifactId>git-commit-id-plugin</artifactId>
264 <versionRange>[2.1.4,)</versionRange>
266 <goal>revision</goal>
268 </pluginExecutionFilter>
274 <pluginExecutionFilter>
275 <groupId>org.opendaylight.yangtools</groupId>
276 <artifactId>yang-maven-plugin</artifactId>
277 <versionRange>[0.5,)</versionRange>
279 <goal>generate-sources</goal>
281 </pluginExecutionFilter>
287 <pluginExecutionFilter>
288 <groupId>org.jacoco</groupId>
289 <artifactId>jacoco-maven-plugin</artifactId>
290 <versionRange>[0.6,)</versionRange>
292 <goal>prepare-agent</goal>
294 </pluginExecutionFilter>
300 <pluginExecutionFilter>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-checkstyle-plugin</artifactId>
303 <versionRange>[2.13,)</versionRange>
307 </pluginExecutionFilter>
313 </lifecycleMappingMetadata>
317 <!-- Our YANG->DTO generation plugin -->
319 <groupId>org.opendaylight.yangtools</groupId>
320 <artifactId>yang-maven-plugin</artifactId>
321 <version>${yangtools.version}</version>
325 <goal>generate-sources</goal>
328 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
332 org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
333 </codeGeneratorClass>
335 target/generated-sources/sal
339 <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
340 <outputBaseDir>target/site</outputBaseDir>
343 <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
344 <outputBaseDir>target/site</outputBaseDir>
348 org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
349 </codeGeneratorClass>
350 <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
351 <additionalConfiguration>
352 <namespaceToPackage1>
353 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
354 </namespaceToPackage1>
355 </additionalConfiguration>
358 <inspectDependencies>true</inspectDependencies>
364 <groupId>org.opendaylight.mdsal</groupId>
365 <artifactId>maven-sal-api-gen-plugin</artifactId>
366 <version>${mdsal.model.version}</version>
370 <groupId>org.opendaylight.controller</groupId>
371 <artifactId>yang-jmx-generator-plugin</artifactId>
372 <version>${controller.config.version}</version>
381 Maven Site Configuration
383 The following configuration is necessary for maven-site-plugin to
384 correctly identify the correct deployment path for OpenDaylight Maven
387 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
389 <distributionManagement>
391 <id>opendaylight-site</id>
392 <url>${nexus.site.url}/${project.artifactId}/</url>
394 </distributionManagement>