b9be2ef0217466a761d5ee219195b7ef69c97a51
[neutron.git] / integration / test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2018 Intel Corporation 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   <modelVersion>4.0.0</modelVersion>
11
12   <parent>
13     <groupId>org.opendaylight.controller</groupId>
14     <artifactId>mdsal-it-parent</artifactId>
15     <version>1.9.3-SNAPSHOT</version>
16     <relativePath/>
17   </parent>
18
19   <groupId>org.opendaylight.neutron</groupId>
20   <artifactId>integration-test</artifactId>
21   <version>0.12.3-SNAPSHOT</version>
22
23   <!-- <name> formatting is used by autorelease to parse and notify projects on
24        build failure. Please do not modify this unless you have a good reason. -->
25   <name>ODL :: neutron :: ${project.artifactId}</name>
26   <properties>
27     <skipITs>false</skipITs>
28     <karaf.distro.groupId>org.opendaylight.neutron</karaf.distro.groupId>
29     <karaf.distro.artifactId>neutron-karaf</karaf.distro.artifactId>
30     <karaf.distro.version>${project.version}</karaf.distro.version>
31     <karaf.distro.type>zip</karaf.distro.type>
32     <checkstyle.location>${project.parent.basedir}/src/main/resources</checkstyle.location>
33     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
34     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
35     <sonar.sources>pom.xml,target/generated-sources/dependency</sonar.sources>
36   </properties>
37   <dependencies>
38      <dependency>
39       <groupId>${project.groupId}</groupId>
40       <artifactId>integration-test-standalone</artifactId>
41       <version>${project.version}</version>
42     </dependency>
43     <dependency>
44       <groupId>${project.groupId}</groupId>
45       <artifactId>neutron-karaf</artifactId>
46       <version>${project.version}</version>
47       <type>zip</type>
48     </dependency>
49     <dependency>
50       <groupId>org.jacoco</groupId>
51       <artifactId>org.jacoco.agent</artifactId>
52       <version>${jacoco.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>com.google.code.gson</groupId>
56       <artifactId>gson</artifactId>
57     </dependency>
58   </dependencies>
59
60   <build>
61     <pluginManagement>
62       <plugins>
63          <plugin>
64           <artifactId>maven-checkstyle-plugin</artifactId>
65           <configuration>
66             <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
67             <consoleOutput>true</consoleOutput>
68             <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
69           </configuration>
70           <executions>
71             <execution>
72               <goals>
73                 <goal>check</goal>
74               </goals>
75               <phase>process-sources</phase>
76             </execution>
77           </executions>
78         </plugin>
79         <plugin>
80           <groupId>org.jacoco</groupId>
81           <artifactId>jacoco-maven-plugin</artifactId>
82           <version>${jacoco.version}</version>
83         </plugin>
84       </plugins>
85     </pluginManagement>
86     <plugins>
87       <plugin>
88         <groupId>org.ops4j.pax.exam</groupId>
89         <artifactId>maven-paxexam-plugin</artifactId>
90         <executions>
91           <execution>
92             <id>generate-config</id>
93             <goals>
94               <goal>generate-depends-file</goal>
95             </goals>
96           </execution>
97         </executions>
98       </plugin>
99       <plugin>
100         <artifactId>maven-antrun-plugin</artifactId>
101         <executions>
102           <execution>
103             <id>prep-jacoco-agent</id>
104             <phase>pre-integration-test</phase>
105             <goals>
106               <goal>run</goal>
107             </goals>
108             <configuration>
109               <target>
110                 <copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
111                       tofile="target/pax/jars/org.jacoco.agent.jar" />
112                 <copy todir="target/generated-sources/dependency" overwrite="true">
113                   <fileset dir="../../neutron-spi/src/main/java" casesensitive="yes" />
114                   <fileset dir="../../northbound-api/src/main/java" casesensitive="yes" />
115                   <fileset dir="../../transcriber/src/main/java" casesensitive="yes" />
116                   <fileset dir="../../neutron-logger/src/main/java" casesensitive="yes" />
117                 </copy>
118               </target>
119             </configuration>
120           </execution>
121           <execution>
122             <id>copyout-coverage-file</id>
123             <phase>post-integration-test</phase>
124             <goals>
125               <goal>run</goal>
126             </goals>
127             <configuration>
128               <target>
129                 <copy todir="${project.basedir}/target" flatten="true" overwrite="true">
130                   <fileset dir="target/pax" casesensitive="yes">
131                     <include name="**/jacoco-it.exec" />
132                   </fileset>
133                 </copy>
134               </target>
135             </configuration>
136           </execution>
137           <execution>
138             <id>remove-generated-sources</id>
139             <phase>verify</phase>
140             <goals>
141               <goal>run</goal>
142             </goals>
143             <configuration>
144               <target>
145                 <delete includeEmptyDirs="true">
146                   <fileset dir="target/generated-sources/dependency" includes="**/*" defaultexcludes="no"/>
147                 </delete>
148               </target>
149             </configuration>
150           </execution>
151         </executions>
152       </plugin>
153       <plugin>
154         <groupId>org.jacoco</groupId>
155         <artifactId>jacoco-maven-plugin</artifactId>
156         <executions>
157           <execution>
158             <id>post-integration-test</id>
159             <phase>post-integration-test</phase>
160             <goals>
161               <goal>report-integration</goal>
162             </goals>
163             <configuration>
164               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
165               <outputDirectory>${project.basedir}/target/site/jacoco-it</outputDirectory>
166             </configuration>
167           </execution>
168         </executions>
169       </plugin>
170     </plugins>
171   </build>
172   <scm>
173     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
174     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
175     <tag>HEAD</tag>
176     <url>https://wiki.opendaylight.org/view/NeutronNorthBound:Main</url>
177   </scm>
178 </project>