Fix checkstyle violations in ITs
[ovsdb.git] / commons / it / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright © 2015, 2016 Red Hat, Inc. 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"
10          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12   <modelVersion>4.0.0</modelVersion>
13
14   <parent>
15     <groupId>org.opendaylight.controller</groupId>
16     <artifactId>mdsal-it-parent</artifactId>
17     <version>1.8.0-SNAPSHOT</version>
18     <relativePath/>
19   </parent>
20
21   <groupId>org.opendaylight.ovsdb</groupId>
22   <artifactId>it</artifactId>
23   <version>1.7.0-SNAPSHOT</version>
24   <packaging>pom</packaging>
25   <!-- <name> formatting is used by autorelease to parse and notify projects on
26        build failure. Please do not modify this unless you have a good reason. -->
27   <name>ODL :: ovsdb :: ${project.artifactId}</name>
28   <properties>
29     <skip.surefire.tests>false</skip.surefire.tests>
30   </properties>
31
32   <profiles>
33     <profile>
34       <id>default</id>
35       <activation>
36         <activeByDefault>true</activeByDefault>
37       </activation>
38       <properties>
39         <skipITs>true</skipITs>
40       </properties>
41     </profile>
42     <profile>
43       <id>integrationtest</id>
44       <activation>
45         <activeByDefault>false</activeByDefault>
46       </activation>
47       <properties>
48         <skipITs>false</skipITs>
49         <skip.surefire.tests>true</skip.surefire.tests>
50         <skip.karaf.featureTest>true</skip.karaf.featureTest>
51         <maven.javadoc.skip>true</maven.javadoc.skip>
52         <maven.source.skip>true</maven.source.skip>
53         <checkstyle.skip>true</checkstyle.skip>
54         <findbugs.skip>true</findbugs.skip>
55         <pmd.skip>true</pmd.skip>
56         <cpd.skip>true</cpd.skip>
57         <maven.site.skip>true</maven.site.skip>
58         <invoker.skip>true</invoker.skip>
59         <enforcer.skip>true</enforcer.skip>
60       </properties>
61     </profile>
62   </profiles>
63
64   <dependencyManagement>
65     <dependencies>
66       <dependency>
67         <groupId>org.sonarsource.java</groupId>
68         <artifactId>sonar-jacoco-listeners</artifactId>
69         <version>${sonar-jacoco-listeners.version}</version>
70         <scope>test</scope>
71       </dependency>
72     </dependencies>
73   </dependencyManagement>
74
75   <build>
76     <plugins>
77       <plugin>
78         <groupId>org.apache.maven.plugins</groupId>
79         <artifactId>maven-checkstyle-plugin</artifactId>
80         <configuration>
81           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
82         </configuration>
83       </plugin>
84       <plugin>
85         <groupId>org.jacoco</groupId>
86         <artifactId>jacoco-maven-plugin</artifactId>
87       </plugin>
88       <plugin>
89         <groupId>org.apache.maven.plugins</groupId>
90         <artifactId>maven-failsafe-plugin</artifactId>
91         <configuration>
92           <properties>
93             <property>
94               <name>listener</name>
95               <value>org.sonar.java.jacoco.JUnitListener</value>
96             </property>
97           </properties>
98         </configuration>
99       </plugin>
100       <plugin>
101         <artifactId>maven-surefire-plugin</artifactId>
102         <configuration>
103           <skipTests>${skip.surefire.tests}</skipTests>
104         </configuration>
105       </plugin>
106       <plugin>
107         <artifactId>maven-antrun-plugin</artifactId>
108         <executions>
109           <execution>
110             <id>prep-jacoco-agent</id>
111             <phase>pre-integration-test</phase>
112             <goals>
113               <goal>run</goal>
114             </goals>
115             <configuration>
116               <target>
117                 <copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
118                       tofile="target/exam/jars/org.jacoco.agent.jar" />
119               </target>
120             </configuration>
121           </execution>
122         </executions>
123       </plugin>
124     </plugins>
125   </build>
126
127   <!--
128       Maven Site Configuration
129
130       The following configuration is necessary for maven-site-plugin to
131       correctly identify the correct deployment path for OpenDaylight Maven
132       sites.
133   -->
134   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
135
136   <distributionManagement>
137     <site>
138       <id>opendaylight-site</id>
139       <url>${nexus.site.url}/${project.artifactId}/</url>
140     </site>
141   </distributionManagement>
142 </project>