Release Lithium-SR3
[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.5.3-Lithium-SR3</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.4.3-Lithium-SR3</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         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
43         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
44
45         <maven.info.reports.version>2.7</maven.info.reports.version>
46
47         <!-- YANG tools artifacts -->
48         <yangtools.version>0.7.3-Lithium-SR3</yangtools.version>
49
50         <!-- Controller artifacts -->
51         <controller.config.version>0.3.3-Lithium-SR3</controller.config.version>
52         <controller.framework.version>0.6.3-Lithium-SR3</controller.framework.version>
53         <controller.mdsal.version>1.2.3-Lithium-SR3</controller.mdsal.version>
54
55         <!-- TCP-MD5 artifacts -->
56         <tcpmd5.version>1.1.3-Lithium-SR3</tcpmd5.version>
57
58         <bgpcep.version>0.4.3-Lithium-SR3</bgpcep.version>
59     </properties>
60
61     <dependencyManagement>
62         <dependencies>
63             <dependency>
64                 <groupId>org.opendaylight.bgpcep</groupId>
65                 <artifactId>bgpcep-artifacts</artifactId>
66                 <version>${bgpcep.version}</version>
67                 <type>pom</type>
68                 <scope>import</scope>
69             </dependency>
70
71             <!-- TCP/MD5 support -->
72             <dependency>
73                 <groupId>org.opendaylight.tcpmd5</groupId>
74                 <artifactId>tcpmd5-artifacts</artifactId>
75                 <version>${tcpmd5.version}</version>
76                 <type>pom</type>
77                 <scope>import</scope>
78             </dependency>
79
80             <!-- YANG tools -->
81             <dependency>
82                 <groupId>org.opendaylight.yangtools</groupId>
83                 <artifactId>yangtools-artifacts</artifactId>
84                 <version>${yangtools.version}</version>
85                 <scope>import</scope>
86                 <type>pom</type>
87             </dependency>
88
89             <!-- Controller infrastructure -->
90             <dependency>
91                 <groupId>org.opendaylight.controller</groupId>
92                 <artifactId>mdsal-artifacts</artifactId>
93                 <version>${controller.mdsal.version}</version>
94                 <scope>import</scope>
95                 <type>pom</type>
96             </dependency>
97             <dependency>
98                 <groupId>org.opendaylight.controller</groupId>
99                 <artifactId>config-artifacts</artifactId>
100                 <version>${controller.config.version}</version>
101                 <scope>import</scope>
102                 <type>pom</type>
103             </dependency>
104
105             <dependency>
106                 <groupId>org.opendaylight.controller</groupId>
107                 <artifactId>protocol-framework</artifactId>
108                 <version>${controller.framework.version}</version>
109             </dependency>
110             <dependency>
111                 <groupId>org.opendaylight.controller</groupId>
112                 <artifactId>protocol-framework</artifactId>
113                 <version>${controller.framework.version}</version>
114                 <type>test-jar</type>
115                 <scope>test</scope>
116             </dependency>
117         </dependencies>
118     </dependencyManagement>
119
120     <reporting>
121         <plugins>
122             <plugin>
123                 <groupId>org.apache.maven.plugins</groupId>
124                 <artifactId>maven-project-info-reports-plugin</artifactId>
125                 <version>${maven.info.reports.version}</version>
126                 <reportSets>
127                     <reportSet>
128                         <reports>
129                             <report>dependency-info</report>
130                             <report>license</report>
131                         </reports>
132                     </reportSet>
133                 </reportSets>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-javadoc-plugin</artifactId>
138                 <version>${maven.javadoc.version}</version>
139                 <reportSets>
140                     <reportSet>
141                         <id>non-aggregate</id>
142                         <reports>
143                             <report>javadoc</report>
144                         </reports>
145                     </reportSet>
146                 </reportSets>
147             </plugin>
148             <!--plugin>
149                 <groupId>org.codehaus.mojo</groupId>
150                 <artifactId>findbugs-maven-plugin</artifactId>
151                 <version>2.4.0</version>
152                 <configuration>
153                     <effort>Max</effort>
154                     <threshold>Low</threshold>
155                     <goal>site</goal>
156                 </configuration>
157             </plugin-->
158         </plugins>
159     </reporting>
160
161     <build>
162         <plugins>
163             <plugin>
164                 <groupId>org.apache.maven.plugins</groupId>
165                 <artifactId>maven-compiler-plugin</artifactId>
166                 <configuration>
167                     <source>${java.version.source}</source>
168                     <target>${java.version.target}</target>
169                     <testSource>${java.version.source}</testSource>
170                     <testTarget>${java.version.target}</testTarget>
171                     <showDeprecation>true</showDeprecation>
172                     <showWarnings>true</showWarnings>
173                     <optimize>true</optimize>
174                 </configuration>
175             </plugin>
176             <plugin>
177                 <groupId>org.apache.maven.plugins</groupId>
178                 <artifactId>maven-surefire-plugin</artifactId>
179                 <configuration>
180                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
181                     <!--parallel>classes</parallel>
182                     <forkCount>1C</forkCount>
183                     <perCoreThreadCount>true</perCoreThreadCount-->
184                     <runOrder>alphabetical</runOrder>
185                     <threadCount>1</threadCount>
186                     <reuseForks>false</reuseForks>
187                     <!-- Specific to generate mapping between tests and covered code -->
188                     <!--properties>
189                         <property>
190                             <name>listener</name>
191                             <value>org.sonar.java.jacoco.JUnitListener</value>
192                         </property>
193                     </properties-->
194                 </configuration>
195             </plugin>
196
197             <plugin>
198                 <groupId>org.apache.maven.plugins</groupId>
199                 <artifactId>maven-dependency-plugin</artifactId>
200                 <configuration>
201                     <failOnWarning>true</failOnWarning>
202                     <ignoreNonCompile>true</ignoreNonCompile>
203                 </configuration>
204             </plugin>
205             <plugin>
206                 <!-- Let eclipse know about the generated sources -->
207                 <groupId>org.codehaus.mojo</groupId>
208                 <artifactId>build-helper-maven-plugin</artifactId>
209                 <executions>
210                     <execution>
211                         <phase>generate-sources</phase>
212                         <goals>
213                             <goal>add-source</goal>
214                         </goals>
215                         <configuration>
216                             <sources>
217                                 <source>target/generated-sources/sal</source>
218                                 <source>target/generated-sources/config</source>
219                             </sources>
220                         </configuration>
221                     </execution>
222                 </executions>
223             </plugin>
224             <plugin>
225                 <groupId>org.apache.maven.plugins</groupId>
226                 <artifactId>maven-checkstyle-plugin</artifactId>
227                 <configuration>
228                     <failOnViolation>true</failOnViolation>
229                     <configLocation>checkstyle-logging.xml</configLocation>
230                     <consoleOutput>true</consoleOutput>
231                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
232                     <sourceDirectory>${project.basedir}</sourceDirectory>
233                     <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
234                     <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/.m2repo\/</excludes>
235                 </configuration>
236                 <dependencies>
237                     <dependency>
238                         <groupId>org.opendaylight.yangtools</groupId>
239                         <artifactId>checkstyle-logging</artifactId>
240                         <version>${yangtools.version}</version>
241                     </dependency>
242                 </dependencies>
243                 <executions>
244                     <execution>
245                         <goals>
246                             <goal>check</goal>
247                         </goals>
248                     </execution>
249                 </executions>
250             </plugin>
251             <plugin>
252                 <groupId>org.jacoco</groupId>
253                 <artifactId>jacoco-maven-plugin</artifactId>
254                 <executions>
255                     <execution>
256                         <id>prepare-ut-agent</id>
257                         <phase>process-test-classes</phase>
258                         <goals>
259                             <goal>prepare-agent</goal>
260                         </goals>
261                         <configuration>
262                             <destFile>${sonar.jacoco.reportPath}</destFile>
263                         </configuration>
264                     </execution>
265                     <execution>
266                         <id>prepare-it-agent</id>
267                         <phase>pre-integration-test</phase>
268                         <goals>
269                             <goal>prepare-agent</goal>
270                         </goals>
271                         <configuration>
272                             <destFile>${sonar.jacoco.itReportPath}</destFile>
273                         </configuration>
274                     </execution>
275                 </executions>
276             </plugin>
277             <plugin>
278                 <artifactId>maven-javadoc-plugin</artifactId>
279             </plugin>
280             <plugin>
281                 <artifactId>maven-source-plugin</artifactId>
282             </plugin>
283         </plugins>
284
285         <pluginManagement>
286             <plugins>
287                 <!--This plugin's configuration is used to store Eclipse m2e settings
288                     only. It has no influence on the Maven build itself. -->
289                 <plugin>
290                     <groupId>org.eclipse.m2e</groupId>
291                     <artifactId>lifecycle-mapping</artifactId>
292                     <version>1.0.0</version>
293                     <configuration>
294                         <lifecycleMappingMetadata>
295                             <pluginExecutions>
296                                 <pluginExecution>
297                                     <pluginExecutionFilter>
298                                         <groupId>pl.project13.maven</groupId>
299                                         <artifactId>git-commit-id-plugin</artifactId>
300                                         <versionRange>[2.1.4,)</versionRange>
301                                         <goals>
302                                             <goal>revision</goal>
303                                         </goals>
304                                     </pluginExecutionFilter>
305                                     <action>
306                                         <ignore />
307                                     </action>
308                                 </pluginExecution>
309                                 <pluginExecution>
310                                     <pluginExecutionFilter>
311                                         <groupId>org.opendaylight.yangtools</groupId>
312                                         <artifactId>yang-maven-plugin</artifactId>
313                                         <versionRange>[0.5,)</versionRange>
314                                         <goals>
315                                             <goal>generate-sources</goal>
316                                         </goals>
317                                     </pluginExecutionFilter>
318                                     <action>
319                                         <execute />
320                                     </action>
321                                 </pluginExecution>
322                                 <pluginExecution>
323                                    <pluginExecutionFilter>
324                                        <groupId>org.jacoco</groupId>
325                                        <artifactId>jacoco-maven-plugin</artifactId>
326                                        <versionRange>[0.6,)</versionRange>
327                                        <goals>
328                                            <goal>prepare-agent</goal>
329                                        </goals>
330                                     </pluginExecutionFilter>
331                                     <action>
332                                         <ignore/>
333                                     </action>
334                                 </pluginExecution>
335                                 <pluginExecution>
336                                     <pluginExecutionFilter>
337                                         <groupId>org.apache.maven.plugins</groupId>
338                                         <artifactId>maven-checkstyle-plugin</artifactId>
339                                         <versionRange>[2.13,)</versionRange>
340                                         <goals>
341                                             <goal>check</goal>
342                                         </goals>
343                                     </pluginExecutionFilter>
344                                     <action>
345                                         <execute />
346                                     </action>
347                                 </pluginExecution>
348                             </pluginExecutions>
349                         </lifecycleMappingMetadata>
350                     </configuration>
351                 </plugin>
352
353                 <!-- Our YANG->DTO generation plugin -->
354                 <plugin>
355                     <groupId>org.opendaylight.yangtools</groupId>
356                     <artifactId>yang-maven-plugin</artifactId>
357                     <version>${yangtools.version}</version>
358                     <executions>
359                         <execution>
360                             <goals>
361                                 <goal>generate-sources</goal>
362                             </goals>
363                             <configuration>
364                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
365                                 <codeGenerators>
366                                     <generator>
367                                         <codeGeneratorClass>
368                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
369                                         </codeGeneratorClass>
370                                         <outputBaseDir>
371                                             target/generated-sources/sal
372                                         </outputBaseDir>
373                                     </generator>
374                                     <generator>
375                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
376                                         <outputBaseDir>target/site</outputBaseDir>
377                                     </generator>
378                                     <generator>
379                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
380                                         <outputBaseDir>target/site</outputBaseDir>
381                                     </generator>
382                                     <generator>
383                                         <codeGeneratorClass>
384                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
385                                         </codeGeneratorClass>
386                                         <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
387                                         <additionalConfiguration>
388                                             <namespaceToPackage1>
389                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
390                                             </namespaceToPackage1>
391                                         </additionalConfiguration>
392                                     </generator>
393                                 </codeGenerators>
394                                 <inspectDependencies>true</inspectDependencies>
395                             </configuration>
396                         </execution>
397                     </executions>
398                     <dependencies>
399                         <dependency>
400                             <groupId>org.opendaylight.yangtools</groupId>
401                             <artifactId>maven-sal-api-gen-plugin</artifactId>
402                             <version>${yangtools.version}</version>
403                             <type>jar</type>
404                         </dependency>
405                         <dependency>
406                             <groupId>org.opendaylight.controller</groupId>
407                             <artifactId>yang-jmx-generator-plugin</artifactId>
408                             <version>${controller.config.version}</version>
409                         </dependency>
410                     </dependencies>
411                 </plugin>
412             </plugins>
413         </pluginManagement>
414     </build>
415 </project>