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