Release Beryllium
[yangtools.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index cac5289667540f8fdcf6319933a458fd69ba1093..137bbceacaabf3a5160ef22f95867f15e9680a7f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <parent>
       <groupId>org.opendaylight.yangtools</groupId>
       <artifactId>yangtools-parent</artifactId>
-      <version>0.7.0-SNAPSHOT</version>
+      <version>0.8.0-Beryllium</version>
       <relativePath>common/parent</relativePath>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
     <artifactId>yangtools-aggregator</artifactId>
-    <groupId>org.opendaylight.yangtools</groupId>
-    <version>0.7.0-SNAPSHOT</version>
+    <name>yangtools</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
 
     <scm>
     </scm>
 
     <modules>
-        <module>code-generator</module>
         <module>common</module>
-        <module>integration-test</module>
-        <module>model</module>
-        <module>restconf</module>
-        <module>websocket</module>
         <module>yang</module>
-      <!-- module>third-party</module -->
+        <module>websocket</module>
+        <module>yang-validation-tool</module>
     </modules>
 
     <profiles>
           <module>benchmarks</module>
         </modules>
       </profile>
+
+      <!-- Turn off doclint on aggregated API javadoc build -->
+      <profile>
+        <id>jdk8</id>
+        <activation>
+          <jdk>[1.8,)</jdk>
+        </activation>
+        <properties>
+          <javadoc.args>-Xdoclint:none</javadoc.args>
+        </properties>
+      </profile>
+
+      <profile>
+        <!--
+            This profile is to ensure we only build javadocs reports
+            when we plan to deploy Maven site for our project.
+        -->
+        <id>maven-site</id>
+        <activation>
+          <file>
+            <exists>${user.dir}/deploy-site.xml</exists>
+          </file>
+        </activation>
+
+        <build>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-javadoc-plugin</artifactId>
+              <inherited>false</inherited>
+              <executions>
+                <execution>
+                  <id>aggregate</id>
+                  <goals>
+                    <goal>aggregate</goal>
+                  </goals>
+                  <phase>package</phase>
+                  <configuration>
+                    <!-- ignore javadoc warnings caused by JDK8 -->
+                    <additionalparam>${javadoc.args}</additionalparam>
+                  </configuration>
+              </execution>
+              </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
     </profiles>
 
     <build>
-        <pluginManagement>        
+        <pluginManagement>
             <plugins>
                 <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-checkstyle-plugin</artifactId>
-                 <version>2.12</version>
                  <configuration>
                    <failOnViolation>false</failOnViolation>
                    <configLocation>checkstyle-logging.xml</configLocation>
                    </execution>
                  </executions>
                </plugin>
-            </plugins>            
+            </plugins>
         </pluginManagement>
     </build>
+
+  <!--
+      Maven Site Configuration
+
+      The following configuration is necessary for maven-site-plugin to
+      correctly identify the correct deployment path for OpenDaylight Maven
+      sites.
+  -->
+  <url>${odl.site.url}/${project.groupId}/${stream}/</url>
+
+  <distributionManagement>
+    <site>
+      <id>opendaylight-site</id>
+      <url>${nexus.site.url}/</url>
+    </site>
+  </distributionManagement>
 </project>