[maven-release-plugin] prepare release master-tagforprepareonly-bgpcep-bulk-release...
[bgpcep.git] / commons / 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>master-tagforprepareonly-bgpcep-bulk-release-prepare-only-6</tag>
18     </scm>
19     <prerequisites>
20         <maven>3.0.4</maven>
21     </prerequisites>
22
23     <groupId>org.opendaylight.bgpcep</groupId>
24     <artifactId>commons.parent</artifactId>
25     <name>BGPCEP common parent</name>
26     <version>0.3.0</version>
27     <packaging>pom</packaging>
28
29     <licenses>
30         <license>
31             <name>The Eclipse Public License v1.0</name>
32             <url>http://www.eclipse.org/legal/epl-v10.html</url>
33             <distribution>repo</distribution>
34         </license>
35     </licenses>
36
37     <properties>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
40         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
41
42         <commonscodec.version>1.7</commonscodec.version>
43         <guava.version>14.0.1</guava.version>
44         <java.version.source>1.7</java.version.source>
45         <java.version.target>1.7</java.version.target>
46         <junit.version>4.10</junit.version>
47         <logback.version>1.0.9</logback.version>
48         <maven.bundle.version>2.4.0</maven.bundle.version>
49         <maven.compiler.version>3.1</maven.compiler.version>
50         <maven.dependency.version>2.8</maven.dependency.version>
51         <maven.info.reports.version>2.7</maven.info.reports.version>
52         <maven.jar.version>2.4</maven.jar.version>
53         <maven.javadoc.version>2.9.1</maven.javadoc.version>
54         <maven.release.version>2.4.2</maven.release.version>
55         <maven.shade.version>2.1</maven.shade.version>
56         <maven.site.version>3.3</maven.site.version>
57         <mockito.version>1.9.5</mockito.version>
58         <netty.version>4.0.10.Final</netty.version>
59         <slf4j.version>1.7.2</slf4j.version>
60         <surefire.version>2.15</surefire.version>
61
62         <yangtools.version>0.6.0-SNAPSHOT</yangtools.version>
63         <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
64
65         <controller.config.version>0.2.3-SNAPSHOT</controller.config.version>
66         <ietf.types.version>2010.09.24.2-SNAPSHOT</ietf.types.version>
67         <ietf.topology.version>2013.10.21.0-SNAPSHOT</ietf.topology.version>
68         <yang-ext.version>2013.09.07.2-SNAPSHOT</yang-ext.version>
69     </properties>
70
71     <dependencyManagement>
72         <dependencies>
73             <!-- This project -->
74             <dependency>
75                 <groupId>${project.groupId}</groupId>
76                 <artifactId>concepts</artifactId>
77                 <version>${project.version}</version>
78             </dependency>
79             <dependency>
80                 <groupId>${project.groupId}</groupId>
81                 <artifactId>util</artifactId>
82                 <version>${project.version}</version>
83             </dependency>
84
85             <!-- Testing Dependencies -->
86             <dependency>
87                 <groupId>junit</groupId>
88                 <artifactId>junit</artifactId>
89                 <version>${junit.version}</version>
90                 <scope>test</scope>
91             </dependency>
92             <dependency>
93                 <groupId>org.mockito</groupId>
94                 <artifactId>mockito-core</artifactId>
95                 <version>${mockito.version}</version>
96                 <scope>test</scope>
97             </dependency>
98             <dependency>
99                 <groupId>org.opendaylight.yangtools</groupId>
100                 <artifactId>mockito-configuration</artifactId>
101                 <!-- FIXME: change to yangtools.version once it's 0.6.0 -->
102                 <version>${yang.binding.version}</version>
103                 <scope>test</scope>
104             </dependency>
105             <dependency>
106                 <groupId>ch.qos.logback</groupId>
107                 <artifactId>logback-classic</artifactId>
108                 <version>${logback.version}</version>
109                 <scope>test</scope>
110             </dependency>
111
112             <!-- Supporting Libraries -->
113             <dependency>
114                 <groupId>org.slf4j</groupId>
115                 <artifactId>slf4j-api</artifactId>
116                 <version>${slf4j.version}</version>
117             </dependency>
118             <dependency>
119                 <groupId>com.google.guava</groupId>
120                 <artifactId>guava</artifactId>
121                 <version>${guava.version}</version>
122             </dependency>
123             <dependency>
124                 <groupId>com.google.code.findbugs</groupId>
125                 <artifactId>jsr305</artifactId>
126                 <version>2.0.1</version>
127             </dependency>
128
129             <!-- Netty -->
130             <dependency>
131                 <groupId>io.netty</groupId>
132                 <artifactId>netty-buffer</artifactId>
133                 <version>${netty.version}</version>
134             </dependency>
135             <dependency>
136                 <groupId>io.netty</groupId>
137                 <artifactId>netty-codec</artifactId>
138                 <version>${netty.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>io.netty</groupId>
142                 <artifactId>netty-common</artifactId>
143                 <version>${netty.version}</version>
144             </dependency>
145             <dependency>
146                 <groupId>io.netty</groupId>
147                 <artifactId>netty-transport</artifactId>
148                 <version>${netty.version}</version>
149             </dependency>
150
151             <!-- YANG tools -->
152             <dependency>
153                 <groupId>org.opendaylight.yangtools</groupId>
154                 <artifactId>yang-binding</artifactId>
155                 <version>${yang.binding.version}</version>
156             </dependency>
157             <dependency>
158                 <groupId>org.opendaylight.yangtools</groupId>
159                 <artifactId>yang-common</artifactId>
160                 <version>${yangtools.version}</version>
161             </dependency>
162
163             <!-- Controller infrastructure -->
164             <dependency>
165                 <groupId>org.opendaylight.controller</groupId>
166                 <artifactId>protocol-framework</artifactId>
167                 <version>0.4.0-SNAPSHOT</version>
168             </dependency>
169             <dependency>
170                 <groupId>org.opendaylight.controller</groupId>
171                 <artifactId>protocol-framework</artifactId>
172                 <version>0.4.0-SNAPSHOT</version>
173                 <type>test-jar</type>
174                 <scope>test</scope>
175             </dependency>
176             <dependency>
177                 <groupId>org.opendaylight.controller</groupId>
178                 <artifactId>config-api</artifactId>
179                 <version>${controller.config.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.controller</groupId>
183                 <artifactId>netty-config-api</artifactId>
184                 <version>${controller.config.version}</version>
185             </dependency>
186             <dependency>
187                 <groupId>org.opendaylight.controller</groupId>
188                 <artifactId>sal-binding-api</artifactId>
189                 <version>1.0-SNAPSHOT</version>
190             </dependency>
191             <dependency>
192                 <groupId>org.opendaylight.controller</groupId>
193                 <artifactId>sal-binding-config</artifactId>
194                 <version>1.0-SNAPSHOT</version>
195             </dependency>
196             <dependency>
197                 <groupId>org.opendaylight.controller</groupId>
198                 <artifactId>sal-binding-broker-impl</artifactId>
199                 <version>1.0-SNAPSHOT</version>
200                 <scope>test</scope>
201             </dependency>
202             <dependency>
203                 <groupId>org.opendaylight.controller</groupId>
204                 <artifactId>sal-binding-util</artifactId>
205                 <version>1.0-SNAPSHOT</version>
206             </dependency>
207             <dependency>
208                 <groupId>org.opendaylight.controller</groupId>
209                 <artifactId>sal-broker-impl</artifactId>
210                 <version>1.0-SNAPSHOT</version>
211                 <scope>test</scope>
212             </dependency>
213
214             <!-- Models -->
215             <dependency>
216                 <groupId>org.opendaylight.yangtools.model</groupId>
217                 <artifactId>ietf-inet-types</artifactId>
218                 <version>${ietf.types.version}</version>
219             </dependency>
220             <dependency>
221                 <groupId>org.opendaylight.yangtools.model</groupId>
222                 <artifactId>ietf-ted</artifactId>
223                 <version>${ietf.topology.version}</version>
224             </dependency>
225             <dependency>
226                 <groupId>org.opendaylight.yangtools.model</groupId>
227                 <artifactId>ietf-topology</artifactId>
228                 <version>${ietf.topology.version}</version>
229             </dependency>
230             <dependency>
231                 <groupId>org.opendaylight.yangtools.model</groupId>
232                 <artifactId>ietf-topology-isis</artifactId>
233                 <version>${ietf.topology.version}</version>
234             </dependency>
235             <dependency>
236                 <groupId>org.opendaylight.yangtools.model</groupId>
237                 <artifactId>ietf-topology-l3-unicast-igp</artifactId>
238                 <version>${ietf.topology.version}</version>
239             </dependency>
240             <dependency>
241                 <groupId>org.opendaylight.yangtools.model</groupId>
242                 <artifactId>ietf-topology-ospf</artifactId>
243                 <version>${ietf.topology.version}</version>
244             </dependency>
245             <dependency>
246                 <groupId>org.opendaylight.yangtools.model</groupId>
247                 <artifactId>yang-ext</artifactId>
248                 <version>${yang-ext.version}</version>
249             </dependency>
250         </dependencies>
251     </dependencyManagement>
252
253     <dependencies>
254         <dependency>
255             <groupId>ch.qos.logback</groupId>
256             <artifactId>logback-classic</artifactId>
257         </dependency>
258     </dependencies>
259
260     <reporting>
261         <plugins>
262             <plugin>
263                 <groupId>org.apache.maven.plugins</groupId>
264                 <artifactId>maven-project-info-reports-plugin</artifactId>
265                 <version>${maven.info.reports.version}</version>
266                 <reportSets>
267                     <reportSet>
268                         <reports>
269                             <report>dependency-info</report>
270                             <report>license</report>
271                         </reports>
272                     </reportSet>
273                 </reportSets>
274             </plugin>
275             <plugin>
276                 <groupId>org.apache.maven.plugins</groupId>
277                 <artifactId>maven-javadoc-plugin</artifactId>
278                 <version>${maven.javadoc.version}</version>
279                 <reportSets>
280                     <reportSet>
281                         <id>non-aggregate</id>
282                         <reports>
283                             <report>javadoc</report>
284                         </reports>
285                     </reportSet>
286                 </reportSets>
287             </plugin>
288             <!--plugin>
289                 <groupId>org.codehaus.mojo</groupId>
290                 <artifactId>findbugs-maven-plugin</artifactId>
291                 <version>2.4.0</version>
292                 <configuration>
293                     <effort>Max</effort>
294                     <threshold>Low</threshold>
295                     <goal>site</goal>
296                 </configuration>
297             </plugin-->
298         </plugins>
299     </reporting>
300
301     <distributionManagement>
302         <!-- OpenDayLight Released artifact -->
303         <repository>
304             <id>opendaylight-release</id>
305             <url>${nexusproxy}/repositories/opendaylight.release/</url>
306         </repository>
307         <!-- OpenDayLight Snapshot artifact -->
308         <snapshotRepository>
309             <id>opendaylight-snapshot</id>
310             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
311         </snapshotRepository>
312         <!-- Site deployment -->
313         <site>
314             <id>website</id>
315             <url>${sitedeploy}</url>
316         </site>
317     </distributionManagement>
318
319     <build>
320         <plugins>
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-compiler-plugin</artifactId>
324                 <version>${maven.compiler.version}</version>
325                 <configuration>
326                     <source>${java.version.source}</source>
327                     <target>${java.version.target}</target>
328                     <testSource>${java.version.source}</testSource>
329                     <testTarget>${java.version.target}</testTarget>
330                     <showDeprecation>true</showDeprecation>
331                     <showWarnings>true</showWarnings>
332                     <optimize>true</optimize>
333                 </configuration>
334             </plugin>
335             <plugin>
336                 <groupId>org.apache.maven.plugins</groupId>
337                 <artifactId>maven-surefire-plugin</artifactId>
338                 <version>${surefire.version}</version>
339                 <configuration>
340                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
341                     <!--parallel>classes</parallel>
342                     <forkCount>1C</forkCount>
343                     <reuseForks>false</reuseForks>
344                     <perCoreThreadCount>true</perCoreThreadCount-->
345                     <threadCount>1</threadCount>
346                 </configuration>
347             </plugin>
348
349             <plugin>
350                 <groupId>org.apache.maven.plugins</groupId>
351                 <artifactId>maven-dependency-plugin</artifactId>
352                 <version>${maven.dependency.version}</version>
353                 <configuration>
354                     <failOnWarning>true</failOnWarning>
355                     <ignoreNonCompile>true</ignoreNonCompile>
356                 </configuration>
357             </plugin>
358             <plugin>
359                 <!-- Let eclipse know about the generated sources -->
360                 <groupId>org.codehaus.mojo</groupId>
361                 <artifactId>build-helper-maven-plugin</artifactId>
362                 <version>1.8</version>
363                 <executions>
364                     <execution>
365                         <phase>generate-sources</phase>
366                         <goals>
367                             <goal>add-source</goal>
368                         </goals>
369                         <configuration>
370                             <sources>
371                                 <source>target/generated-sources/sal</source>
372                                 <source>target/generated-sources/config</source>
373                             </sources>
374                         </configuration>
375                     </execution>
376                 </executions>
377             </plugin>
378         </plugins>
379         <pluginManagement>
380             <plugins>
381                 <plugin>
382                     <groupId>org.apache.felix</groupId>
383                     <artifactId>maven-bundle-plugin</artifactId>
384                     <version>${maven.bundle.version}</version>
385                 </plugin>
386                 <plugin>
387                     <groupId>org.apache.maven.plugins</groupId>
388                     <artifactId>maven-jar-plugin</artifactId>
389                     <version>${maven.jar.version}</version>
390                 </plugin>
391                 <plugin>
392                     <groupId>org.apache.maven.plugins</groupId>
393                     <artifactId>maven-release-plugin</artifactId>
394                     <version>${maven.release.version}</version>
395                 </plugin>
396
397                 <!--This plugin's configuration is used to store Eclipse m2e settings
398                     only. It has no influence on the Maven build itself. -->
399                 <plugin>
400                     <groupId>org.eclipse.m2e</groupId>
401                     <artifactId>lifecycle-mapping</artifactId>
402                     <version>1.0.0</version>
403                     <configuration>
404                         <lifecycleMappingMetadata>
405                             <pluginExecutions>
406                                 <pluginExecution>
407                                     <pluginExecutionFilter>
408                                         <groupId>pl.project13.maven</groupId>
409                                         <artifactId>git-commit-id-plugin</artifactId>
410                                         <versionRange>[2.1.4,)</versionRange>
411                                         <goals>
412                                             <goal>revision</goal>
413                                         </goals>
414                                     </pluginExecutionFilter>
415                                     <action>
416                                         <ignore />
417                                     </action>
418                                 </pluginExecution>
419                                 <pluginExecution>
420                                     <pluginExecutionFilter>
421                                         <groupId>org.opendaylight.yangtools</groupId>
422                                         <artifactId>yang-maven-plugin</artifactId>
423                                         <versionRange>[0.5,)</versionRange>
424                                         <goals>
425                                             <goal>generate-sources</goal>
426                                         </goals>
427                                     </pluginExecutionFilter>
428                                     <action>
429                                         <ignore />
430                                     </action>
431                                 </pluginExecution>
432                             </pluginExecutions>
433                         </lifecycleMappingMetadata>
434                     </configuration>
435                 </plugin>
436
437                 <!-- Our YANG->DTO generation plugin -->
438                 <plugin>
439                     <groupId>org.opendaylight.yangtools</groupId>
440                     <artifactId>yang-maven-plugin</artifactId>
441                     <version>${yangtools.version}</version>
442                     <executions>
443                         <execution>
444                             <goals>
445                                 <goal>generate-sources</goal>
446                             </goals>
447                             <configuration>
448                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
449                                 <codeGenerators>
450                                     <generator>
451                                         <codeGeneratorClass>
452                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
453                                         </codeGeneratorClass>
454                                         <outputBaseDir>
455                                             target/generated-sources/sal
456                                         </outputBaseDir>
457                                     </generator>
458                                     <generator>
459                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
460                                         <outputBaseDir>target/site</outputBaseDir>
461                                     </generator>
462                                     <generator>
463                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
464                                         <outputBaseDir>target/site</outputBaseDir>
465                                     </generator>
466                                     <generator>
467                                         <codeGeneratorClass>
468                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
469                                         </codeGeneratorClass>
470                                         <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
471                                         <additionalConfiguration>
472                                             <namespaceToPackage1>
473                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
474                                             </namespaceToPackage1>
475                                         </additionalConfiguration>
476                                     </generator>
477                                 </codeGenerators>
478                                 <inspectDependencies>true</inspectDependencies>
479                             </configuration>
480                         </execution>
481                     </executions>
482                     <dependencies>
483                         <dependency>
484                             <groupId>org.opendaylight.yangtools</groupId>
485                             <artifactId>maven-sal-api-gen-plugin</artifactId>
486                             <version>${yang.binding.version}</version>
487                             <type>jar</type>
488                         </dependency>
489                     <dependency>
490                         <groupId>org.opendaylight.controller</groupId>
491                         <artifactId>yang-jmx-generator-plugin</artifactId>
492                         <version>${controller.config.version}</version>
493                     </dependency>
494                     </dependencies>
495                 </plugin>
496
497                 <!-- Maven site plugin -->
498                 <plugin>
499                     <artifactId>maven-site-plugin</artifactId>
500                     <version>${maven.site.version}</version>
501                 </plugin>
502                 <plugin>
503                     <groupId>org.apache.maven.plugins</groupId>
504                     <artifactId>maven-javadoc-plugin</artifactId>
505                     <version>${maven.javadoc.version}</version>
506                 </plugin>
507                 <plugin>
508                     <groupId>org.apache.maven.plugins</groupId>
509                     <artifactId>maven-source-plugin</artifactId>
510                     <version>2.2.1</version>
511                 </plugin>
512             </plugins>
513         </pluginManagement>
514     </build>
515
516     <repositories>
517         <repository>
518             <id>opendaylight-mirror</id>
519             <name>opendaylight-mirror</name>
520             <url>${nexusproxy}/groups/public/</url>
521             <snapshots>
522                 <enabled>false</enabled>
523             </snapshots>
524             <releases>
525                 <enabled>true</enabled>
526                 <updatePolicy>never</updatePolicy>
527             </releases>
528         </repository>
529         <repository>
530             <id>opendaylight-snapshot</id>
531             <name>opendaylight-snapshot</name>
532             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
533             <snapshots>
534                 <enabled>true</enabled>
535             </snapshots>
536             <releases>
537                 <enabled>false</enabled>
538             </releases>
539         </repository>
540     </repositories>
541
542     <pluginRepositories>
543         <pluginRepository>
544             <id>opendaylight-mirror</id>
545             <name>opendaylight-mirror</name>
546             <url>${nexusproxy}/groups/public/</url>
547             <snapshots>
548                 <enabled>false</enabled>
549             </snapshots>
550             <releases>
551                 <enabled>true</enabled>
552                 <updatePolicy>never</updatePolicy>
553             </releases>
554         </pluginRepository>
555         <pluginRepository>
556             <id>opendaylight-snapshot</id>
557             <name>opendaylight-snapshot</name>
558             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
559             <snapshots>
560                 <enabled>true</enabled>
561             </snapshots>
562             <releases>
563                 <enabled>false</enabled>
564             </releases>
565         </pluginRepository>
566     </pluginRepositories>
567
568     <profiles>
569         <profile>
570             <id>repoBuild</id>
571             <activation>
572                 <property>
573                     <name>repoBuild</name>
574                 </property>
575             </activation>
576             <build>
577                 <plugins>
578                     <plugin>
579                         <groupId>org.apache.maven.plugins</groupId>
580                         <artifactId>maven-javadoc-plugin</artifactId>
581                         <executions>
582                             <execution>
583                                 <id>attach-javadocs</id>
584                                 <goals>
585                                     <goal>jar</goal>
586                                 </goals>
587                             </execution>
588                         </executions>
589                     </plugin>
590                     <plugin>
591                         <groupId>org.apache.maven.plugins</groupId>
592                         <artifactId>maven-source-plugin</artifactId>
593                         <executions>
594                             <execution>
595                                 <id>attach-sources</id>
596                                 <goals>
597                                     <goal>jar</goal>
598                                 </goals>
599                             </execution>
600                         </executions>
601                     </plugin>
602                 </plugins>
603             </build>
604         </profile>
605     </profiles>
606 </project>