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