Bump versions by x.(y+1).z for next dev cycle
[bgpcep.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
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
9 -->
10
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>
13     <scm>
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>
17         <tag>HEAD</tag>
18     </scm>
19     <parent>
20         <groupId>org.opendaylight.odlparent</groupId>
21         <artifactId>odlparent</artifactId>
22         <version>2.0.4</version>
23         <relativePath></relativePath>
24     </parent>
25
26     <groupId>org.opendaylight.bgpcep</groupId>
27     <artifactId>bgpcep-parent</artifactId>
28     <name>BGPCEP common parent</name>
29     <version>0.9.0-SNAPSHOT</version>
30     <packaging>pom</packaging>
31
32     <licenses>
33         <license>
34             <name>The Eclipse Public License v1.0</name>
35             <url>http://www.eclipse.org/legal/epl-v10.html</url>
36             <distribution>repo</distribution>
37         </license>
38     </licenses>
39
40     <properties>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42
43         <maven.info.reports.version>2.7</maven.info.reports.version>
44
45         <!-- YANG tools artifacts -->
46         <yangtools.version>2.0.0-SNAPSHOT</yangtools.version>
47
48         <!-- MD-SAL artifacts -->
49         <mdsal.version>2.4.0-SNAPSHOT</mdsal.version>
50         <mdsal.model.version>0.12.0-SNAPSHOT</mdsal.model.version>
51
52         <!-- Controller artifacts -->
53         <controller.config.version>0.8.0-SNAPSHOT</controller.config.version>
54         <controller.framework.version>0.11.0-SNAPSHOT</controller.framework.version>
55         <controller.mdsal.version>1.7.0-SNAPSHOT</controller.mdsal.version>
56
57         <bgpcep.version>0.9.0-SNAPSHOT</bgpcep.version>
58     </properties>
59
60     <dependencyManagement>
61         <dependencies>
62             <dependency>
63                 <groupId>org.opendaylight.bgpcep</groupId>
64                 <artifactId>bgpcep-artifacts</artifactId>
65                 <version>${bgpcep.version}</version>
66                 <type>pom</type>
67                 <scope>import</scope>
68             </dependency>
69
70             <!-- YANG tools -->
71             <dependency>
72                 <groupId>org.opendaylight.yangtools</groupId>
73                 <artifactId>yangtools-artifacts</artifactId>
74                 <version>${yangtools.version}</version>
75                 <scope>import</scope>
76                 <type>pom</type>
77             </dependency>
78
79             <!-- MD-SAL -->
80             <dependency>
81                 <groupId>org.opendaylight.mdsal</groupId>
82                 <artifactId>mdsal-artifacts</artifactId>
83                 <version>${mdsal.version}</version>
84                 <scope>import</scope>
85                 <type>pom</type>
86             </dependency>
87             <dependency>
88                 <groupId>org.opendaylight.mdsal.model</groupId>
89                 <artifactId>mdsal-model-artifacts</artifactId>
90                 <version>${mdsal.model.version}</version>
91                 <scope>import</scope>
92                 <type>pom</type>
93             </dependency>
94
95             <!-- Controller infrastructure -->
96             <dependency>
97                 <groupId>org.opendaylight.controller</groupId>
98                 <artifactId>mdsal-artifacts</artifactId>
99                 <version>${controller.mdsal.version}</version>
100                 <scope>import</scope>
101                 <type>pom</type>
102             </dependency>
103             <dependency>
104                 <groupId>org.opendaylight.controller</groupId>
105                 <artifactId>config-artifacts</artifactId>
106                 <version>${controller.config.version}</version>
107                 <scope>import</scope>
108                 <type>pom</type>
109             </dependency>
110         </dependencies>
111     </dependencyManagement>
112
113     <reporting>
114         <plugins>
115             <plugin>
116                 <groupId>org.apache.maven.plugins</groupId>
117                 <artifactId>maven-project-info-reports-plugin</artifactId>
118                 <version>${maven.info.reports.version}</version>
119                 <reportSets>
120                     <reportSet>
121                         <reports>
122                             <report>dependency-info</report>
123                             <report>license</report>
124                         </reports>
125                     </reportSet>
126                 </reportSets>
127             </plugin>
128             <!--plugin>
129                 <groupId>org.codehaus.mojo</groupId>
130                 <artifactId>findbugs-maven-plugin</artifactId>
131                 <version>2.4.0</version>
132                 <configuration>
133                     <effort>Max</effort>
134                     <threshold>Low</threshold>
135                     <goal>site</goal>
136                 </configuration>
137             </plugin-->
138         </plugins>
139     </reporting>
140
141     <build>
142         <plugins>
143             <plugin>
144                 <groupId>org.apache.maven.plugins</groupId>
145                 <artifactId>maven-compiler-plugin</artifactId>
146                 <configuration>
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>
154                 </configuration>
155             </plugin>
156             <plugin>
157                 <groupId>org.apache.maven.plugins</groupId>
158                 <artifactId>maven-surefire-plugin</artifactId>
159                 <configuration>
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 -->
168                     <!--properties>
169                         <property>
170                             <name>listener</name>
171                             <value>org.sonar.java.jacoco.JUnitListener</value>
172                         </property>
173                     </properties-->
174                 </configuration>
175             </plugin>
176
177             <plugin>
178                 <groupId>org.apache.maven.plugins</groupId>
179                 <artifactId>maven-dependency-plugin</artifactId>
180                 <configuration>
181                     <failOnWarning>true</failOnWarning>
182                     <ignoreNonCompile>true</ignoreNonCompile>
183                 </configuration>
184             </plugin>
185             <plugin>
186                 <!-- Let eclipse know about the generated sources -->
187                 <groupId>org.codehaus.mojo</groupId>
188                 <artifactId>build-helper-maven-plugin</artifactId>
189                 <executions>
190                     <execution>
191                         <phase>generate-sources</phase>
192                         <goals>
193                             <goal>add-source</goal>
194                         </goals>
195                         <configuration>
196                             <sources>
197                                 <source>target/generated-sources/sal</source>
198                                 <source>target/generated-sources/config</source>
199                             </sources>
200                         </configuration>
201                     </execution>
202                 </executions>
203             </plugin>
204             <plugin>
205                 <groupId>org.apache.maven.plugins</groupId>
206                 <artifactId>maven-checkstyle-plugin</artifactId>
207                 <configuration>
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>
216                 </configuration>
217                 <dependencies>
218                     <dependency>
219                         <groupId>org.opendaylight.yangtools</groupId>
220                         <artifactId>checkstyle-logging</artifactId>
221                         <version>${yangtools.version}</version>
222                     </dependency>
223                 </dependencies>
224                 <executions>
225                     <execution>
226                         <goals>
227                             <goal>check</goal>
228                         </goals>
229                     </execution>
230                 </executions>
231             </plugin>
232         </plugins>
233
234         <pluginManagement>
235             <plugins>
236                 <!--This plugin's configuration is used to store Eclipse m2e settings
237                     only. It has no influence on the Maven build itself. -->
238                 <plugin>
239                     <groupId>org.eclipse.m2e</groupId>
240                     <artifactId>lifecycle-mapping</artifactId>
241                     <version>1.0.0</version>
242                     <configuration>
243                         <lifecycleMappingMetadata>
244                             <pluginExecutions>
245                                 <pluginExecution>
246                                     <pluginExecutionFilter>
247                                         <groupId>pl.project13.maven</groupId>
248                                         <artifactId>git-commit-id-plugin</artifactId>
249                                         <versionRange>[2.1.4,)</versionRange>
250                                         <goals>
251                                             <goal>revision</goal>
252                                         </goals>
253                                     </pluginExecutionFilter>
254                                     <action>
255                                         <ignore />
256                                     </action>
257                                 </pluginExecution>
258                                 <pluginExecution>
259                                     <pluginExecutionFilter>
260                                         <groupId>org.opendaylight.yangtools</groupId>
261                                         <artifactId>yang-maven-plugin</artifactId>
262                                         <versionRange>[0.5,)</versionRange>
263                                         <goals>
264                                             <goal>generate-sources</goal>
265                                         </goals>
266                                     </pluginExecutionFilter>
267                                     <action>
268                                         <execute />
269                                     </action>
270                                 </pluginExecution>
271                                 <pluginExecution>
272                                    <pluginExecutionFilter>
273                                        <groupId>org.jacoco</groupId>
274                                        <artifactId>jacoco-maven-plugin</artifactId>
275                                        <versionRange>[0.6,)</versionRange>
276                                        <goals>
277                                            <goal>prepare-agent</goal>
278                                        </goals>
279                                     </pluginExecutionFilter>
280                                     <action>
281                                         <ignore/>
282                                     </action>
283                                 </pluginExecution>
284                                 <pluginExecution>
285                                     <pluginExecutionFilter>
286                                         <groupId>org.apache.maven.plugins</groupId>
287                                         <artifactId>maven-checkstyle-plugin</artifactId>
288                                         <versionRange>[2.13,)</versionRange>
289                                         <goals>
290                                             <goal>check</goal>
291                                         </goals>
292                                     </pluginExecutionFilter>
293                                     <action>
294                                         <execute />
295                                     </action>
296                                 </pluginExecution>
297                             </pluginExecutions>
298                         </lifecycleMappingMetadata>
299                     </configuration>
300                 </plugin>
301
302                 <!-- Our YANG->DTO generation plugin -->
303                 <plugin>
304                     <groupId>org.opendaylight.yangtools</groupId>
305                     <artifactId>yang-maven-plugin</artifactId>
306                     <version>${yangtools.version}</version>
307                     <executions>
308                         <execution>
309                             <goals>
310                                 <goal>generate-sources</goal>
311                             </goals>
312                             <configuration>
313                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
314                                 <codeGenerators>
315                                     <generator>
316                                         <codeGeneratorClass>
317                                             org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
318                                         </codeGeneratorClass>
319                                         <outputBaseDir>
320                                             target/generated-sources/sal
321                                         </outputBaseDir>
322                                     </generator>
323                                     <generator>
324                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
325                                         <outputBaseDir>target/site</outputBaseDir>
326                                     </generator>
327                                     <generator>
328                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
329                                         <outputBaseDir>target/site</outputBaseDir>
330                                     </generator>
331                                     <generator>
332                                         <codeGeneratorClass>
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>
341                                     </generator>
342                                 </codeGenerators>
343                                 <inspectDependencies>true</inspectDependencies>
344                             </configuration>
345                         </execution>
346                     </executions>
347                     <dependencies>
348                         <dependency>
349                             <groupId>org.opendaylight.mdsal</groupId>
350                             <artifactId>maven-sal-api-gen-plugin</artifactId>
351                             <version>${mdsal.model.version}</version>
352                             <type>jar</type>
353                         </dependency>
354                         <dependency>
355                             <groupId>org.opendaylight.controller</groupId>
356                             <artifactId>yang-jmx-generator-plugin</artifactId>
357                             <version>${controller.config.version}</version>
358                         </dependency>
359                     </dependencies>
360                 </plugin>
361             </plugins>
362         </pluginManagement>
363     </build>
364
365   <!--
366       Maven Site Configuration
367
368       The following configuration is necessary for maven-site-plugin to
369       correctly identify the correct deployment path for OpenDaylight Maven
370       sites.
371   -->
372   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
373
374   <distributionManagement>
375     <site>
376       <id>opendaylight-site</id>
377       <url>${nexus.site.url}/${project.artifactId}/</url>
378     </site>
379   </distributionManagement>
380 </project>