41822baef4406155a8b9294012975acf461311e6
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
7 -->
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</artifactId>
14     <version>1.7.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>${groupId}</groupId>
19   <artifactId>${artifactId}-aggregator</artifactId>
20   <version>${version}</version>
21   <name>${artifactId}</name>
22   <packaging>pom</packaging>
23
24   <prerequisites>
25     <maven>3.1.1</maven>
26   </prerequisites>
27
28   <scm>
29     <connection>scm:git:ssh://git.opendaylight.org:29418/${artifactId}.git</connection>
30     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/${artifactId}.git</developerConnection>
31     <tag>HEAD</tag>
32     <url>https://wiki.opendaylight.org/view/${artifactId}:Main</url>
33   </scm>
34
35   <modules>
36     <module>api</module>
37     <module>impl</module>
38     <module>karaf</module>
39     <module>features</module>
40     <module>artifacts</module>
41     <module>it</module>
42   </modules>
43
44   <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
45   <build>
46     <plugins>
47       <plugin>
48         <groupId>org.apache.maven.plugins</groupId>
49         <artifactId>maven-deploy-plugin</artifactId>
50         <configuration>
51           <skip>true</skip>
52         </configuration>
53       </plugin>
54       <plugin>
55         <groupId>org.apache.maven.plugins</groupId>
56         <artifactId>maven-install-plugin</artifactId>
57         <configuration>
58           <skip>true</skip>
59         </configuration>
60       </plugin>
61     </plugins>
62   </build>
63
64   <profiles>
65     <profile>
66       <!--
67           This profile is to ensure we only build javadocs reports
68           when we plan to deploy Maven site for our project.
69       -->
70       <id>maven-site</id>
71       <activation>
72         <file>
73           <exists>${user.dir}/deploy-site.xml</exists>
74         </file>
75       </activation>
76
77       <build>
78         <plugins>
79           <plugin>
80             <groupId>org.apache.maven.plugins</groupId>
81             <artifactId>maven-javadoc-plugin</artifactId>
82             <inherited>false</inherited>
83             <executions>
84               <execution>
85                 <id>aggregate</id>
86                 <goals>
87                   <goal>aggregate</goal>
88                 </goals>
89                 <phase>package</phase>
90             </execution>
91             </executions>
92           </plugin>
93         </plugins>
94       </build>
95     </profile>
96   </profiles>
97
98   <!--
99       Maven Site Configuration
100
101       The following configuration is necessary for maven-site-plugin to
102       correctly identify the correct deployment path for OpenDaylight Maven
103       sites.
104   -->
105   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
106
107   <distributionManagement>
108     <site>
109       <id>opendaylight-site</id>
110       <url>${nexus.site.url}/</url>
111     </site>
112   </distributionManagement>
113 </project>