Enable site generation for mdsal
[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"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14       <groupId>org.opendaylight.mdsal</groupId>
15       <artifactId>mdsal-parent</artifactId>
16       <version>2.1.0-SNAPSHOT</version>
17       <relativePath>common/parent</relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>mdsal-agreggator</artifactId>
22     <name>md-sal</name> <!-- Used by Sonar to set project name -->
23     <packaging>pom</packaging>
24
25     <scm>
26         <connection>scm:git:ssh://git.opendaylight.org:29418/mdsal.git</connection>
27         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/mdsal.git</developerConnection>
28         <url>https://wiki.opendaylight.org/view/MD-SAL:Main</url>
29         <tag>HEAD</tag>
30     </scm>
31
32     <modules>
33       <module>common</module>
34       <module>dom</module>
35       <module>binding</module>
36       <module>model</module>
37     </modules>
38
39     <build>
40         <pluginManagement>
41             <plugins>
42                 <plugin>
43                  <groupId>org.apache.maven.plugins</groupId>
44                  <artifactId>maven-checkstyle-plugin</artifactId>
45                  <configuration>
46                    <failOnViolation>false</failOnViolation>
47                    <configLocation>checkstyle-logging.xml</configLocation>
48                    <consoleOutput>true</consoleOutput>
49                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
50                    <sourceDirectory>${project.basedir}</sourceDirectory>
51                    <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
52                    <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/src/main/xtend-gen\/</excludes>
53                  </configuration>
54                  <dependencies>
55                    <dependency>
56                      <groupId>org.opendaylight.yangtools</groupId>
57                      <artifactId>checkstyle-logging</artifactId>
58                      <version>1.0.0-SNAPSHOT</version>
59                    </dependency>
60                  </dependencies>
61                  <executions>
62                    <execution>
63                      <goals>
64                        <goal>check</goal>
65                      </goals>
66                    </execution>
67                  </executions>
68                </plugin>
69             </plugins>
70         </pluginManagement>
71     </build>
72
73   <profiles>
74     <profile>
75       <!--
76           This profile is to ensure we only build javadocs reports
77           when we plan to deploy Maven site for our project.
78       -->
79       <id>maven-site</id>
80       <activation>
81         <file>
82           <exists>${user.dir}/deploy-site.xml</exists>
83         </file>
84       </activation>
85
86       <build>
87         <plugins>
88           <plugin>
89             <groupId>org.apache.maven.plugins</groupId>
90             <artifactId>maven-javadoc-plugin</artifactId>
91             <inherited>false</inherited>
92             <executions>
93               <execution>
94                 <id>aggregate</id>
95                 <goals>
96                   <goal>aggregate</goal>
97                 </goals>
98                 <phase>package</phase>
99               </execution>
100             </executions>
101           </plugin>
102         </plugins>
103       </build>
104     </profile>
105   </profiles>
106
107
108   <!--
109       Maven Site Configuration
110
111       The following configuration is necessary for maven-site-plugin to
112       correctly identify the correct deployment path for OpenDaylight Maven
113       sites.
114   -->
115   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
116
117   <distributionManagement>
118     <site>
119       <id>opendaylight-site</id>
120       <url>${nexus.site.url}/</url>
121     </site>
122   </distributionManagement>
123
124 </project>