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