Merge changes
[bgpcep.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set 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         <name>OpenDaylight protocols</name>
6         <url>index.html</url>
7         <modelVersion>4.0.0</modelVersion>
8         <groupId>org.opendaylight.bgpcep</groupId>
9         <artifactId>protocol-parent</artifactId>
10         <description>OpenDaylight BGP+PCEP protocol parent</description>
11         <version>0.3.0-SNAPSHOT</version>
12         <packaging>pom</packaging>
13
14         <properties>
15                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16                 <commonscodec.version>1.7</commonscodec.version>
17                 <dependency.version>2.8</dependency.version>
18                 <guava.version>14.0.1</guava.version>
19                 <java.version.source>1.7</java.version.source>
20                 <java.version.target>1.7</java.version.target>
21                 <junit.version>4.10</junit.version>
22                 <logback.version>1.0.7</logback.version>
23                 <maven.bundle.version>2.4.0</maven.bundle.version>
24                 <maven.compiler.version>3.1</maven.compiler.version>
25                 <maven.jar.version>2.4</maven.jar.version>
26                 <maven.shade.version>2.1</maven.shade.version>
27                 <mockito.version>1.9.5</mockito.version>
28                 <netty.version>4.0.10.Final</netty.version>
29                 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
30                 <slf4j.version>1.7.2</slf4j.version>
31                 <surefire.version>2.15</surefire.version>
32                 <osgi.version>5.0.0</osgi.version>
33
34                 <yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
35         <controller.config.version>0.2.3-SNAPSHOT</controller.config.version>
36                 <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
37                 <ietf.types.version>2010.09.24.1</ietf.types.version>
38         </properties>
39         <prerequisites>
40                 <maven>3.0.4</maven>
41         </prerequisites>
42
43         <modules>
44                 <!-- Common infra -->
45                 <module>concepts</module>
46                 <module>framework</module>
47                 <module>mockito-configuration</module>
48                 <module>util</module>
49
50                 <!-- Subsystems -->
51                 <module>bgp</module>
52                 <module>pcep</module>
53                 <module>programming</module>
54                 <module>rsvp</module>
55                 <module>topology</module>
56
57                 <!-- Integration tests -->
58                 <module>integration-tests</module>
59         </modules>
60
61     <dependencyManagement>
62                 <dependencies>
63                         <!-- This project -->
64             <dependency>
65                 <groupId>${project.groupId}</groupId>
66                 <artifactId>concepts</artifactId>
67                 <version>${project.version}</version>
68             </dependency>
69             <dependency>
70                 <groupId>${project.groupId}</groupId>
71                 <artifactId>framework</artifactId>
72                 <version>${project.version}</version>
73             </dependency>
74             <dependency>
75                 <groupId>${project.groupId}</groupId>
76                 <artifactId>util</artifactId>
77                 <version>${project.version}</version>
78             </dependency>
79
80                         <!-- Testing Dependencies -->
81             <dependency>
82                 <groupId>junit</groupId>
83                 <artifactId>junit</artifactId>
84                 <version>${junit.version}</version>
85                 <scope>test</scope>
86                         </dependency>
87                         <dependency>
88                                 <groupId>org.mockito</groupId>
89                                 <artifactId>mockito-core</artifactId>
90                                 <version>${mockito.version}</version>
91                                 <scope>test</scope>
92                         </dependency>
93                         <dependency>
94                                 <groupId>${project.groupId}</groupId>
95                                 <artifactId>mockito-configuration</artifactId>
96                                 <version>${project.version}</version>
97                                 <scope>test</scope>
98                         </dependency>
99
100                         <!-- Supporting Libraries -->
101             <dependency>
102                 <groupId>org.slf4j</groupId>
103                 <artifactId>slf4j-api</artifactId>
104                 <version>${slf4j.version}</version>
105             </dependency>
106             <dependency>
107                 <groupId>com.google.guava</groupId>
108                 <artifactId>guava</artifactId>
109                 <version>${guava.version}</version>
110             </dependency>
111                         <dependency>
112                                 <groupId>com.google.code.findbugs</groupId>
113                                 <artifactId>jsr305</artifactId>
114                                 <version>2.0.1</version>
115                         </dependency>
116
117                         <!-- Netty -->
118                         <dependency>
119                                 <groupId>io.netty</groupId>
120                                 <artifactId>netty-buffer</artifactId>
121                                 <version>${netty.version}</version>
122                         </dependency>
123                         <dependency>
124                                 <groupId>io.netty</groupId>
125                                 <artifactId>netty-codec</artifactId>
126                                 <version>${netty.version}</version>
127                         </dependency>
128                         <dependency>
129                                 <groupId>io.netty</groupId>
130                                 <artifactId>netty-common</artifactId>
131                                 <version>${netty.version}</version>
132                         </dependency>
133                         <dependency>
134                                 <groupId>io.netty</groupId>
135                                 <artifactId>netty-transport</artifactId>
136                                 <version>${netty.version}</version>
137                         </dependency>
138
139                         <!-- YANG tools -->
140                         <dependency>
141                                 <groupId>org.opendaylight.yangtools</groupId>
142                                 <artifactId>yang-binding</artifactId>
143                                 <version>${yang.binding.version}</version>
144                         </dependency>
145                         <dependency>
146                                 <groupId>org.opendaylight.yangtools</groupId>
147                                 <artifactId>yang-common</artifactId>
148                                 <version>${yangtools.version}</version>
149                         </dependency>
150
151                         <!-- Controller infrastructure -->
152                         <dependency>
153                                 <groupId>org.opendaylight.controller</groupId>
154                                 <artifactId>config-api</artifactId>
155                                 <version>${controller.config.version}</version>
156                         </dependency>
157
158                         <!-- OSGi -->
159                         <dependency>
160                                 <groupId>org.osgi</groupId>
161                                 <artifactId>org.osgi.core</artifactId>
162                                 <version>${osgi.version}</version>
163                                 <scope>provided</scope>
164                         </dependency>
165         </dependencies>
166     </dependencyManagement>
167
168         <dependencies>
169                 <dependency>
170                         <groupId>ch.qos.logback</groupId>
171                         <artifactId>logback-classic</artifactId>
172                         <version>${logback.version}</version>
173                         <scope>test</scope>
174                 </dependency>
175         </dependencies>
176         
177         <reporting>
178                 <plugins>
179                         <plugin>
180                                 <groupId>org.apache.maven.plugins</groupId>
181                                 <artifactId>maven-javadoc-plugin</artifactId>
182                                 <version>2.9.1</version>
183                         </plugin>
184                 </plugins>
185         </reporting>
186
187         <distributionManagement>
188                 <!-- OpenDayLight Released artifact -->
189                 <repository>
190                         <id>opendaylight-release</id>
191                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
192                 </repository>
193                 <!-- OpenDayLight Snapshot artifact -->
194                 <snapshotRepository>
195                         <id>opendaylight-snapshot</id>
196                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
197                 </snapshotRepository>
198                 <site>
199                         <id>${project.artifactId}-site</id>
200                         <url>./</url>
201                 </site>
202         </distributionManagement>
203
204         <build>
205                 <plugins>
206                         <plugin>
207                                 <groupId>org.apache.maven.plugins</groupId>
208                                 <artifactId>maven-compiler-plugin</artifactId>
209                                 <version>${maven.compiler.version}</version>
210                                 <configuration>
211                                         <source>${java.version.source}</source>
212                                         <target>${java.version.target}</target>
213                                         <testSource>${java.version.source}</testSource>
214                                         <testTarget>${java.version.target}</testTarget>
215                                 </configuration>
216                         </plugin>
217                         <plugin>
218                                 <groupId>org.apache.maven.plugins</groupId>
219                                 <artifactId>maven-surefire-plugin</artifactId>
220                                 <version>${surefire.version}</version>
221                                 <configuration>
222                                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
223                                         <!--parallel>classes</parallel>
224                                         <forkCount>1C</forkCount>
225                                         <reuseForks>false</reuseForks>
226                                         <perCoreThreadCount>true</perCoreThreadCount-->
227                                         <threadCount>1</threadCount>
228                                 </configuration>
229                         </plugin>
230
231                         <plugin>
232                                 <groupId>org.apache.maven.plugins</groupId>
233                                 <artifactId>maven-dependency-plugin</artifactId>
234                                 <version>${dependency.version}</version>
235                                 <configuration>
236                                         <failOnWarning>true</failOnWarning>
237                                         <ignoreNonCompile>true</ignoreNonCompile>
238                                 </configuration>
239                         </plugin>
240             <plugin>
241                 <!-- Let eclipse know about the generated sources -->
242                 <groupId>org.codehaus.mojo</groupId>
243                 <artifactId>build-helper-maven-plugin</artifactId>
244                                 <version>1.8</version>
245                 <executions>
246                     <execution>
247                         <phase>generate-sources</phase>
248                         <goals>
249                             <goal>add-source</goal>
250                         </goals>
251                         <configuration>
252                             <sources>
253                                 <source>target/generated-sources/sal</source>
254                                 <source>target/generated-sources/config</source>
255                             </sources>
256                         </configuration>
257                     </execution>
258                 </executions>
259             </plugin>
260                 </plugins>
261                 <pluginManagement>
262                         <plugins>
263                                 <!--This plugin's configuration is used to store Eclipse m2e settings
264                                         only. It has no influence on the Maven build itself. -->
265                                 <plugin>
266                                         <groupId>org.eclipse.m2e</groupId>
267                                         <artifactId>lifecycle-mapping</artifactId>
268                                         <version>1.0.0</version>
269                                         <configuration>
270                                                 <lifecycleMappingMetadata>
271                                                         <pluginExecutions>
272                                                                 <pluginExecution>
273                                                                         <pluginExecutionFilter>
274                                                                                 <groupId>pl.project13.maven</groupId>
275                                                                                 <artifactId>git-commit-id-plugin</artifactId>
276                                                                                 <versionRange>[2.1.4,)</versionRange>
277                                                                                 <goals>
278                                                                                         <goal>revision</goal>
279                                                                                 </goals>
280                                                                         </pluginExecutionFilter>
281                                                                         <action>
282                                                                                 <ignore></ignore>
283                                                                         </action>
284                                                                 </pluginExecution>
285                                 <pluginExecution>
286                                     <pluginExecutionFilter>
287                                         <groupId>org.opendaylight.yangtools</groupId>
288                                         <artifactId>yang-maven-plugin</artifactId>
289                                         <versionRange>[0.5,)</versionRange>
290                                         <goals>
291                                             <goal>generate-sources</goal>
292                                         </goals>
293                                     </pluginExecutionFilter>
294                                     <action>
295                                         <ignore></ignore>
296                                     </action>
297                                 </pluginExecution>
298                                                         </pluginExecutions>
299                                                 </lifecycleMappingMetadata>
300                                         </configuration>
301                                 </plugin>
302                         </plugins>
303                 </pluginManagement>
304         </build>
305
306         <repositories>
307                 <repository>
308                         <id>opendaylight-release</id>
309                         <name>opendaylight-release</name>
310                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
311                 </repository>
312                 <repository>
313                         <id>opendaylight-snapshot</id>
314                         <name>opendaylight-snapshot</name>
315                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
316                 </repository>
317         </repositories>
318
319         <pluginRepositories>
320                 <pluginRepository>
321                         <id>opendaylight-release</id>
322                         <name>opendaylight-release</name>
323                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
324                 </pluginRepository>
325                 <pluginRepository>
326                         <id>opendaylight-snapshot</id>
327                         <name>opendaylight-snapshot</name>
328                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
329                 </pluginRepository>
330         </pluginRepositories>
331 </project>