Change ut and surefire configuration back to default
[neutron.git] / parent / 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   <prerequisites>
5     <maven>3.0</maven>
6   </prerequisites>
7
8   <parent>
9     <groupId>org.opendaylight.odlparent</groupId>
10     <artifactId>odlparent</artifactId>
11     <version>1.6.0-SNAPSHOT</version>
12     <relativePath/>
13   </parent>
14
15   <groupId>org.opendaylight.neutron</groupId>
16   <artifactId>project-neutron-parent</artifactId>
17   <version>0.6.0-SNAPSHOT</version>
18   <packaging>pom</packaging>
19
20   <properties>
21     <aaa.version>0.2.0-SNAPSHOT</aaa.version>
22     <ietf-yang-types.version>2010.09.24.7-SNAPSHOT</ietf-yang-types.version>
23     <ietf-inet-types.version>2010.09.24.7-SNAPSHOT</ietf-inet-types.version>
24     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
25     <yang.binding.version>0.8.0-SNAPSHOT</yang.binding.version>
26     <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
27     <yang-ext.version>2013.09.07.7-SNAPSHOT</yang-ext.version>
28     <sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
29   </properties>
30   <scm>
31     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
32     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
33     <tag>HEAD</tag>
34   </scm>
35
36   <dependencyManagement>
37     <dependencies>
38       <dependency>
39         <groupId>org.opendaylight.yangtools</groupId>
40         <artifactId>yang-binding</artifactId>
41         <version>${yang.binding.version}</version>
42       </dependency>
43       <dependency>
44         <groupId>org.opendaylight.yangtools</groupId>
45         <artifactId>yang-common</artifactId>
46         <version>${yang.binding.version}</version>
47       </dependency>
48       <dependency>
49         <groupId>org.opendaylight.yangtools.model</groupId>
50         <artifactId>ietf-inet-types</artifactId>
51         <version>${ietf-inet-types.version}</version>
52       </dependency>
53       <dependency>
54         <groupId>org.opendaylight.yangtools.model</groupId>
55         <artifactId>ietf-yang-types</artifactId>
56         <version>${ietf-yang-types.version}</version>
57       </dependency>
58       <dependency>
59         <groupId>org.opendaylight.yangtools.model</groupId>
60         <artifactId>yang-ext</artifactId>
61         <version>${yang-ext.version}</version>
62       </dependency>
63     </dependencies>
64   </dependencyManagement>
65
66   <build>
67     <pluginManagement>
68       <plugins>
69         <plugin>
70           <groupId>org.jacoco</groupId>
71           <artifactId>jacoco-maven-plugin</artifactId>
72           <version>${jacoco.version}</version>
73         </plugin>
74         <plugin>
75           <groupId>org.apache.maven.plugins</groupId>
76           <artifactId>maven-source-plugin</artifactId>
77           <version>2.2.1</version>
78         </plugin>
79         <plugin>
80           <groupId>org.apache.maven.plugins</groupId>
81           <artifactId>maven-jar-plugin</artifactId>
82           <version>2.4</version>
83         </plugin>
84         <plugin>
85           <groupId>org.opendaylight.yangtools</groupId>
86           <artifactId>yang-maven-plugin</artifactId>
87           <version>${yangtools.version}</version>
88         </plugin>
89         <plugin>
90           <groupId>org.apache.felix</groupId>
91           <artifactId>maven-bundle-plugin</artifactId>
92           <version>${maven.bundle.version}</version>
93         </plugin>
94 <!--        <plugin>
95           <groupId>org.apache.maven.plugins</groupId>
96           <artifactId>maven-surefire-plugin</artifactId>
97           <version>${maven.surefire.version}</version>
98           <configuration>
99             <argLine>${surefireArgLine}</argLine>
100             <skipTests>${skip.unit.tests}</skipTests>
101             <excludes>
102                <exclude>**/IT*.java</exclude>
103             </excludes>
104           </configuration>
105         </plugin> -->
106       </plugins>
107     </pluginManagement>
108     <plugins>
109       <plugin>
110         <groupId>org.jacoco</groupId>
111         <artifactId>jacoco-maven-plugin</artifactId>
112         <!-- <configuration>
113           <includes>
114             <include>org.opendaylight.neutron.*</include>
115           </includes>
116         </configuration> -->
117         <executions>
118           <execution>
119             <id>pre-unit-test</id>
120             <goals>
121               <goal>prepare-agent</goal>
122             </goals>
123             <configuration>
124               <destFile>${sonar.jacoco.reportPath}</destFile>
125             </configuration>
126           </execution>
127           <execution>
128             <id>post-unit-test</id>
129             <goals>
130               <goal>report</goal>
131             </goals>
132             <configuration>
133                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
134             </configuration>
135           </execution>
136         </executions>
137       </plugin>
138       <plugin>
139         <groupId>org.apache.felix</groupId>
140         <artifactId>maven-bundle-plugin</artifactId>
141         <extensions>true</extensions>
142         <configuration>
143           <instructions>
144             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
145           </instructions>
146           <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
147         </configuration>
148       </plugin>
149       <plugin>
150         <groupId>org.apache.maven.plugins</groupId>
151         <artifactId>maven-compiler-plugin</artifactId>
152         <inherited>true</inherited>
153         <configuration>
154           <source>1.7</source>
155           <target>1.7</target>
156         </configuration>
157       </plugin>
158       <plugin>
159         <artifactId>maven-source-plugin</artifactId>
160         <executions>
161           <execution>
162             <id>attach-sources</id>
163             <phase>deploy</phase>
164             <goals>
165               <goal>jar-no-fork</goal>
166             </goals>
167           </execution>
168         </executions>
169       </plugin>
170     </plugins>
171   </build>
172 </project>