Adjust compiler flags
[bgpcep.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <groupId>org.opendaylight.bgpcep</groupId>
8     <artifactId>protocol-parent</artifactId>
9     <name>OpenDaylight protocols</name>
10     <description>OpenDaylight BGP+PCEP protocol parent</description>
11     <version>0.3.0-SNAPSHOT</version>
12     <packaging>pom</packaging>
13
14     <licenses>
15         <license>
16             <name>The Eclipse Public License v1.0</name>
17             <url>http://www.eclipse.org/legal/epl-v10.html</url>
18             <distribution>repo</distribution>
19         </license>
20     </licenses>
21
22     <properties>
23         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24         <commonscodec.version>1.7</commonscodec.version>
25         <dependency.version>2.8</dependency.version>
26         <guava.version>14.0.1</guava.version>
27         <java.version.source>1.7</java.version.source>
28         <java.version.target>1.7</java.version.target>
29         <junit.version>4.10</junit.version>
30         <logback.version>1.0.7</logback.version>
31         <maven.bundle.version>2.4.0</maven.bundle.version>
32         <maven.compiler.version>3.1</maven.compiler.version>
33         <maven.info.reports.version>2.7</maven.info.reports.version>
34         <maven.jar.version>2.4</maven.jar.version>
35         <maven.shade.version>2.1</maven.shade.version>
36         <maven.site.version>3.3</maven.site.version>
37         <mockito.version>1.9.5</mockito.version>
38         <netty.version>4.0.10.Final</netty.version>
39         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
40         <slf4j.version>1.7.2</slf4j.version>
41         <surefire.version>2.15</surefire.version>
42         <osgi.version>5.0.0</osgi.version>
43
44         <yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
45         <controller.config.version>0.2.3-SNAPSHOT</controller.config.version>
46         <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
47         <ietf.types.version>2010.09.24.1</ietf.types.version>
48         <ietf.topology.version>2013.10.21.0-SNAPSHOT</ietf.topology.version>
49     </properties>
50     <prerequisites>
51         <maven>3.0.4</maven>
52     </prerequisites>
53
54     <modules>
55         <!-- Common infra -->
56         <module>concepts</module>
57         <module>framework</module>
58         <module>mockito-configuration</module>
59         <module>util</module>
60
61         <!-- Subsystems -->
62         <module>bgp</module>
63         <module>pcep</module>
64         <module>programming</module>
65         <module>rsvp</module>
66         <module>topology</module>
67
68         <!-- Integration tests -->
69         <module>integration-tests</module>
70     </modules>
71
72     <dependencyManagement>
73         <dependencies>
74             <!-- This project -->
75             <dependency>
76                 <groupId>${project.groupId}</groupId>
77                 <artifactId>concepts</artifactId>
78                 <version>${project.version}</version>
79             </dependency>
80             <dependency>
81                 <groupId>${project.groupId}</groupId>
82                 <artifactId>framework</artifactId>
83                 <version>${project.version}</version>
84             </dependency>
85             <dependency>
86                 <groupId>${project.groupId}</groupId>
87                 <artifactId>util</artifactId>
88                 <version>${project.version}</version>
89             </dependency>
90
91             <!-- Testing Dependencies -->
92             <dependency>
93                 <groupId>junit</groupId>
94                 <artifactId>junit</artifactId>
95                 <version>${junit.version}</version>
96                 <scope>test</scope>
97             </dependency>
98             <dependency>
99                 <groupId>org.mockito</groupId>
100                 <artifactId>mockito-core</artifactId>
101                 <version>${mockito.version}</version>
102                 <scope>test</scope>
103             </dependency>
104             <dependency>
105                 <groupId>${project.groupId}</groupId>
106                 <artifactId>mockito-configuration</artifactId>
107                 <version>${project.version}</version>
108                 <scope>test</scope>
109             </dependency>
110
111             <!-- Supporting Libraries -->
112             <dependency>
113                 <groupId>org.slf4j</groupId>
114                 <artifactId>slf4j-api</artifactId>
115                 <version>${slf4j.version}</version>
116             </dependency>
117             <dependency>
118                 <groupId>com.google.guava</groupId>
119                 <artifactId>guava</artifactId>
120                 <version>${guava.version}</version>
121             </dependency>
122             <dependency>
123                 <groupId>com.google.code.findbugs</groupId>
124                 <artifactId>jsr305</artifactId>
125                 <version>2.0.1</version>
126             </dependency>
127
128             <!-- Netty -->
129             <dependency>
130                 <groupId>io.netty</groupId>
131                 <artifactId>netty-buffer</artifactId>
132                 <version>${netty.version}</version>
133             </dependency>
134             <dependency>
135                 <groupId>io.netty</groupId>
136                 <artifactId>netty-codec</artifactId>
137                 <version>${netty.version}</version>
138             </dependency>
139             <dependency>
140                 <groupId>io.netty</groupId>
141                 <artifactId>netty-common</artifactId>
142                 <version>${netty.version}</version>
143             </dependency>
144             <dependency>
145                 <groupId>io.netty</groupId>
146                 <artifactId>netty-transport</artifactId>
147                 <version>${netty.version}</version>
148             </dependency>
149
150             <!-- YANG tools -->
151             <dependency>
152                 <groupId>org.opendaylight.yangtools</groupId>
153                 <artifactId>yang-binding</artifactId>
154                 <version>${yang.binding.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.yangtools</groupId>
158                 <artifactId>yang-common</artifactId>
159                 <version>${yangtools.version}</version>
160             </dependency>
161
162             <!-- Controller infrastructure -->
163             <dependency>
164                 <groupId>org.opendaylight.controller</groupId>
165                 <artifactId>config-api</artifactId>
166                 <version>${controller.config.version}</version>
167             </dependency>
168             <dependency>
169                 <groupId>org.opendaylight.controller</groupId>
170                 <artifactId>sal-binding-api</artifactId>
171                 <version>1.0-SNAPSHOT</version>
172             </dependency>
173             <dependency>
174                 <groupId>org.opendaylight.controller</groupId>
175                 <artifactId>sal-binding-config</artifactId>
176                 <version>1.0-SNAPSHOT</version>
177             </dependency>
178             <dependency>
179                 <groupId>org.opendaylight.controller</groupId>
180                 <artifactId>sal-binding-broker-impl</artifactId>
181                 <version>1.0-SNAPSHOT</version>
182                 <scope>test</scope>
183             </dependency>
184
185             <!-- OSGi -->
186             <dependency>
187                 <groupId>org.osgi</groupId>
188                 <artifactId>org.osgi.core</artifactId>
189                 <version>${osgi.version}</version>
190                 <scope>provided</scope>
191             </dependency>
192
193             <!-- Models -->
194             <dependency>
195                 <groupId>org.opendaylight.yangtools.model</groupId>
196                 <artifactId>ietf-inet-types</artifactId>
197                 <version>${ietf.types.version}</version>
198             </dependency>
199             <dependency>
200                 <groupId>org.opendaylight.yangtools.model</groupId>
201                 <artifactId>ietf-ted</artifactId>
202                 <version>${ietf.topology.version}</version>
203             </dependency>
204             <dependency>
205                 <groupId>org.opendaylight.yangtools.model</groupId>
206                 <artifactId>ietf-topology</artifactId>
207                 <version>${ietf.topology.version}</version>
208             </dependency>
209             <dependency>
210                 <groupId>org.opendaylight.yangtools.model</groupId>
211                 <artifactId>ietf-topology-isis</artifactId>
212                 <version>${ietf.topology.version}</version>
213             </dependency>
214             <dependency>
215                 <groupId>org.opendaylight.yangtools.model</groupId>
216                 <artifactId>ietf-topology-l3-unicast-igp</artifactId>
217                 <version>${ietf.topology.version}</version>
218             </dependency>
219             <dependency>
220                 <groupId>org.opendaylight.yangtools.model</groupId>
221                 <artifactId>ietf-topology-ospf</artifactId>
222                 <version>${ietf.topology.version}</version>
223             </dependency>
224         </dependencies>
225     </dependencyManagement>
226
227     <dependencies>
228         <dependency>
229             <groupId>ch.qos.logback</groupId>
230             <artifactId>logback-classic</artifactId>
231             <version>${logback.version}</version>
232             <scope>test</scope>
233         </dependency>
234     </dependencies>
235
236     <reporting>
237         <plugins>
238             <plugin>
239                 <groupId>org.apache.maven.plugins</groupId>
240                 <artifactId>maven-project-info-reports-plugin</artifactId>
241                 <version>${maven.info.reports.version}</version>
242                 <reportSets>
243                     <reportSet>
244                         <reports>
245                             <report>dependency-info</report>
246                             <report>license</report>
247                         </reports>
248                     </reportSet>
249                 </reportSets>
250             </plugin>
251             <!--plugin>
252                 <groupId>org.codehaus.mojo</groupId>
253                 <artifactId>findbugs-maven-plugin</artifactId>
254                 <version>2.4.0</version>
255                 <configuration>
256                     <effort>Max</effort>
257                     <threshold>Low</threshold>
258                     <goal>site</goal>
259                 </configuration>
260             </plugin-->
261         </plugins>
262     </reporting>
263
264     <distributionManagement>
265         <!-- OpenDayLight Released artifact -->
266         <repository>
267             <id>opendaylight-release</id>
268             <url>${nexusproxy}/repositories/opendaylight.release/</url>
269         </repository>
270         <!-- OpenDayLight Snapshot artifact -->
271         <snapshotRepository>
272             <id>opendaylight-snapshot</id>
273             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
274         </snapshotRepository>
275         <site>
276             <id>wiki.opendaylight.org</id>
277             <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main/site</url>
278         </site>
279     </distributionManagement>
280
281     <build>
282         <plugins>
283             <plugin>
284                 <groupId>org.apache.maven.plugins</groupId>
285                 <artifactId>maven-compiler-plugin</artifactId>
286                 <version>${maven.compiler.version}</version>
287                 <configuration>
288                     <source>${java.version.source}</source>
289                     <target>${java.version.target}</target>
290                     <testSource>${java.version.source}</testSource>
291                     <testTarget>${java.version.target}</testTarget>
292                     <showDeprecation>true</showDeprecation>
293                     <showWarnings>true</showWarnings>
294                     <optimize>true</optimize>
295                 </configuration>
296             </plugin>
297             <plugin>
298                 <groupId>org.apache.maven.plugins</groupId>
299                 <artifactId>maven-surefire-plugin</artifactId>
300                 <version>${surefire.version}</version>
301                 <configuration>
302                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
303                     <!--parallel>classes</parallel>
304                     <forkCount>1C</forkCount>
305                     <reuseForks>false</reuseForks>
306                     <perCoreThreadCount>true</perCoreThreadCount-->
307                     <threadCount>1</threadCount>
308                 </configuration>
309             </plugin>
310
311             <plugin>
312                 <groupId>org.apache.maven.plugins</groupId>
313                 <artifactId>maven-dependency-plugin</artifactId>
314                 <version>${dependency.version}</version>
315                 <configuration>
316                     <failOnWarning>true</failOnWarning>
317                     <ignoreNonCompile>true</ignoreNonCompile>
318                 </configuration>
319             </plugin>
320             <plugin>
321                 <!-- Let eclipse know about the generated sources -->
322                 <groupId>org.codehaus.mojo</groupId>
323                 <artifactId>build-helper-maven-plugin</artifactId>
324                 <version>1.8</version>
325                 <executions>
326                     <execution>
327                         <phase>generate-sources</phase>
328                         <goals>
329                             <goal>add-source</goal>
330                         </goals>
331                         <configuration>
332                             <sources>
333                                 <source>target/generated-sources/sal</source>
334                                 <source>target/generated-sources/config</source>
335                             </sources>
336                         </configuration>
337                     </execution>
338                 </executions>
339             </plugin>
340
341             <plugin>
342                 <groupId>org.apache.maven.plugins</groupId>
343                 <artifactId>maven-source-plugin</artifactId>
344                 <executions>
345                     <execution>
346                         <id>attach-sources</id>
347                         <goals>
348                             <goal>jar</goal>
349                         </goals>
350                     </execution>
351                 </executions>
352             </plugin>
353
354             <plugin>
355                 <groupId>org.apache.maven.plugins</groupId>
356                 <artifactId>maven-javadoc-plugin</artifactId>
357                 <executions>
358                     <execution>
359                         <id>attach-javadocs</id>
360                         <goals>
361                             <goal>jar</goal>
362                         </goals>
363                     </execution>
364                 </executions>
365             </plugin>
366
367         </plugins>
368         <pluginManagement>
369             <plugins>
370                 <!--This plugin's configuration is used to store Eclipse m2e settings
371                     only. It has no influence on the Maven build itself. -->
372                 <plugin>
373                     <groupId>org.eclipse.m2e</groupId>
374                     <artifactId>lifecycle-mapping</artifactId>
375                     <version>1.0.0</version>
376                     <configuration>
377                         <lifecycleMappingMetadata>
378                             <pluginExecutions>
379                                 <pluginExecution>
380                                     <pluginExecutionFilter>
381                                         <groupId>pl.project13.maven</groupId>
382                                         <artifactId>git-commit-id-plugin</artifactId>
383                                         <versionRange>[2.1.4,)</versionRange>
384                                         <goals>
385                                             <goal>revision</goal>
386                                         </goals>
387                                     </pluginExecutionFilter>
388                                     <action>
389                                         <ignore></ignore>
390                                     </action>
391                                 </pluginExecution>
392                                 <pluginExecution>
393                                     <pluginExecutionFilter>
394                                         <groupId>org.opendaylight.yangtools</groupId>
395                                         <artifactId>yang-maven-plugin</artifactId>
396                                         <versionRange>[0.5,)</versionRange>
397                                         <goals>
398                                             <goal>generate-sources</goal>
399                                         </goals>
400                                     </pluginExecutionFilter>
401                                     <action>
402                                         <ignore></ignore>
403                                     </action>
404                                 </pluginExecution>
405                             </pluginExecutions>
406                         </lifecycleMappingMetadata>
407                     </configuration>
408                 </plugin>
409
410                 <!-- Our YANG->DTO generation plugin -->
411                 <plugin>
412                     <groupId>org.opendaylight.yangtools</groupId>
413                     <artifactId>yang-maven-plugin</artifactId>
414                     <version>${yangtools.version}</version>
415                     <executions>
416                         <execution>
417                             <goals>
418                                 <goal>generate-sources</goal>
419                             </goals>
420                             <configuration>
421                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
422                                 <codeGenerators>
423                                     <generator>
424                                         <codeGeneratorClass>
425                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
426                                         </codeGeneratorClass>
427                                         <outputBaseDir>
428                                             target/generated-sources/sal
429                                         </outputBaseDir>
430                                     </generator>
431                                     <generator>
432                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
433                                         <outputBaseDir>target/site</outputBaseDir>
434                                     </generator>
435                                 </codeGenerators>
436                                 <inspectDependencies>true</inspectDependencies>
437                             </configuration>
438                         </execution>
439                     </executions>
440                     <dependencies>
441                         <dependency>
442                             <groupId>org.opendaylight.yangtools</groupId>
443                             <artifactId>maven-sal-api-gen-plugin</artifactId>
444                             <version>${yang.binding.version}</version>
445                             <type>jar</type>
446                         </dependency>
447                     </dependencies>
448                 </plugin>
449
450                 <!-- Maven site plugin -->
451                 <plugin>
452                     <artifactId>maven-site-plugin</artifactId>
453                     <version>${maven.site.version}</version>
454                 </plugin>
455
456                 <plugin>
457                     <groupId>org.apache.maven.plugins</groupId>
458                     <artifactId>maven-javadoc-plugin</artifactId>
459                     <version>2.9.1</version>
460                 </plugin>
461                 <plugin>
462                     <groupId>org.apache.maven.plugins</groupId>
463                     <artifactId>maven-source-plugin</artifactId>
464                     <version>2.2.1</version>
465                 </plugin>
466             </plugins>
467         </pluginManagement>
468     </build>
469
470     <repositories>
471         <repository>
472             <id>opendaylight-release</id>
473             <name>opendaylight-release</name>
474             <url>${nexusproxy}/repositories/opendaylight.release/</url>
475         </repository>
476         <repository>
477             <id>opendaylight-snapshot</id>
478             <name>opendaylight-snapshot</name>
479             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
480         </repository>
481     </repositories>
482
483     <pluginRepositories>
484         <pluginRepository>
485             <id>opendaylight-release</id>
486             <name>opendaylight-release</name>
487             <url>${nexusproxy}/repositories/opendaylight.release/</url>
488         </pluginRepository>
489         <pluginRepository>
490             <id>opendaylight-snapshot</id>
491             <name>opendaylight-snapshot</name>
492             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
493         </pluginRepository>
494     </pluginRepositories>
495 </project>