Clean up IT and address Bug 3812
[neutron.git] / integration / test / 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   <parent>
5     <groupId>org.opendaylight.odlparent</groupId>
6     <artifactId>features-parent</artifactId>
7     <version>1.6.0-SNAPSHOT</version>
8     <relativePath/>
9   </parent>
10
11   <groupId>org.opendaylight.neutron</groupId>
12   <artifactId>integration-test</artifactId>
13   <version>0.6.0-SNAPSHOT</version>
14   <packaging>jar</packaging>
15
16   <dependencies>
17     <dependency>
18       <groupId>org.opendaylight.neutron</groupId>
19       <artifactId>features-neutron</artifactId>
20       <version>${project.version}</version>
21       <classifier>features</classifier>
22       <type>xml</type>
23     </dependency>
24     <dependency>
25       <groupId>${project.groupId}</groupId>
26       <artifactId>dummyprovider</artifactId>
27       <version>${project.version}</version>
28     </dependency>
29     <dependency>
30       <groupId>org.opendaylight.neutron</groupId>
31       <artifactId>neutron-karaf</artifactId>
32       <version>${project.version}</version>
33       <type>zip</type>
34     </dependency>
35     <dependency>
36       <groupId>org.jacoco</groupId>
37       <artifactId>org.jacoco.agent</artifactId>
38       <version>${jacoco.version}</version>
39     </dependency>
40   </dependencies>
41
42   <build>
43     <pluginManagement>
44       <plugins>
45         <plugin>
46           <groupId>org.jacoco</groupId>
47           <artifactId>jacoco-maven-plugin</artifactId>
48           <version>${jacoco.version}</version>
49         </plugin>
50       </plugins>
51     </pluginManagement>
52     <plugins>
53       <plugin>
54         <groupId>org.ops4j.pax.exam</groupId>
55         <artifactId>maven-paxexam-plugin</artifactId>
56         <executions>
57           <execution>
58             <id>generate-config</id>
59             <goals>
60               <goal>generate-depends-file</goal>
61             </goals>
62           </execution>
63         </executions>
64       </plugin>
65       <plugin>
66         <artifactId>maven-failsafe-plugin</artifactId>
67         <version>${failsafe.version}</version>
68         <executions>
69           <execution>
70             <id>integration-tests</id>
71             <phase>integration-test</phase>
72             <goals>
73               <goal>integration-test</goal>
74               <goal>verify</goal>
75             </goals>
76             <configuration>
77               <argLine>${failsafeArgLine}</argLine>
78               <skipTests>${skip.integration.tests}</skipTests>
79             </configuration>
80           </execution>
81         </executions>
82       </plugin>
83       <plugin>
84         <artifactId>maven-antrun-plugin</artifactId>
85         <executions>
86           <execution>
87             <id>prep-jacoco-agent</id>
88             <phase>pre-integration-test</phase>
89             <goals>
90               <goal>run</goal>
91             </goals>
92             <configuration>
93               <target>
94                 <copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
95                       tofile="target/pax/jars/org.jacoco.agent.jar" />
96               </target>
97             </configuration>
98           </execution>
99           <execution>
100             <id>copyout-coverage-file</id>
101             <phase>post-integration-test</phase>
102             <goals>
103               <goal>run</goal>
104             </goals>
105             <configuration>
106               <target>
107                 <copy todir="${project.build.directory}/coverage-reports" flatten="true" overwrite="true">
108                   <fileset dir="target" casesensitive="yes">
109                     <include name="**/jacoco-it.exec" />
110                   </fileset>
111                 </copy>
112               </target>
113             </configuration>
114           </execution>
115         </executions>
116       </plugin>
117       <plugin>
118         <groupId>org.jacoco</groupId>
119         <artifactId>jacoco-maven-plugin</artifactId>
120         <configuration>
121           <includes>
122             <include>org.opendaylight.neutron.*</include>
123           </includes>
124         </configuration>
125         <executions>
126           <execution>
127             <id>post-integration-test</id>
128             <phase>post-integration-test</phase>
129             <goals>
130               <goal>report</goal>
131             </goals>
132             <configuration>
133               <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
134               <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
135             </configuration>
136           </execution>
137         </executions>
138       </plugin>
139     </plugins>
140   </build>  
141   <scm>
142     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
143     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
144     <tag>HEAD</tag>
145     <url>https://wiki.opendaylight.org/view/NeutronNorthBound:Main</url>
146   </scm>
147 </project>