Merge "Drop the #1997-related sleep"
[ovsdb.git] / southbound / southbound-it / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10
11   <parent>
12     <groupId>org.opendaylight.controller</groupId>
13     <artifactId>mdsal-it-parent</artifactId>
14     <version>1.3.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17   <modelVersion>4.0.0</modelVersion>
18   <groupId>org.opendaylight.ovsdb</groupId>
19   <artifactId>southbound-it</artifactId>
20   <version>1.2.1-SNAPSHOT</version>
21   <packaging>jar</packaging>
22   <description>The OVSDB Plugin integration project is a project for OpenDaylight that will implement the Open vSwitch Database RFC 7047 management protocol allowing the Southbound configuration of vSwitches and a network virtualization implementation.</description>
23   <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
24   <licenses>
25     <license>
26       <name>Eclipse Public License v1.0</name>
27       <url>http://www.eclipse.org/legal/epl-v10.html</url>
28     </license>
29   </licenses>
30   <developers>
31     <developer>
32       <name>Sam Hague</name>
33       <email>shague@gmail.com</email>
34       <url>https://github.com/shague</url>
35     </developer>
36   </developers>
37   <scm>
38     <connection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</connection>
39     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</developerConnection>
40     <tag>HEAD</tag>
41     <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
42   </scm>
43   <properties>
44     <skip.integrationtest>true</skip.integrationtest>
45     <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
46     <root.directory>${env.PWD}</root.directory>
47     <sonar.jacoco.itReportPath>${root.directory}/target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
48   </properties>
49   <dependencyManagement>
50     <dependencies>
51       <dependency>
52         <groupId>${project.groupId}</groupId>
53         <artifactId>southbound-artifacts</artifactId>
54         <version>${project.version}</version>
55         <type>pom</type>
56         <scope>import</scope>
57       </dependency>
58       <dependency>
59         <groupId>org.opendaylight.controller</groupId>
60         <artifactId>config-artifacts</artifactId>
61         <version>0.4.0-SNAPSHOT</version>
62         <type>pom</type>
63         <scope>import</scope>
64       </dependency>
65       <dependency>
66         <groupId>org.opendaylight.controller</groupId>
67         <artifactId>mdsal-artifacts</artifactId>
68         <version>${mdsal.version}</version>
69         <type>pom</type>
70         <scope>import</scope>
71       </dependency>
72     </dependencies>
73   </dependencyManagement>
74   <dependencies>
75     <dependency>
76       <groupId>org.opendaylight.controller</groupId>
77       <artifactId>sal-binding-api</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.controller</groupId>
81       <artifactId>sal-common-api</artifactId>
82     </dependency>
83     <dependency>
84       <groupId>${project.groupId}</groupId>
85       <artifactId>southbound-features</artifactId>
86       <classifier>features</classifier>
87       <type>xml</type>
88     </dependency>
89     <dependency>
90       <groupId>org.opendaylight.controller</groupId>
91       <artifactId>config-util</artifactId>
92     </dependency>
93     <!-- Dependencies for pax exam karaf container -->
94     <dependency>
95       <groupId>org.ops4j.pax.exam</groupId>
96       <artifactId>pax-exam-container-karaf</artifactId>
97       <scope>compile</scope>
98     </dependency>
99     <dependency>
100       <groupId>org.ops4j.pax.exam</groupId>
101       <artifactId>pax-exam-junit4</artifactId>
102       <scope>compile</scope>
103     </dependency>
104     <dependency>
105       <groupId>org.ops4j.pax.exam</groupId>
106       <artifactId>pax-exam</artifactId>
107       <scope>compile</scope>
108     </dependency>
109     <dependency>
110       <groupId>org.ops4j.pax.url</groupId>
111       <artifactId>pax-url-aether</artifactId>
112       <scope>compile</scope>
113     </dependency>
114     <dependency>
115       <groupId>javax.inject</groupId>
116       <artifactId>javax.inject</artifactId>
117       <version>1</version>
118       <scope>compile</scope>
119     </dependency>
120     <dependency>
121       <groupId>org.apache.karaf.features</groupId>
122       <artifactId>org.apache.karaf.features.core</artifactId>
123       <version>${karaf.version}</version>
124       <scope>compile</scope>
125     </dependency>
126     <dependency>
127       <groupId>org.osgi</groupId>
128       <artifactId>org.osgi.core</artifactId>
129       <scope>compile</scope>
130     </dependency>
131     <dependency>
132       <groupId>junit</groupId>
133       <artifactId>junit</artifactId>
134       <scope>compile</scope>
135     </dependency>
136     <dependency>
137       <groupId>org.slf4j</groupId>
138       <artifactId>slf4j-simple</artifactId>
139       <scope>test</scope>
140     </dependency>
141     <dependency>
142       <groupId>org.codehaus.sonar-plugins.java</groupId>
143       <artifactId>sonar-jacoco-listeners</artifactId>
144       <version>${sonar-jacoco-listeners.version}</version>
145       <scope>test</scope>
146     </dependency>
147     <!-- AbstractConfigTestBase::getKarafDistro() needs this to find its version -->
148     <dependency>
149       <groupId>org.opendaylight.ovsdb</groupId>
150       <artifactId>southbound-karaf</artifactId>
151       <version>${project.version}</version>
152       <scope>test</scope>
153     </dependency>
154   </dependencies>
155   <build>
156     <plugins>
157       <plugin>
158         <groupId>org.apache.maven.plugins</groupId>
159         <artifactId>maven-failsafe-plugin</artifactId>
160         <configuration>
161           <!-- Specific to generate mapping between tests and covered code -->
162           <!--<argLine>${jacoco.agent.it.arg}</argLine>-->
163           <properties>
164             <property>
165               <name>listener</name>
166               <value>org.sonar.java.jacoco.JUnitListener</value>
167             </property>
168           </properties>
169           <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
170           <!--<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>-->
171         </configuration>
172         <executions>
173           <execution>
174             <goals>
175               <goal>integration-test</goal>
176               <goal>verify</goal>
177             </goals>
178             <configuration>
179               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
180               <skipTests>${skip.integrationtest}</skipTests>
181             </configuration>
182           </execution>
183         </executions>
184       </plugin>
185       <plugin>
186         <groupId>org.apache.maven.plugins</groupId>
187         <artifactId>maven-surefire-plugin</artifactId>
188         <configuration>
189           <!-- Specific to generate mapping between tests and covered code -->
190           <!--<argLine>${jacoco.agent.ut.arg}</argLine>-->
191           <properties>
192             <property>
193               <name>listener</name>
194               <value>org.sonar.java.jacoco.JUnitListener</value>
195             </property>
196           </properties>
197           <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
198           <!--<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>-->
199         </configuration>
200       </plugin>
201       <!-- Needed if you use versionAsInProject() -->
202       <plugin>
203         <groupId>org.apache.servicemix.tooling</groupId>
204         <artifactId>depends-maven-plugin</artifactId>
205         <version>1.2</version>
206         <executions>
207           <execution>
208             <id>generate-depends-file</id>
209             <goals>
210               <goal>generate-depends-file</goal>
211             </goals>
212           </execution>
213         </executions>
214       </plugin>
215       <plugin>
216         <groupId>org.apache.maven.plugins</groupId>
217         <artifactId>maven-checkstyle-plugin</artifactId>
218         <configuration>
219           <configLocation>
220             ${project.basedir}/../../commons/parent/src/main/resources/ovsdb_checks.xml
221           </configLocation>
222           <includeTestSourceDirectory>true</includeTestSourceDirectory>
223           <failsOnError>true</failsOnError>
224           <includes>**/*.java,**/*.xml,**/*.ini,**/*.sh,**/*.bat</includes>
225           <excludes>**/yang/</excludes>
226         </configuration>
227       </plugin>
228       <plugin>
229         <groupId>org.jacoco</groupId>
230         <artifactId>jacoco-maven-plugin</artifactId>
231         <executions>
232           <execution>
233             <id>prepare-ut-agent</id>
234             <goals>
235               <goal>prepare-agent</goal>
236             </goals>
237             <configuration>
238               <destFile>${sonar.jacoco.reportPath}</destFile>
239             </configuration>
240           </execution>
241           <execution>
242             <id>prepare-it-agent</id>
243             <goals>
244               <goal>prepare-agent-integration</goal>
245             </goals>
246             <configuration>
247               <destFile>${sonar.jacoco.itReportPath}</destFile>
248             </configuration>
249           </execution>
250           <execution>
251             <id>default-report</id>
252             <goals>
253               <goal>report</goal>
254             </goals>
255             <configuration>
256               <dataFile>${sonar.jacoco.reportPath}</dataFile>
257             </configuration>
258           </execution>
259           <execution>
260             <id>default-report-integration</id>
261             <goals>
262               <goal>report-integration</goal>
263             </goals>
264             <configuration>
265               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
266             </configuration>
267           </execution>
268         </executions>
269       </plugin>
270     </plugins>
271   </build>
272   <profiles>
273     <profile>
274       <id>integrationtest</id>
275       <activation>
276         <activeByDefault>false</activeByDefault>
277       </activation>
278       <properties>
279         <skip.integrationtest>false</skip.integrationtest>
280       </properties>
281     </profile>
282   </profiles>
283 </project>