add a common folder for mutualized functions
[transportpce.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright © 2016 Orange 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>2.0.4</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>org.opendaylight.transportpce</groupId>
19   <artifactId>transportpce-aggregator</artifactId>
20   <version>0.2.0</version>
21   <name>transportpce</name>
22   <packaging>pom</packaging>
23
24   <scm>
25     <connection>scm:git:ssh://git.opendaylight.org:29418/transportpce.git</connection>
26     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/transportpce.git</developerConnection>
27     <tag>HEAD</tag>
28     <url>https://wiki.opendaylight.org/view/transportpce:Main</url>
29   </scm>
30
31   <modules>
32     <module>artifacts</module>
33     <module>api</module>
34     <module>common</module>
35     <module>ordmodels</module>
36     <module>renderer</module>
37     <module>olm</module>
38     <module>tests</module>
39     <module>servicehandler</module>
40     <module>features</module>
41     <module>karaf</module>
42   </modules>
43
44   <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
45   <!--
46       Jenkins-releng tests reports more than 600 lines of javadoc warnings on ordmodels
47       and api folders generated-sources for unclear reasons.
48       This behavior was impossible to reproduce locally.
49       The javadoc plugin build section below removes most of those useless warnings.
50       ordmodels/pom.xml and api/pom.xml have been modified similarly with a build and
51       a reporting sections to remove the rest of the warnings.
52       Note that javadoc plugins maven implementation still suffers from several bugs.
53       Tests shows that many configurations options are not correctly supported.
54       (proxy, sourceFilesExclude, etc...).
55   -->
56   <build>
57     <plugins>
58       <plugin>
59         <groupId>org.apache.maven.plugins</groupId>
60         <artifactId>maven-deploy-plugin</artifactId>
61         <configuration>
62           <skip>true</skip>
63         </configuration>
64       </plugin>
65       <plugin>
66         <groupId>org.apache.maven.plugins</groupId>
67         <artifactId>maven-install-plugin</artifactId>
68         <configuration>
69           <skip>true</skip>
70         </configuration>
71       </plugin>
72       <plugin>
73         <groupId>org.apache.maven.plugins</groupId>
74         <artifactId>maven-javadoc-plugin</artifactId>
75         <configuration>
76           <sourcepath>*/target/generated-sources/mdsal-binding/*</sourcepath>
77           <excludePackageNames>*</excludePackageNames>
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>