Merge "Enable NetVirt Maven site"
[netvirt.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2014 Red Hat, 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 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12   <modelVersion>4.0.0</modelVersion>
13
14   <parent>
15     <groupId>org.opendaylight.odlparent</groupId>
16     <artifactId>odlparent-lite</artifactId>
17     <version>1.7.0-SNAPSHOT</version>
18     <relativePath/>
19   </parent>
20
21   <groupId>org.opendaylight.netvirt</groupId>
22   <artifactId>netvirt</artifactId>
23   <version>1.3.0-SNAPSHOT</version>
24   <name>${project.artifactId}</name> <!-- Used by Sonar to set project name -->
25   <packaging>pom</packaging>
26   <description>The OVSDB Plugin integration project is a project for OpenDaylight that will implement the Open vSwitch Database RFC 7047 management protocol allowing the Southbound configuration of vSwitches and a network virtualization implementation.</description>
27   <licenses>
28     <license>
29       <name>Eclipse Public License v1.0</name>
30       <url>http://www.eclipse.org/legal/epl-v10.html</url>
31     </license>
32   </licenses>
33   <developers>
34     <developer>
35       <name>Sam Hague</name>
36       <email>shague@gmail.com</email>
37       <url>https://github.com/shague</url>
38     </developer>
39   </developers>
40   <scm>
41     <connection>scm:git:ssh://git.opendaylight.org:29418/netvirt.git</connection>
42     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/netvirt.git</developerConnection>
43     <tag>HEAD</tag>
44     <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
45   </scm>
46
47   <prerequisites>
48     <maven>3.1.1</maven>
49   </prerequisites>
50
51   <modules>
52     <module>commons</module>
53     <module>features</module>
54     <module>karaf</module>
55     <module>netvirt</module>
56     <module>openstack</module>
57     <module>netvirt-artifacts</module>
58     <module>ovsdb-ui</module>
59     <module>utils</module>
60     <module>vpnservice</module>
61   </modules>
62
63   <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
64   <build>
65     <plugins>
66       <plugin>
67         <groupId>org.apache.maven.plugins</groupId>
68         <artifactId>maven-deploy-plugin</artifactId>
69         <configuration>
70           <skip>true</skip>
71         </configuration>
72       </plugin>
73       <plugin>
74         <groupId>org.apache.maven.plugins</groupId>
75         <artifactId>maven-install-plugin</artifactId>
76         <configuration>
77           <skip>true</skip>
78         </configuration>
79       </plugin>
80     </plugins>
81   </build>
82
83   <profiles>
84     <profile>
85       <!--
86           This profile is to ensure we only build javadocs reports
87           when we plan to deploy Maven site for our project.
88       -->
89       <id>maven-site</id>
90       <activation>
91         <file>
92           <exists>${user.dir}/deploy-site.xml</exists>
93         </file>
94       </activation>
95
96       <build>
97         <plugins>
98           <plugin>
99             <groupId>org.apache.maven.plugins</groupId>
100             <artifactId>maven-javadoc-plugin</artifactId>
101             <inherited>false</inherited>
102             <executions>
103               <execution>
104                 <id>aggregate</id>
105                 <goals>
106                   <goal>aggregate</goal>
107                 </goals>
108                 <phase>package</phase>
109               </execution>
110             </executions>
111           </plugin>
112         </plugins>
113       </build>
114     </profile>
115   </profiles>
116
117   <!--
118       Maven Site Configuration
119
120       The following configuration is necessary for maven-site-plugin to
121       correctly identify the correct deployment path for OpenDaylight Maven
122       sites.
123   -->
124   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
125
126   <distributionManagement>
127     <site>
128       <id>opendaylight-site</id>
129       <url>${nexus.site.url}/</url>
130     </site>
131   </distributionManagement>
132 </project>