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