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"
12 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13 <modelVersion>4.0.0</modelVersion>
15 <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
16 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
17 <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>odlparent</artifactId>
23 <version>2.0.5</version>
24 <relativePath></relativePath>
27 <groupId>org.opendaylight.bgpcep</groupId>
28 <artifactId>bgpcep-parent</artifactId>
29 <name>BGPCEP common parent</name>
30 <version>0.9.0-SNAPSHOT</version>
31 <packaging>pom</packaging>
35 <name>The Eclipse Public License v1.0</name>
36 <url>http://www.eclipse.org/legal/epl-v10.html</url>
37 <distribution>repo</distribution>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <maven.info.reports.version>2.7</maven.info.reports.version>
46 <!-- YANG tools artifacts -->
47 <yangtools.version>1.2.0</yangtools.version>
49 <!-- MD-SAL artifacts -->
50 <mdsal.version>2.4.0-SNAPSHOT</mdsal.version>
51 <mdsal.model.version>0.12.0-SNAPSHOT</mdsal.model.version>
53 <!-- Controller artifacts -->
54 <controller.config.version>0.8.0-SNAPSHOT</controller.config.version>
55 <controller.framework.version>0.11.0-SNAPSHOT</controller.framework.version>
56 <controller.mdsal.version>1.7.0-SNAPSHOT</controller.mdsal.version>
58 <bgpcep.version>0.9.0-SNAPSHOT</bgpcep.version>
61 <dependencyManagement>
64 <groupId>org.opendaylight.bgpcep</groupId>
65 <artifactId>bgpcep-artifacts</artifactId>
66 <version>${bgpcep.version}</version>
73 <groupId>org.opendaylight.yangtools</groupId>
74 <artifactId>yangtools-artifacts</artifactId>
75 <version>${yangtools.version}</version>
82 <groupId>org.opendaylight.mdsal</groupId>
83 <artifactId>mdsal-artifacts</artifactId>
84 <version>${mdsal.version}</version>
89 <groupId>org.opendaylight.mdsal.model</groupId>
90 <artifactId>mdsal-model-artifacts</artifactId>
91 <version>${mdsal.model.version}</version>
96 <!-- Controller infrastructure -->
98 <groupId>org.opendaylight.controller</groupId>
99 <artifactId>mdsal-artifacts</artifactId>
100 <version>${controller.mdsal.version}</version>
101 <scope>import</scope>
105 <groupId>org.opendaylight.controller</groupId>
106 <artifactId>config-artifacts</artifactId>
107 <version>${controller.config.version}</version>
108 <scope>import</scope>
112 </dependencyManagement>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-project-info-reports-plugin</artifactId>
119 <version>${maven.info.reports.version}</version>
123 <report>dependency-info</report>
124 <report>license</report>
130 <groupId>org.codehaus.mojo</groupId>
131 <artifactId>findbugs-maven-plugin</artifactId>
132 <version>2.4.0</version>
135 <threshold>Low</threshold>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-compiler-plugin</artifactId>
148 <source>${java.version.source}</source>
149 <target>${java.version.target}</target>
150 <testSource>${java.version.source}</testSource>
151 <testTarget>${java.version.target}</testTarget>
152 <showDeprecation>true</showDeprecation>
153 <showWarnings>true</showWarnings>
154 <optimize>true</optimize>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-surefire-plugin</artifactId>
161 <redirectTestOutputToFile>true</redirectTestOutputToFile>
162 <!--parallel>classes</parallel>
163 <forkCount>1C</forkCount>
164 <perCoreThreadCount>true</perCoreThreadCount-->
165 <runOrder>alphabetical</runOrder>
166 <threadCount>1</threadCount>
167 <reuseForks>false</reuseForks>
168 <!-- Specific to generate mapping between tests and covered code -->
171 <name>listener</name>
172 <value>org.sonar.java.jacoco.JUnitListener</value>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-dependency-plugin</artifactId>
182 <failOnWarning>true</failOnWarning>
183 <ignoreNonCompile>true</ignoreNonCompile>
187 <!-- Let eclipse know about the generated sources -->
188 <groupId>org.codehaus.mojo</groupId>
189 <artifactId>build-helper-maven-plugin</artifactId>
192 <phase>generate-sources</phase>
194 <goal>add-source</goal>
198 <source>target/generated-sources/sal</source>
199 <source>target/generated-sources/config</source>
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-checkstyle-plugin</artifactId>
209 <failOnViolation>true</failOnViolation>
210 <configLocation>checkstyle-logging.xml</configLocation>
211 <consoleOutput>true</consoleOutput>
212 <includeTestSourceDirectory>true</includeTestSourceDirectory>
213 <sourceDirectory>${project.basedir}</sourceDirectory>
214 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
216 **\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/
217 .m2repo\/,**\/org/opendaylight/protocol/util/LoggerUtil.java,**\/org/opendaylight/protocol/util/LoggerUtilTest.java
222 <groupId>org.opendaylight.yangtools</groupId>
223 <artifactId>checkstyle-logging</artifactId>
224 <version>${yangtools.version}</version>
239 <!--This plugin's configuration is used to store Eclipse m2e settings
240 only. It has no influence on the Maven build itself. -->
242 <groupId>org.eclipse.m2e</groupId>
243 <artifactId>lifecycle-mapping</artifactId>
244 <version>1.0.0</version>
246 <lifecycleMappingMetadata>
249 <pluginExecutionFilter>
250 <groupId>pl.project13.maven</groupId>
251 <artifactId>git-commit-id-plugin</artifactId>
252 <versionRange>[2.1.4,)</versionRange>
254 <goal>revision</goal>
256 </pluginExecutionFilter>
262 <pluginExecutionFilter>
263 <groupId>org.opendaylight.yangtools</groupId>
264 <artifactId>yang-maven-plugin</artifactId>
265 <versionRange>[0.5,)</versionRange>
267 <goal>generate-sources</goal>
269 </pluginExecutionFilter>
275 <pluginExecutionFilter>
276 <groupId>org.jacoco</groupId>
277 <artifactId>jacoco-maven-plugin</artifactId>
278 <versionRange>[0.6,)</versionRange>
280 <goal>prepare-agent</goal>
282 </pluginExecutionFilter>
288 <pluginExecutionFilter>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-checkstyle-plugin</artifactId>
291 <versionRange>[2.13,)</versionRange>
295 </pluginExecutionFilter>
301 </lifecycleMappingMetadata>
305 <!-- Our YANG->DTO generation plugin -->
307 <groupId>org.opendaylight.yangtools</groupId>
308 <artifactId>yang-maven-plugin</artifactId>
309 <version>${yangtools.version}</version>
313 <goal>generate-sources</goal>
316 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
320 org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
321 </codeGeneratorClass>
323 target/generated-sources/sal
328 org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl
329 </codeGeneratorClass>
330 <outputBaseDir>target/site</outputBaseDir>
334 org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator
335 </codeGeneratorClass>
336 <outputBaseDir>target/site</outputBaseDir>
340 org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
341 </codeGeneratorClass>
342 <outputBaseDir>${project.build.directory}/generated-sources/config
344 <additionalConfiguration>
345 <namespaceToPackage1>
346 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
347 </namespaceToPackage1>
348 </additionalConfiguration>
351 <inspectDependencies>true</inspectDependencies>
357 <groupId>org.opendaylight.mdsal</groupId>
358 <artifactId>maven-sal-api-gen-plugin</artifactId>
359 <version>${mdsal.model.version}</version>
363 <groupId>org.opendaylight.controller</groupId>
364 <artifactId>yang-jmx-generator-plugin</artifactId>
365 <version>${controller.config.version}</version>