Bump versions by x.y.(z+1)
[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>1.7.5-SNAPSHOT</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.6.5-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>1.0.5-SNAPSHOT</yangtools.version>
47
48         <!-- MD-SAL artifacts -->
49         <mdsal.version>2.1.5-SNAPSHOT</mdsal.version>
50         <mdsal.model.version>0.9.5-SNAPSHOT</mdsal.model.version>
51
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>
56
57         <!-- Netconf artifacts -->
58         <netconf.version>1.1.5-SNAPSHOT</netconf.version>
59
60         <!-- EPOLL artifacts -->
61         <os.detected.classifier>linux-x86_64</os.detected.classifier>
62
63         <bgpcep.version>0.6.5-SNAPSHOT</bgpcep.version>
64     </properties>
65
66     <dependencyManagement>
67         <dependencies>
68             <dependency>
69                 <groupId>org.opendaylight.bgpcep</groupId>
70                 <artifactId>bgpcep-artifacts</artifactId>
71                 <version>${bgpcep.version}</version>
72                 <type>pom</type>
73                 <scope>import</scope>
74             </dependency>
75
76             <!-- YANG tools -->
77             <dependency>
78                 <groupId>org.opendaylight.yangtools</groupId>
79                 <artifactId>yangtools-artifacts</artifactId>
80                 <version>${yangtools.version}</version>
81                 <scope>import</scope>
82                 <type>pom</type>
83             </dependency>
84
85             <!-- MD-SAL -->
86             <dependency>
87                 <groupId>org.opendaylight.mdsal</groupId>
88                 <artifactId>mdsal-artifacts</artifactId>
89                 <version>${mdsal.version}</version>
90                 <scope>import</scope>
91                 <type>pom</type>
92             </dependency>
93             <dependency>
94                 <groupId>org.opendaylight.mdsal.model</groupId>
95                 <artifactId>mdsal-model-artifacts</artifactId>
96                 <version>${mdsal.model.version}</version>
97                 <scope>import</scope>
98                 <type>pom</type>
99             </dependency>
100
101             <!-- Controller infrastructure -->
102             <dependency>
103                 <groupId>org.opendaylight.controller</groupId>
104                 <artifactId>mdsal-artifacts</artifactId>
105                 <version>${controller.mdsal.version}</version>
106                 <scope>import</scope>
107                 <type>pom</type>
108             </dependency>
109             <dependency>
110                 <groupId>org.opendaylight.controller</groupId>
111                 <artifactId>config-artifacts</artifactId>
112                 <version>${controller.config.version}</version>
113                 <scope>import</scope>
114                 <type>pom</type>
115             </dependency>
116
117             <!-- Netconf -->
118             <dependency>
119                 <groupId>org.opendaylight.netconf</groupId>
120                 <artifactId>netconf-artifacts</artifactId>
121                 <version>${netconf.version}</version>
122                 <scope>import</scope>
123                 <type>pom</type>
124             </dependency>
125         </dependencies>
126     </dependencyManagement>
127
128     <reporting>
129         <plugins>
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-project-info-reports-plugin</artifactId>
133                 <version>${maven.info.reports.version}</version>
134                 <reportSets>
135                     <reportSet>
136                         <reports>
137                             <report>dependency-info</report>
138                             <report>license</report>
139                         </reports>
140                     </reportSet>
141                 </reportSets>
142             </plugin>
143             <!--plugin>
144                 <groupId>org.codehaus.mojo</groupId>
145                 <artifactId>findbugs-maven-plugin</artifactId>
146                 <version>2.4.0</version>
147                 <configuration>
148                     <effort>Max</effort>
149                     <threshold>Low</threshold>
150                     <goal>site</goal>
151                 </configuration>
152             </plugin-->
153         </plugins>
154     </reporting>
155
156     <build>
157         <plugins>
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-compiler-plugin</artifactId>
161                 <configuration>
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>
169                 </configuration>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-surefire-plugin</artifactId>
174                 <configuration>
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 -->
183                     <!--properties>
184                         <property>
185                             <name>listener</name>
186                             <value>org.sonar.java.jacoco.JUnitListener</value>
187                         </property>
188                     </properties-->
189                 </configuration>
190             </plugin>
191
192             <plugin>
193                 <groupId>org.apache.maven.plugins</groupId>
194                 <artifactId>maven-dependency-plugin</artifactId>
195                 <configuration>
196                     <failOnWarning>true</failOnWarning>
197                     <ignoreNonCompile>true</ignoreNonCompile>
198                 </configuration>
199             </plugin>
200             <plugin>
201                 <!-- Let eclipse know about the generated sources -->
202                 <groupId>org.codehaus.mojo</groupId>
203                 <artifactId>build-helper-maven-plugin</artifactId>
204                 <executions>
205                     <execution>
206                         <phase>generate-sources</phase>
207                         <goals>
208                             <goal>add-source</goal>
209                         </goals>
210                         <configuration>
211                             <sources>
212                                 <source>target/generated-sources/sal</source>
213                                 <source>target/generated-sources/config</source>
214                             </sources>
215                         </configuration>
216                     </execution>
217                 </executions>
218             </plugin>
219             <plugin>
220                 <groupId>org.apache.maven.plugins</groupId>
221                 <artifactId>maven-checkstyle-plugin</artifactId>
222                 <configuration>
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>
231                 </configuration>
232                 <dependencies>
233                     <dependency>
234                         <groupId>org.opendaylight.yangtools</groupId>
235                         <artifactId>checkstyle-logging</artifactId>
236                         <version>${yangtools.version}</version>
237                     </dependency>
238                 </dependencies>
239                 <executions>
240                     <execution>
241                         <goals>
242                             <goal>check</goal>
243                         </goals>
244                     </execution>
245                 </executions>
246             </plugin>
247         </plugins>
248
249         <pluginManagement>
250             <plugins>
251                 <!--This plugin's configuration is used to store Eclipse m2e settings
252                     only. It has no influence on the Maven build itself. -->
253                 <plugin>
254                     <groupId>org.eclipse.m2e</groupId>
255                     <artifactId>lifecycle-mapping</artifactId>
256                     <version>1.0.0</version>
257                     <configuration>
258                         <lifecycleMappingMetadata>
259                             <pluginExecutions>
260                                 <pluginExecution>
261                                     <pluginExecutionFilter>
262                                         <groupId>pl.project13.maven</groupId>
263                                         <artifactId>git-commit-id-plugin</artifactId>
264                                         <versionRange>[2.1.4,)</versionRange>
265                                         <goals>
266                                             <goal>revision</goal>
267                                         </goals>
268                                     </pluginExecutionFilter>
269                                     <action>
270                                         <ignore />
271                                     </action>
272                                 </pluginExecution>
273                                 <pluginExecution>
274                                     <pluginExecutionFilter>
275                                         <groupId>org.opendaylight.yangtools</groupId>
276                                         <artifactId>yang-maven-plugin</artifactId>
277                                         <versionRange>[0.5,)</versionRange>
278                                         <goals>
279                                             <goal>generate-sources</goal>
280                                         </goals>
281                                     </pluginExecutionFilter>
282                                     <action>
283                                         <execute />
284                                     </action>
285                                 </pluginExecution>
286                                 <pluginExecution>
287                                    <pluginExecutionFilter>
288                                        <groupId>org.jacoco</groupId>
289                                        <artifactId>jacoco-maven-plugin</artifactId>
290                                        <versionRange>[0.6,)</versionRange>
291                                        <goals>
292                                            <goal>prepare-agent</goal>
293                                        </goals>
294                                     </pluginExecutionFilter>
295                                     <action>
296                                         <ignore/>
297                                     </action>
298                                 </pluginExecution>
299                                 <pluginExecution>
300                                     <pluginExecutionFilter>
301                                         <groupId>org.apache.maven.plugins</groupId>
302                                         <artifactId>maven-checkstyle-plugin</artifactId>
303                                         <versionRange>[2.13,)</versionRange>
304                                         <goals>
305                                             <goal>check</goal>
306                                         </goals>
307                                     </pluginExecutionFilter>
308                                     <action>
309                                         <execute />
310                                     </action>
311                                 </pluginExecution>
312                             </pluginExecutions>
313                         </lifecycleMappingMetadata>
314                     </configuration>
315                 </plugin>
316
317                 <!-- Our YANG->DTO generation plugin -->
318                 <plugin>
319                     <groupId>org.opendaylight.yangtools</groupId>
320                     <artifactId>yang-maven-plugin</artifactId>
321                     <version>${yangtools.version}</version>
322                     <executions>
323                         <execution>
324                             <goals>
325                                 <goal>generate-sources</goal>
326                             </goals>
327                             <configuration>
328                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
329                                 <codeGenerators>
330                                     <generator>
331                                         <codeGeneratorClass>
332                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
333                                         </codeGeneratorClass>
334                                         <outputBaseDir>
335                                             target/generated-sources/sal
336                                         </outputBaseDir>
337                                     </generator>
338                                     <generator>
339                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
340                                         <outputBaseDir>target/site</outputBaseDir>
341                                     </generator>
342                                     <generator>
343                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
344                                         <outputBaseDir>target/site</outputBaseDir>
345                                     </generator>
346                                     <generator>
347                                         <codeGeneratorClass>
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>
356                                     </generator>
357                                 </codeGenerators>
358                                 <inspectDependencies>true</inspectDependencies>
359                             </configuration>
360                         </execution>
361                     </executions>
362                     <dependencies>
363                         <dependency>
364                             <groupId>org.opendaylight.mdsal</groupId>
365                             <artifactId>maven-sal-api-gen-plugin</artifactId>
366                             <version>${mdsal.model.version}</version>
367                             <type>jar</type>
368                         </dependency>
369                         <dependency>
370                             <groupId>org.opendaylight.controller</groupId>
371                             <artifactId>yang-jmx-generator-plugin</artifactId>
372                             <version>${controller.config.version}</version>
373                         </dependency>
374                     </dependencies>
375                 </plugin>
376             </plugins>
377         </pluginManagement>
378     </build>
379
380   <!--
381       Maven Site Configuration
382
383       The following configuration is necessary for maven-site-plugin to
384       correctly identify the correct deployment path for OpenDaylight Maven
385       sites.
386   -->
387   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
388
389   <distributionManagement>
390     <site>
391       <id>opendaylight-site</id>
392       <url>${nexus.site.url}/${project.artifactId}/</url>
393     </site>
394   </distributionManagement>
395 </project>