Merge "Maven site configuration for OpenDaylight"
[odlparent.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3  Copyright (c) 2014, 2015 Cisco Systems, 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 --><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">
9     <modelVersion>4.0.0</modelVersion>
10
11     <parent>
12         <groupId>org.opendaylight.odlparent</groupId>
13         <artifactId>odlparent-lite</artifactId>
14         <version>1.6.0-SNAPSHOT</version>
15         <relativePath>odlparent-lite</relativePath>
16     </parent>
17
18     <groupId>org.opendaylight.odlparent</groupId>
19     <artifactId>odlparent-aggregator</artifactId>
20     <version>1.6.0-SNAPSHOT</version>
21     <name>odlparent</name> <!-- Used by Sonar to set project name -->
22     <packaging>pom</packaging>
23
24     <scm>
25         <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
27         <tag>HEAD</tag>
28         <url>https://wiki.opendaylight.org/view/ODL_Root_Parent:Main</url>
29     </scm>
30
31     <modules>
32         <!-- odlparent tools -->
33         <module>checkstyle</module>
34         <module>license</module>
35
36         <!-- odlparent core -->
37         <module>bundle-parent</module>
38         <module>features-parent</module>
39         <module>features-test</module>
40         <module>odlparent</module>
41         <module>odlparent-lite</module>
42         <module>karaf-plugin</module>
43     </modules>
44
45     <build>
46         <plugins>
47             <plugin>
48                 <groupId>org.apache.maven.plugins</groupId>
49                 <artifactId>maven-deploy-plugin</artifactId>
50                 <version>2.8.2</version>
51                 <configuration>
52                     <skip>true</skip>
53                 </configuration>
54             </plugin>
55         </plugins>
56     </build>
57
58     <profiles>
59         <profile>
60             <!--
61                 This profile is to ensure we only build javadocs reports
62                 when we plan to deploy Maven site for our project.
63             -->
64             <id>maven-site</id>
65             <activation>
66                 <file>
67                     <exists>${user.dir}/deploy-site.xml</exists>
68                 </file>
69             </activation>
70
71             <build>
72                 <plugins>
73                     <plugin>
74                         <groupId>org.apache.maven.plugins</groupId>
75                         <artifactId>maven-javadoc-plugin</artifactId>
76                         <inherited>false</inherited>
77                         <executions>
78                             <execution>
79                                 <id>aggregate</id>
80                                 <goals>
81                                     <goal>aggregate</goal>
82                                 </goals>
83                                 <phase>package</phase>
84                             </execution>
85                         </executions>
86                     </plugin>
87                 </plugins>
88             </build>
89         </profile>
90     </profiles>
91
92     <!--
93         Maven Site Configuration
94
95         The following configuration is necessary for maven-site-plugin to
96         correctly identify the correct deployment path for OpenDaylight Maven
97         sites.
98     -->
99     <url>${odl.site.url}/${project.groupId}/${stream}/</url>
100
101     <distributionManagement>
102         <site>
103             <id>opendaylight-site</id>
104             <url>${nexus.site.url}/</url>
105         </site>
106     </distributionManagement>
107 </project>