Bump versions by x.y.(z+1)
[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.7.5-SNAPSHOT</version>
8     <relativePath/>
9   </parent>
10
11   <groupId>org.opendaylight.neutron</groupId>
12   <artifactId>integration-test</artifactId>
13   <version>0.7.5-SNAPSHOT</version>
14   <packaging>jar</packaging>
15
16   <properties>
17     <checkstyle.location>${project.parent.basedir}/src/main/resources</checkstyle.location>
18     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
19     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
20     <sonar.sources>pom.xml,target/generated-sources/dependency</sonar.sources>
21   </properties>
22   <dependencies>
23     <dependency>
24       <groupId>org.opendaylight.neutron</groupId>
25       <artifactId>features-neutron</artifactId>
26       <version>${project.version}</version>
27       <classifier>features</classifier>
28       <type>xml</type>
29     </dependency>
30     <dependency>
31       <groupId>org.opendaylight.neutron</groupId>
32       <artifactId>neutron-karaf</artifactId>
33       <version>${project.version}</version>
34       <type>zip</type>
35     </dependency>
36     <dependency>
37       <groupId>org.jacoco</groupId>
38       <artifactId>org.jacoco.agent</artifactId>
39       <version>${jacoco.version}</version>
40     </dependency>
41     <dependency>
42       <groupId>com.google.code.gson</groupId>
43       <artifactId>gson</artifactId>
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-logger</artifactId>
72                   <version>${project.version}</version>
73                 </artifactItem>
74                 <artifactItem>
75                   <groupId>${project.groupId}</groupId>
76                   <artifactId>neutron-spi</artifactId>
77                   <version>${project.version}</version>
78                 </artifactItem>
79                 <artifactItem>
80                   <groupId>${project.groupId}</groupId>
81                   <artifactId>northbound-api</artifactId>
82                   <version>${project.version}</version>
83                 </artifactItem>
84                 <artifactItem>
85                   <groupId>${project.groupId}</groupId>
86                   <artifactId>transcriber</artifactId>
87                   <version>${project.version}</version>
88                 </artifactItem>
89               </artifactItems>
90               <outputDirectory>target/classes</outputDirectory>
91             </configuration>
92           </execution>
93         </executions>
94       </plugin>
95       <plugin>
96         <groupId>org.ops4j.pax.exam</groupId>
97         <artifactId>maven-paxexam-plugin</artifactId>
98         <executions>
99           <execution>
100             <id>generate-config</id>
101             <goals>
102               <goal>generate-depends-file</goal>
103             </goals>
104           </execution>
105         </executions>
106       </plugin>
107       <plugin>
108         <artifactId>maven-failsafe-plugin</artifactId>
109         <version>${failsafe.version}</version>
110         <executions>
111           <execution>
112             <id>integration-tests</id>
113             <phase>integration-test</phase>
114             <goals>
115               <goal>integration-test</goal>
116               <goal>verify</goal>
117             </goals>
118             <configuration>
119               <argLine>${failsafeArgLine}</argLine>
120             </configuration>
121           </execution>
122         </executions>
123       </plugin>
124       <plugin>
125         <artifactId>maven-antrun-plugin</artifactId>
126         <executions>
127           <execution>
128             <id>prep-jacoco-agent</id>
129             <phase>pre-integration-test</phase>
130             <goals>
131               <goal>run</goal>
132             </goals>
133             <configuration>
134               <target>
135                 <copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
136                       tofile="target/pax/jars/org.jacoco.agent.jar" />
137                 <copy todir="target/generated-sources/dependency" overwrite="true">
138                   <fileset dir="../../neutron-spi/src/main/java" casesensitive="yes" />
139                   <fileset dir="../../northbound-api/src/main/java" casesensitive="yes" />
140                   <fileset dir="../../transcriber/src/main/java" casesensitive="yes" />
141                 </copy>
142               </target>
143             </configuration>
144           </execution>
145           <execution>
146             <id>copyout-coverage-file</id>
147             <phase>post-integration-test</phase>
148             <goals>
149               <goal>run</goal>
150             </goals>
151             <configuration>
152               <target>
153                 <copy todir="${project.basedir}/target" flatten="true" overwrite="true">
154                   <fileset dir="target/pax" casesensitive="yes">
155                     <include name="**/jacoco-it.exec" />
156                   </fileset>
157                 </copy>
158               </target>
159             </configuration>
160           </execution>
161           <execution>
162             <id>remove-generated-sources</id>
163             <phase>verify</phase>
164             <goals>
165               <goal>run</goal>
166             </goals>
167             <configuration>
168               <target>
169                 <delete includeEmptyDirs="true">
170                   <fileset dir="target/generated-sources/dependency" includes="**/*" defaultexcludes="no"/>
171                 </delete>
172               </target>
173             </configuration>
174           </execution>
175         </executions>
176       </plugin>
177       <plugin>
178         <groupId>org.jacoco</groupId>
179         <artifactId>jacoco-maven-plugin</artifactId>
180         <executions>
181           <execution>
182             <id>post-integration-test</id>
183             <phase>post-integration-test</phase>
184             <goals>
185               <goal>report-integration</goal>
186             </goals>
187             <configuration>
188               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
189               <outputDirectory>${project.basedir}/target/site/jacoco-it</outputDirectory>
190             </configuration>
191           </execution>
192         </executions>
193       </plugin>
194     </plugins>
195   </build>
196   <scm>
197     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
198     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
199     <tag>HEAD</tag>
200     <url>https://wiki.opendaylight.org/view/NeutronNorthBound:Main</url>
201   </scm>
202
203   <!--
204       Maven Site Configuration
205
206       The following configuration is necessary for maven-site-plugin to
207       correctly identify the correct deployment path for OpenDaylight Maven
208       sites.
209   -->
210   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
211
212   <distributionManagement>
213     <site>
214       <id>opendaylight-site</id>
215       <url>${nexus.site.url}/${project.artifactId}/</url>
216     </site>
217   </distributionManagement>
218 </project>