6ce5ac664a03183dd9667ca2ef0574a499b6e70c
[netvirt.git] / commons / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4
5   <parent>
6     <groupId>org.opendaylight.odlparent</groupId>
7     <artifactId>odlparent</artifactId>
8     <version>1.4.2-SNAPSHOT</version>
9     <relativePath></relativePath>
10   </parent>
11
12   <groupId>org.opendaylight.ovsdb</groupId>
13   <artifactId>commons</artifactId>
14   <version>1.2.0-SNAPSHOT</version>
15   <packaging>pom</packaging>
16   <prerequisites>
17     <maven>3.0</maven>
18   </prerequisites>
19
20   <properties>
21     <!-- ODL repository / plugin repository -->
22     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
23     <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
24     <ovsdb.library.version>1.0.0-SNAPSHOT</ovsdb.library.version>
25     <ovsdb.plugin.version>1.0.0-SNAPSHOT</ovsdb.plugin.version>
26     <ovsdb.neutron.version>0.7.0-SNAPSHOT</ovsdb.neutron.version>
27     <ovsdb.northbound.version>0.6.0-SNAPSHOT</ovsdb.northbound.version>
28     <schema.openvswitch.version>1.0.0-SNAPSHOT</schema.openvswitch.version>
29     <schema.hardwarevtep.version>1.0.0-SNAPSHOT</schema.hardwarevtep.version>
30     <skip.integrationtest>true</skip.integrationtest>
31     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
32     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
33     <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
34     <!-- Override -->
35     <jacoco.version>0.6.4.201312101107</jacoco.version>
36     <!-- ODL Dependency Versions -->
37     <containermanager.version>0.5.2-SNAPSHOT</containermanager.version>
38     <forwardingrulesmanager.version>0.6.0-SNAPSHOT</forwardingrulesmanager.version>
39     <networkconfig.neutron.version>0.4.2-SNAPSHOT</networkconfig.neutron.version>
40     <clustering.services.version>0.5.1-SNAPSHOT</clustering.services.version>
41     <sal.version>0.8.1-SNAPSHOT</sal.version>
42     <sal.connection.version>0.1.2-SNAPSHOT</sal.connection.version>
43     <sal.networkconfiguration.version>0.0.3-SNAPSHOT</sal.networkconfiguration.version>
44     <mdsal.version>1.1-SNAPSHOT</mdsal.version>
45     <switchmanager.api.version>0.7.1-SNAPSHOT</switchmanager.api.version>
46     <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
47     <northbound.commons.version>0.4.2-SNAPSHOT</northbound.commons.version>
48     <checkstyle.rules.version>0.0.3-SNAPSHOT</checkstyle.rules.version>
49     <!-- 3rd Pary Dependency Versions -->
50     <commons.collection.version>1.0</commons.collection.version>
51     <netty.version>4.0.10.Final</netty.version>
52     <portlet.version>2.0</portlet.version>
53     <powermock.version>1.5.2</powermock.version>
54     <httpcomponents.version>4.2.1</httpcomponents.version>
55   </properties>
56
57   <dependencyManagement>
58     <dependencies>
59       <dependency>
60         <groupId>commons-collections</groupId>
61         <artifactId>commons-collections</artifactId>
62         <version>${commons.collection.version}</version>
63       </dependency>
64       <dependency>
65         <groupId>io.netty</groupId>
66         <artifactId>netty-all</artifactId>
67         <version>${netty.version}</version>
68       </dependency>
69       <dependency>
70         <groupId>javax.portlet</groupId>
71         <artifactId>portlet-api</artifactId>
72         <version>${portlet.version}</version>
73       </dependency>
74       <dependency>
75         <groupId>org.apache.httpcomponents</groupId>
76         <artifactId>httpcore-nio</artifactId>
77         <version>${httpcomponents.version}</version>
78       </dependency>
79       <dependency>
80         <groupId>org.powermock</groupId>
81         <artifactId>powermock-module-junit4</artifactId>
82         <version>${powermock.version}</version>
83       </dependency>
84       <dependency>
85         <groupId>org.powermock</groupId>
86         <artifactId>powermock-api-mockito</artifactId>
87         <version>${powermock.version}</version>
88       </dependency>
89       <dependency>
90         <groupId>org.opendaylight.controller</groupId>
91         <artifactId>clustering.services</artifactId>
92         <version>${clustering.services.version}</version>
93       </dependency>
94       <dependency>
95         <groupId>org.opendaylight.controller</groupId>
96         <artifactId>sal</artifactId>
97         <version>${sal.version}</version>
98       </dependency>
99       <dependency>
100         <groupId>org.opendaylight.controller</groupId>
101         <artifactId>sal.connection</artifactId>
102         <version>${sal.connection.version}</version>
103       </dependency>
104       <dependency>
105         <groupId>org.opendaylight.controller</groupId>
106         <artifactId>sal.networkconfiguration</artifactId>
107         <version>${sal.networkconfiguration.version}</version>
108       </dependency>
109       <dependency>
110         <groupId>org.opendaylight.controller</groupId>
111         <artifactId>containermanager</artifactId>
112         <version>${containermanager.version}</version>
113       </dependency>
114       <dependency>
115         <groupId>org.opendaylight.controller</groupId>
116         <artifactId>forwardingrulesmanager</artifactId>
117         <version>${forwardingrulesmanager.version}</version>
118       </dependency>
119       <dependency>
120         <groupId>org.opendaylight.controller</groupId>
121         <artifactId>networkconfig.neutron</artifactId>
122         <version>${networkconfig.neutron.version}</version>
123       </dependency>
124       <dependency>
125         <groupId>org.opendaylight.controller</groupId>
126         <artifactId>sal-binding-api</artifactId>
127         <version>${mdsal.version}</version>
128       </dependency>
129       <dependency>
130         <groupId>org.opendaylight.controller</groupId>
131         <artifactId>sal-common-util</artifactId>
132         <version>${mdsal.version}</version>
133       </dependency>
134       <dependency>
135         <groupId>org.opendaylight.controller</groupId>
136         <artifactId>switchmanager</artifactId>
137         <version>${switchmanager.api.version}</version>
138       </dependency>
139       <dependency>
140         <groupId>org.opendaylight.controller.model</groupId>
141         <artifactId>model-flow-base</artifactId>
142         <version>${mdsal.version}</version>
143       </dependency>
144       <dependency>
145         <groupId>org.opendaylight.controller.model</groupId>
146         <artifactId>model-flow-management</artifactId>
147         <version>${mdsal.version}</version>
148       </dependency>
149       <dependency>
150         <groupId>org.opendaylight.controller.model</groupId>
151         <artifactId>model-flow-service</artifactId>
152         <version>${mdsal.version}</version>
153       </dependency>
154       <dependency>
155         <groupId>org.opendaylight.controller.model</groupId>
156         <artifactId>model-inventory</artifactId>
157         <version>${mdsal.version}</version>
158       </dependency>
159       <dependency>
160         <groupId>org.opendaylight.yangtools</groupId>
161         <artifactId>yang-binding</artifactId>
162         <version>${yangtools.version}</version>
163       </dependency>
164       <dependency>
165         <groupId>org.opendaylight.controller</groupId>
166         <artifactId>commons.northbound</artifactId>
167         <version>${northbound.commons.version}</version>
168       </dependency>
169       <dependency>
170         <groupId>org.opendaylight.ovsdb</groupId>
171         <artifactId>library</artifactId>
172         <version>${ovsdb.library.version}</version>
173       </dependency>
174       <dependency>
175         <groupId>org.opendaylight.ovsdb</groupId>
176         <artifactId>plugin</artifactId>
177         <version>${ovsdb.plugin.version}</version>
178       </dependency>
179       <dependency>
180         <groupId>org.opendaylight.ovsdb</groupId>
181         <artifactId>neutron</artifactId>
182         <version>${ovsdb.neutron.version}</version>
183       </dependency>
184       <dependency>
185         <groupId>org.opendaylight.ovsdb</groupId>
186         <artifactId>northbound</artifactId>
187         <version>${ovsdb.northbound.version}</version>
188       </dependency>
189       <dependency>
190         <groupId>org.opendaylight.ovsdb</groupId>
191         <artifactId>schema.hardwarevtep</artifactId>
192         <version>${schema.hardwarevtep.version}</version>
193       </dependency>
194       <dependency>
195         <groupId>org.opendaylight.ovsdb</groupId>
196         <artifactId>schema.openvswitch</artifactId>
197         <version>${schema.openvswitch.version}</version>
198       </dependency>
199     </dependencies>
200   </dependencyManagement>
201
202   <build>
203     <pluginManagement>
204       <plugins>
205         <plugin>
206           <groupId>org.apache.maven.plugins</groupId>
207           <artifactId>maven-compiler-plugin</artifactId>
208           <configuration>
209             <source>${java.version.source}</source>
210             <target>${java.version.target}</target>
211             <testSource>${java.version.source}</testSource>
212             <testTarget>${java.version.target}</testTarget>
213           </configuration>
214         </plugin>
215         <!-- This configuration should move to ODL-Parent -->
216         <plugin>
217           <groupId>org.apache.maven.plugins</groupId>
218           <artifactId>maven-checkstyle-plugin</artifactId>
219           <version>${checkstyle.version}</version>
220           <configuration>
221             <failsOnError>true</failsOnError>
222             <configLocation>controller/checkstyle.xml</configLocation>
223             <consoleOutput>true</consoleOutput>
224             <includeTestSourceDirectory>true</includeTestSourceDirectory>
225             <sourceDirectory>${project.basedir}</sourceDirectory>
226             <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
227             <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/</excludes>
228           </configuration>
229           <dependencies>
230             <dependency>
231               <groupId>org.opendaylight.controller</groupId>
232               <artifactId>checkstyle</artifactId>
233               <version>0.0.3-SNAPSHOT</version>
234             </dependency>
235           </dependencies>
236           <executions>
237             <execution>
238               <id>check</id>
239               <goals>
240                 <goal>check</goal>
241               </goals>
242               <phase>process-sources</phase>
243             </execution>
244           </executions>
245         </plugin>
246         <plugin>
247           <groupId>org.jacoco</groupId>
248           <artifactId>jacoco-maven-plugin</artifactId>
249           <version>${jacoco.version}</version>
250           <executions>
251             <execution>
252               <id>pre-unit-test</id>
253               <goals>
254                 <goal>prepare-agent</goal>
255               </goals>
256               <configuration>
257                 <destFile>${sonar.jacoco.reportPath}</destFile>
258               </configuration>
259             </execution>
260             <execution>
261               <id>pre-integration-test</id>
262               <goals>
263                 <goal>prepare-agent-integration</goal>
264               </goals>
265               <configuration>
266                 <destFile>${sonar.jacoco.itReportPath}</destFile>
267                 <skip>${skip.integrationtest}</skip>
268               </configuration>
269             </execution>
270             <execution>
271               <id>post-unit-test</id>
272               <goals>
273                 <goal>report</goal>
274               </goals>
275               <configuration>
276                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
277               </configuration>
278             </execution>
279             <execution>
280               <id>post-integration-test</id>
281               <goals>
282                 <goal>report-integration</goal>
283               </goals>
284               <configuration>
285                 <dataFile>${sonar.jacoco.itReportPath}</dataFile>
286                 <skip>${skip.integrationtest}</skip>
287               </configuration>
288             </execution>
289           </executions>
290         </plugin>
291         <plugin>
292           <groupId>org.apache.maven.plugins</groupId>
293           <artifactId>maven-surefire-plugin</artifactId>
294           <version>${maven.surefire.version}</version>
295         </plugin>
296         <plugin>
297           <groupId>org.apache.maven.plugins</groupId>
298           <artifactId>maven-failsafe-plugin</artifactId>
299           <version>${failsafe.version}</version>
300           <executions>
301             <execution>
302               <id>failsafe-integration-tests</id>
303               <goals>
304                 <goal>integration-test</goal>
305                 <goal>verify</goal>
306               </goals>
307               <configuration>
308                 <skipTests>${skip.integrationtest}</skipTests>
309               </configuration>
310             </execution>
311           </executions>
312         </plugin>
313       </plugins>
314     </pluginManagement>
315   </build>
316   <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
317   <scm>
318     <connection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</connection>
319     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</developerConnection>
320     <tag>HEAD</tag>
321     <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
322   </scm>
323
324   <repositories>
325     <!-- Opendaylight public group -->
326     <repository>
327       <id>opendaylight-public</id>
328       <name>opendaylight-public</name>
329       <url>${nexusproxy}/groups/public/</url>
330       <snapshots>
331         <enabled>false</enabled>
332       </snapshots>
333       <releases>
334         <enabled>true</enabled>
335         <updatePolicy>never</updatePolicy>
336       </releases>
337     </repository>
338     <!-- OpenDayLight Released artifact -->
339     <repository>
340       <id>opendaylight-release</id>
341       <name>opendaylight-release</name>
342       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
343       <snapshots>
344         <enabled>false</enabled>
345       </snapshots>
346       <releases>
347         <enabled>true</enabled>
348       </releases>
349     </repository>
350     <!-- OpenDayLight Snapshot artifact -->
351     <repository>
352       <id>opendaylight-snapshot</id>
353       <name>opendaylight-snapshot</name>
354       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
355       <snapshots>
356         <enabled>true</enabled>
357       </snapshots>
358       <releases>
359         <enabled>false</enabled>
360       </releases>
361     </repository>
362   </repositories>
363
364   <pluginRepositories>
365     <!-- Opendaylight public group -->
366     <pluginRepository>
367       <id>opendaylight-public</id>
368       <name>opendaylight-public</name>
369       <url>${nexusproxy}/groups/public/</url>
370       <snapshots>
371         <enabled>false</enabled>
372       </snapshots>
373       <releases>
374         <enabled>true</enabled>
375         <updatePolicy>never</updatePolicy>
376       </releases>
377     </pluginRepository>
378     <!-- OpenDayLight Released artifact -->
379     <pluginRepository>
380       <id>opendaylight-release</id>
381       <name>opendaylight-release</name>
382       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
383       <snapshots>
384         <enabled>false</enabled>
385       </snapshots>
386       <releases>
387         <enabled>true</enabled>
388       </releases>
389     </pluginRepository>
390     <!-- OpenDayLight Snapshot artifact -->
391     <pluginRepository>
392       <id>opendaylight-snapshot</id>
393       <name>opendaylight-snapshot</name>
394       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
395       <snapshots>
396         <enabled>true</enabled>
397       </snapshots>
398       <releases>
399         <enabled>false</enabled>
400       </releases>
401     </pluginRepository>
402   </pluginRepositories>
403
404   <profiles>
405     <profile>
406       <id>integrationtest</id>
407       <activation>
408         <activeByDefault>false</activeByDefault>
409       </activation>
410       <properties>
411         <skip.integrationtest>false</skip.integrationtest>
412       </properties>
413     </profile>
414   </profiles>
415
416 </project>