Attach aggragate javadocs to aggregator
[mdsal.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     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent-lite</artifactId>
15         <version>4.0.7</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.mdsal</groupId>
21     <artifactId>mdsal-agreggator</artifactId>
22     <version>3.0.4-SNAPSHOT</version>
23     <packaging>pom</packaging>
24     <name>md-sal</name> <!-- Used by Sonar to set project name -->
25
26     <modules>
27         <module>artifacts</module>
28         <module>common</module>
29         <module>features</module>
30         <module>dom</module>
31         <module>binding</module>
32         <module>binding2</module>
33         <module>model</module>
34         <module>model-binding2</module>
35         <module>entityownership</module>
36         <module>singleton-service</module>
37         <module>trace</module>
38     </modules>
39
40     <profiles>
41         <profile>
42             <id>aggregate-javadoc</id>
43             <activation>
44                 <activeByDefault>true</activeByDefault>
45             </activation>
46             <build>
47                 <plugins>
48                     <plugin>
49                         <artifactId>maven-javadoc-plugin</artifactId>
50                         <executions>
51                             <execution>
52                                 <id>aggregate</id>
53                                 <phase>package</phase>
54                                 <goals>
55                                     <goal>aggregate-jar</goal>
56                                 </goals>
57                             </execution>
58                         </executions>
59                     </plugin>
60                 </plugins>
61             </build>
62         </profile>
63         <profile>
64             <id>sonar-jacoco-aggregate</id>
65             <activation>
66                 <property>
67                     <name>odl.jacoco.aggregateFile</name>
68                 </property>
69             </activation>
70             <build>
71                 <plugins>
72                     <plugin>
73                         <groupId>org.jacoco</groupId>
74                         <artifactId>jacoco-maven-plugin</artifactId>
75                         <executions>
76                             <execution>
77                                 <id>merge</id>
78                                 <goals>
79                                     <goal>merge</goal>
80                                 </goals>
81                                 <phase>generate-resources</phase>
82                                 <configuration>
83                                     <destFile>${odl.jacoco.aggregateFile}</destFile>
84                                     <fileSets>
85                                         <fileSet>
86                                             <directory>${project.basedir}</directory>
87                                             <includes>
88                                                 <include>**/target/code-coverage/*.exec</include>
89                                             </includes>
90                                         </fileSet>
91                                     </fileSets>
92                                 </configuration>
93                             </execution>
94                         </executions>
95                     </plugin>
96                 </plugins>
97             </build>
98         </profile>
99     </profiles>
100
101     <scm>
102         <connection>scm:git:ssh://git.opendaylight.org:29418/mdsal.git</connection>
103         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/mdsal.git</developerConnection>
104         <url>https://wiki.opendaylight.org/view/MD-SAL:Main</url>
105         <tag>HEAD</tag>
106     </scm>
107 </project>