ded18f1e5d18ce091aecdab0a3614308a284712d
[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   <properties>
17     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
18     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
19     <sonar.sources>pom.xml,target/generated-sources/dependency</sonar.sources>
20   </properties>
21   <dependencies>
22     <dependency>
23       <groupId>org.opendaylight.neutron</groupId>
24       <artifactId>features-neutron</artifactId>
25       <version>${project.version}</version>
26       <classifier>features</classifier>
27       <type>xml</type>
28     </dependency>
29     <dependency>
30       <groupId>${project.groupId}</groupId>
31       <artifactId>dummyprovider</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.neutron</groupId>
36       <artifactId>neutron-karaf</artifactId>
37       <version>${project.version}</version>
38       <type>zip</type>
39     </dependency>
40     <dependency>
41       <groupId>org.jacoco</groupId>
42       <artifactId>org.jacoco.agent</artifactId>
43       <version>${jacoco.version}</version>
44     </dependency>
45   </dependencies>
46
47   <build>
48     <pluginManagement>
49       <plugins>
50         <plugin>
51           <groupId>org.jacoco</groupId>
52           <artifactId>jacoco-maven-plugin</artifactId>
53           <version>${jacoco.version}</version>
54         </plugin>
55       </plugins>
56     </pluginManagement>
57     <plugins>
58       <plugin>
59         <groupId>org.apache.maven.plugins</groupId>
60         <artifactId>maven-dependency-plugin</artifactId>
61         <executions>
62           <execution>
63             <id>unpack-classes</id>
64             <goals>
65               <goal>unpack</goal>
66             </goals>
67             <configuration>
68               <artifactItems>
69                 <artifactItem>
70                   <groupId>${project.groupId}</groupId>
71                   <artifactId>neutron-spi</artifactId>
72                   <version>${project.version}</version>
73                 </artifactItem>
74                 <artifactItem>
75                   <groupId>${project.groupId}</groupId>
76                   <artifactId>northbound-api</artifactId>
77                   <version>${project.version}</version>
78                 </artifactItem>
79                 <artifactItem>
80                   <groupId>${project.groupId}</groupId>
81                   <artifactId>transcriber</artifactId>
82                   <version>${project.version}</version>
83                 </artifactItem>
84               </artifactItems>
85               <outputDirectory>target/classes</outputDirectory>
86             </configuration>
87           </execution>
88         </executions>
89       </plugin>
90       <plugin>
91         <groupId>org.ops4j.pax.exam</groupId>
92         <artifactId>maven-paxexam-plugin</artifactId>
93         <executions>
94           <execution>
95             <id>generate-config</id>
96             <goals>
97               <goal>generate-depends-file</goal>
98             </goals>
99           </execution>
100         </executions>
101       </plugin>
102       <plugin>
103         <artifactId>maven-failsafe-plugin</artifactId>
104         <version>${failsafe.version}</version>
105         <executions>
106           <execution>
107             <id>integration-tests</id>
108             <phase>integration-test</phase>
109             <goals>
110               <goal>integration-test</goal>
111               <goal>verify</goal>
112             </goals>
113             <configuration>
114               <argLine>${failsafeArgLine}</argLine>
115             </configuration>
116           </execution>
117         </executions>
118       </plugin>
119       <plugin>
120         <artifactId>maven-antrun-plugin</artifactId>
121         <executions>
122           <execution>
123             <id>prep-jacoco-agent</id>
124             <phase>pre-integration-test</phase>
125             <goals>
126               <goal>run</goal>
127             </goals>
128             <configuration>
129               <target>
130                 <copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
131                       tofile="target/pax/jars/org.jacoco.agent.jar" />
132                 <copy todir="target/generated-sources/dependency" overwrite="true">
133                   <fileset dir="../../neutron-spi/src/main/java" casesensitive="yes" />
134                   <fileset dir="../../northbound-api/src/main/java" casesensitive="yes" />
135                   <fileset dir="../../transcriber/src/main/java" casesensitive="yes" />
136                 </copy>
137               </target>
138             </configuration>
139           </execution>
140           <execution>
141             <id>copyout-coverage-file</id>
142             <phase>post-integration-test</phase>
143             <goals>
144               <goal>run</goal>
145             </goals>
146             <configuration>
147               <target>
148                 <copy todir="${project.build.directory}" flatten="true" overwrite="true">
149                   <fileset dir="target/pax" casesensitive="yes">
150                     <include name="**/jacoco-it.exec" />
151                   </fileset>
152                 </copy>
153               </target>
154             </configuration>
155           </execution>
156         </executions>
157       </plugin>
158       <plugin>
159         <groupId>org.jacoco</groupId>
160         <artifactId>jacoco-maven-plugin</artifactId>
161         <executions>
162           <execution>
163             <id>post-integration-test</id>
164             <phase>post-integration-test</phase>
165             <goals>
166               <goal>report-integration</goal>
167             </goals>
168             <configuration>
169               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
170               <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
171             </configuration>
172           </execution>
173         </executions>
174       </plugin>
175     </plugins>
176   </build>
177   <scm>
178     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
179     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
180     <tag>HEAD</tag>
181     <url>https://wiki.opendaylight.org/view/NeutronNorthBound:Main</url>
182   </scm>
183 </project>