Merge "Use the memorized service reference"
[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     <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
45     <root.directory>${env.PWD}</root.directory>
46     <sonar.jacoco.itReportPath>${root.directory}/target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
47   </properties>
48   <dependencyManagement>
49     <dependencies>
50       <dependency>
51         <groupId>${project.groupId}</groupId>
52         <artifactId>southbound-artifacts</artifactId>
53         <version>${project.version}</version>
54         <type>pom</type>
55         <scope>import</scope>
56       </dependency>
57       <dependency>
58         <groupId>org.opendaylight.controller</groupId>
59         <artifactId>config-artifacts</artifactId>
60         <version>0.4.0-SNAPSHOT</version>
61         <type>pom</type>
62         <scope>import</scope>
63       </dependency>
64       <dependency>
65         <groupId>org.opendaylight.controller</groupId>
66         <artifactId>mdsal-artifacts</artifactId>
67         <version>${mdsal.version}</version>
68         <type>pom</type>
69         <scope>import</scope>
70       </dependency>
71     </dependencies>
72   </dependencyManagement>
73   <dependencies>
74     <dependency>
75       <groupId>org.opendaylight.controller</groupId>
76       <artifactId>sal-binding-api</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.opendaylight.controller</groupId>
80       <artifactId>sal-common-api</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>${project.groupId}</groupId>
84       <artifactId>southbound-features</artifactId>
85       <classifier>features</classifier>
86       <type>xml</type>
87     </dependency>
88     <dependency>
89       <groupId>org.opendaylight.controller</groupId>
90       <artifactId>config-util</artifactId>
91     </dependency>
92     <!-- Dependencies for pax exam karaf container -->
93     <dependency>
94       <groupId>org.ops4j.pax.exam</groupId>
95       <artifactId>pax-exam-container-karaf</artifactId>
96       <scope>compile</scope>
97     </dependency>
98     <dependency>
99       <groupId>org.ops4j.pax.exam</groupId>
100       <artifactId>pax-exam-junit4</artifactId>
101       <scope>compile</scope>
102     </dependency>
103     <dependency>
104       <groupId>org.ops4j.pax.exam</groupId>
105       <artifactId>pax-exam</artifactId>
106       <scope>compile</scope>
107     </dependency>
108     <dependency>
109       <groupId>org.ops4j.pax.url</groupId>
110       <artifactId>pax-url-aether</artifactId>
111       <scope>compile</scope>
112     </dependency>
113     <dependency>
114       <groupId>javax.inject</groupId>
115       <artifactId>javax.inject</artifactId>
116       <version>1</version>
117       <scope>compile</scope>
118     </dependency>
119     <dependency>
120       <groupId>org.apache.karaf.features</groupId>
121       <artifactId>org.apache.karaf.features.core</artifactId>
122       <version>${karaf.version}</version>
123       <scope>compile</scope>
124     </dependency>
125     <dependency>
126       <groupId>org.osgi</groupId>
127       <artifactId>org.osgi.core</artifactId>
128       <scope>compile</scope>
129     </dependency>
130     <dependency>
131       <groupId>junit</groupId>
132       <artifactId>junit</artifactId>
133       <scope>compile</scope>
134     </dependency>
135     <dependency>
136       <groupId>org.slf4j</groupId>
137       <artifactId>slf4j-simple</artifactId>
138       <scope>test</scope>
139     </dependency>
140     <dependency>
141       <groupId>org.codehaus.sonar-plugins.java</groupId>
142       <artifactId>sonar-jacoco-listeners</artifactId>
143       <version>${sonar-jacoco-listeners.version}</version>
144       <scope>test</scope>
145     </dependency>
146     <!-- AbstractConfigTestBase::getKarafDistro() needs this to find its version -->
147     <dependency>
148       <groupId>org.opendaylight.ovsdb</groupId>
149       <artifactId>southbound-karaf</artifactId>
150       <version>${project.version}</version>
151       <scope>test</scope>
152     </dependency>
153   </dependencies>
154   <build>
155     <plugins>
156       <plugin>
157         <groupId>org.apache.maven.plugins</groupId>
158         <artifactId>maven-failsafe-plugin</artifactId>
159         <configuration>
160           <!-- Specific to generate mapping between tests and covered code -->
161           <!--<argLine>${jacoco.agent.it.arg}</argLine>-->
162           <properties>
163             <property>
164               <name>listener</name>
165               <value>org.sonar.java.jacoco.JUnitListener</value>
166             </property>
167           </properties>
168           <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
169           <!--<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>-->
170         </configuration>
171         <executions>
172           <execution>
173             <goals>
174               <goal>integration-test</goal>
175               <goal>verify</goal>
176             </goals>
177             <configuration>
178               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
179               <skipTests>${skip.integrationtest}</skipTests>
180             </configuration>
181           </execution>
182         </executions>
183       </plugin>
184       <plugin>
185         <groupId>org.apache.maven.plugins</groupId>
186         <artifactId>maven-surefire-plugin</artifactId>
187         <configuration>
188           <!-- Specific to generate mapping between tests and covered code -->
189           <!--<argLine>${jacoco.agent.ut.arg}</argLine>-->
190           <properties>
191             <property>
192               <name>listener</name>
193               <value>org.sonar.java.jacoco.JUnitListener</value>
194             </property>
195           </properties>
196           <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
197           <!--<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>-->
198         </configuration>
199       </plugin>
200       <!-- Needed if you use versionAsInProject() -->
201       <plugin>
202         <groupId>org.apache.servicemix.tooling</groupId>
203         <artifactId>depends-maven-plugin</artifactId>
204         <version>1.2</version>
205         <executions>
206           <execution>
207             <id>generate-depends-file</id>
208             <goals>
209               <goal>generate-depends-file</goal>
210             </goals>
211           </execution>
212         </executions>
213       </plugin>
214       <plugin>
215         <groupId>org.apache.maven.plugins</groupId>
216         <artifactId>maven-checkstyle-plugin</artifactId>
217         <configuration>
218           <configLocation>
219             ${project.basedir}/../../commons/parent/src/main/resources/ovsdb_checks.xml
220           </configLocation>
221           <includeTestSourceDirectory>true</includeTestSourceDirectory>
222           <failsOnError>true</failsOnError>
223           <includes>**/*.java,**/*.xml,**/*.ini,**/*.sh,**/*.bat</includes>
224           <excludes>**/yang/</excludes>
225         </configuration>
226       </plugin>
227       <plugin>
228         <groupId>org.jacoco</groupId>
229         <artifactId>jacoco-maven-plugin</artifactId>
230         <executions>
231           <execution>
232             <id>prepare-ut-agent</id>
233             <goals>
234               <goal>prepare-agent</goal>
235             </goals>
236             <configuration>
237               <destFile>${sonar.jacoco.reportPath}</destFile>
238             </configuration>
239           </execution>
240           <execution>
241             <id>prepare-it-agent</id>
242             <goals>
243               <goal>prepare-agent-integration</goal>
244             </goals>
245             <configuration>
246               <destFile>${sonar.jacoco.itReportPath}</destFile>
247             </configuration>
248           </execution>
249           <execution>
250             <id>default-report</id>
251             <goals>
252               <goal>report</goal>
253             </goals>
254             <configuration>
255               <dataFile>${sonar.jacoco.reportPath}</dataFile>
256             </configuration>
257           </execution>
258           <execution>
259             <id>default-report-integration</id>
260             <goals>
261               <goal>report-integration</goal>
262             </goals>
263             <configuration>
264               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
265             </configuration>
266           </execution>
267         </executions>
268       </plugin>
269     </plugins>
270   </build>
271   <profiles>
272     <profile>
273       <id>default</id>
274       <activation>
275         <activeByDefault>true</activeByDefault>
276       </activation>
277       <properties>
278         <skipITs>true</skipITs>
279       </properties>
280     </profile>
281     <profile>
282       <id>integrationtest</id>
283       <activation>
284         <activeByDefault>false</activeByDefault>
285       </activation>
286       <properties>
287         <skipITs>false</skipITs>
288       </properties>
289     </profile>
290   </profiles>
291 </project>