Add support for aggregate sonar reports
[bgpcep.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <modelVersion>4.0.0</modelVersion>
13     <scm>
14         <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
15         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
16         <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
17         <tag>HEAD</tag>
18     </scm>
19     <parent>
20         <groupId>org.opendaylight.odlparent</groupId>
21         <artifactId>odlparent-lite</artifactId>
22         <version>4.0.2</version>
23         <relativePath/>
24     </parent>
25
26     <groupId>org.opendaylight.bgpcep</groupId>
27     <artifactId>bgpcep-aggregator</artifactId>
28     <version>0.11.0-SNAPSHOT</version>
29     <packaging>pom</packaging>
30     <name>bgpcep</name> <!-- Used by Sonar to set project name -->
31     <description>BGPCEP top-level aggregator</description>
32
33     <modules>
34         <!-- Well-known -->
35         <module>artifacts</module>
36         <module>features</module>
37         <module>parent</module>
38
39         <!-- Utility parents -->
40         <module>binding-parent</module>
41         <module>testtool-parent</module>
42         <module>single-feature-parent</module>
43         <module>feature-repo-parent</module>
44
45         <!-- Common infra -->
46         <module>concepts</module>
47         <module>util</module>
48
49         <!-- Subsystems -->
50         <module>bgp</module>
51         <module>bmp</module>
52         <module>pcep</module>
53         <module>programming</module>
54         <module>rsvp</module>
55         <module>topology</module>
56         <module>config-loader</module>
57
58         <!--Test tools -->
59         <module>data-change-counter</module>
60         <module>testtool-util</module>
61
62         <!-- Minimal complete distribution -->
63         <module>distribution-karaf</module>
64     </modules>
65
66     <build>
67         <plugins>
68             <plugin>
69                 <artifactId>maven-deploy-plugin</artifactId>
70                 <configuration>
71                     <skip>true</skip>
72                 </configuration>
73             </plugin>
74             <plugin>
75                 <groupId>org.apache.maven.plugins</groupId>
76                 <artifactId>maven-javadoc-plugin</artifactId>
77                 <executions>
78                     <execution>
79                         <id>aggregate</id>
80                         <goals>
81                             <goal>aggregate</goal>
82                         </goals>
83                         <phase>site</phase>
84                     </execution>
85                 </executions>
86             </plugin>
87         </plugins>
88     </build>
89
90     <reporting>
91         <plugins>
92             <plugin>
93                 <groupId>org.apache.maven.plugins</groupId>
94                 <artifactId>maven-project-info-reports-plugin</artifactId>
95                 <reportSets>
96                     <reportSet>
97                         <reports>
98                             <report>dependency-info</report>
99                             <report>license</report>
100                         </reports>
101                     </reportSet>
102                 </reportSets>
103             </plugin>
104         </plugins>
105     </reporting>
106
107     <profiles>
108         <profile>
109             <id>karaf</id>
110             <activation>
111                 <activeByDefault>true</activeByDefault>
112             </activation>
113
114             <modules>
115                 <module>distribution-karaf</module>
116             </modules>
117         </profile>
118         <profile>
119             <id>sonar-jacoco-aggregate</id>
120             <activation>
121                 <property>
122                     <name>odl.jacoco.aggregateFile</name>
123                 </property>
124             </activation>
125             <build>
126                 <plugins>
127                     <plugin>
128                         <groupId>org.jacoco</groupId>
129                         <artifactId>jacoco-maven-plugin</artifactId>
130                         <executions>
131                             <execution>
132                                 <id>merge</id>
133                                 <goals>
134                                     <goal>merge</goal>
135                                 </goals>
136                                 <phase>generate-resources</phase>
137                                 <configuration>
138                                     <destFile>${odl.jacoco.aggregateFile}</destFile>
139                                     <fileSets>
140                                         <fileSet>
141                                             <directory>${project.basedir}</directory>
142                                             <includes>
143                                                 <include>**/target/code-coverage/*.exec</include>
144                                             </includes>
145                                         </fileSet>
146                                     </fileSets>
147                                 </configuration>
148                             </execution>
149                         </executions>
150                     </plugin>
151                 </plugins>
152             </build>
153         </profile>
154     </profiles>
155 </project>