Bump versions by x.y.(z+1)
[bgpcep.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 6b445c188ca3d7b5f381224ec8c1c83a4d359953..37a509ebf8b53445465420e7073540c297ab273c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set smarttab sw=4 tabstop=4: -->
-<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">
-       <name>OpenDaylight protocols</name>
-       <url>index.html</url>
-       <modelVersion>4.0.0</modelVersion>
-       <groupId>org.opendaylight.bgpcep</groupId>
-       <artifactId>protocol-parent</artifactId>
-       <description>OpenDaylight BGP+PCEP protocol parent</description>
-       <version>0.3.0-SNAPSHOT</version>
-       <packaging>pom</packaging>
-
-       <properties>
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <commonscodec.version>1.7</commonscodec.version>
-               <dependency.version>2.8</dependency.version>
-               <guava.version>14.0.1</guava.version>
-               <java.version.source>1.7</java.version.source>
-               <java.version.target>1.7</java.version.target>
-               <junit.version>4.10</junit.version>
-               <logback.version>1.0.7</logback.version>
-               <maven.bundle.version>2.4.0</maven.bundle.version>
-               <maven.compiler.version>3.1</maven.compiler.version>
-               <maven.jar.version>2.4</maven.jar.version>
-               <maven.shade.version>2.1</maven.shade.version>
-               <mockito.version>1.9.5</mockito.version>
-               <netty.version>4.0.10.Final</netty.version>
-               <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
-               <slf4j.version>1.7.2</slf4j.version>
-               <surefire.version>2.15</surefire.version>
-               <osgi.version>5.0.0</osgi.version>
-
-               <yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
-        <controller.config.version>0.2.3-SNAPSHOT</controller.config.version>
-               <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
-               <ietf.types.version>2010.09.24.1</ietf.types.version>
-       </properties>
-       <prerequisites>
-               <maven>3.0.4</maven>
-       </prerequisites>
-
-       <modules>
-               <module>bgp</module>
-               <module>concepts</module>
-               <module>framework</module>
-               <module>integration-tests</module>
-               <module>mockito-configuration</module>
-               <module>pcep</module>
-               <module>programming</module>
-               <module>rsvp</module>
-               <module>topology</module>
-               <module>util</module>
-       </modules>
-
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>junit</groupId>
-                <artifactId>junit</artifactId>
-                <version>${junit.version}</version>
-                <scope>test</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
-       <dependencies>
-               <dependency>
-                       <groupId>ch.qos.logback</groupId>
-                       <artifactId>logback-classic</artifactId>
-                       <version>${logback.version}</version>
-                       <scope>test</scope>
-               </dependency>
-       </dependencies>
-       
-       <reporting>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-javadoc-plugin</artifactId>
-                               <version>2.9.1</version>
-                       </plugin>
-               </plugins>
-       </reporting>
-
-       <distributionManagement>
-               <!-- OpenDayLight Released artifact -->
-               <repository>
-                       <id>opendaylight-release</id>
-                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
-               </repository>
-               <!-- OpenDayLight Snapshot artifact -->
-               <snapshotRepository>
-                       <id>opendaylight-snapshot</id>
-                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-               </snapshotRepository>
-               <site>
-                       <id>${project.artifactId}-site</id>
-                       <url>./</url>
-               </site>
-       </distributionManagement>
-
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-compiler-plugin</artifactId>
-                               <version>${maven.compiler.version}</version>
-                               <configuration>
-                                       <source>${java.version.source}</source>
-                                       <target>${java.version.target}</target>
-                                       <testSource>${java.version.source}</testSource>
-                                       <testTarget>${java.version.target}</testTarget>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-surefire-plugin</artifactId>
-                               <version>${surefire.version}</version>
-                               <configuration>
-                                       <redirectTestOutputToFile>true</redirectTestOutputToFile>
-                                       <!--parallel>classes</parallel>
-                                       <forkCount>1C</forkCount>
-                                       <reuseForks>false</reuseForks>
-                                       <perCoreThreadCount>true</perCoreThreadCount-->
-                                       <threadCount>1</threadCount>
-                               </configuration>
-                       </plugin>
-
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <version>${dependency.version}</version>
-                               <configuration>
-                                       <failOnWarning>true</failOnWarning>
-                                       <ignoreNonCompile>true</ignoreNonCompile>
-                               </configuration>
-                       </plugin>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+ Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+
+<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">
+
+    <modelVersion>4.0.0</modelVersion>
+    <scm>
+        <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
+        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
+        <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
+        <tag>HEAD</tag>
+    </scm>
+    <parent>
+        <groupId>org.opendaylight.bgpcep</groupId>
+        <artifactId>bgpcep-parent</artifactId>
+        <version>0.6.5-SNAPSHOT</version>
+        <relativePath>parent</relativePath>
+    </parent>
+
+    <artifactId>bgpcep-aggregator</artifactId>
+    <packaging>pom</packaging>
+    <name>bgpcep</name> <!-- Used by Sonar to set project name -->
+    <description>BGPCEP top-level aggregator</description>
+
+    <modules>
+        <!-- Well-known -->
+        <module>artifacts</module>
+        <module>features</module>
+        <module>parent</module>
+
+        <!-- Common infra -->
+        <module>concepts</module>
+        <module>util</module>
+
+        <!-- Subsystems -->
+        <module>bgp</module>
+        <module>pcep</module>
+        <module>programming</module>
+        <module>rsvp</module>
+        <module>topology</module>
+
+        <!-- Integration tests -->
+        <module>integration-tests</module>
+
+        <!--Test tools -->
+        <module>data-change-counter</module>
+        <module>testtool-util</module>
+        <module>data-change-counter-controller-config</module>
+
+        <module>distribution-karaf</module>
+
+    </modules>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
             <plugin>
-                <!-- Let eclipse know about the generated sources -->
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                               <version>1.8</version>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
                 <executions>
                     <execution>
-                        <phase>generate-sources</phase>
+                        <id>aggregate</id>
                         <goals>
-                            <goal>add-source</goal>
+                            <goal>aggregate</goal>
                         </goals>
-                        <configuration>
-                            <sources>
-                                <source>target/generated-sources/sal</source>
-                                <source>target/generated-sources/config</source>
-                            </sources>
-                        </configuration>
+                        <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
-               </plugins>
-               <pluginManagement>
-                       <plugins>
-                               <!--This plugin's configuration is used to store Eclipse m2e settings
-                                       only. It has no influence on the Maven build itself. -->
-                               <plugin>
-                                       <groupId>org.eclipse.m2e</groupId>
-                                       <artifactId>lifecycle-mapping</artifactId>
-                                       <version>1.0.0</version>
-                                       <configuration>
-                                               <lifecycleMappingMetadata>
-                                                       <pluginExecutions>
-                                                               <pluginExecution>
-                                                                       <pluginExecutionFilter>
-                                                                               <groupId>pl.project13.maven</groupId>
-                                                                               <artifactId>git-commit-id-plugin</artifactId>
-                                                                               <versionRange>[2.1.4,)</versionRange>
-                                                                               <goals>
-                                                                                       <goal>revision</goal>
-                                                                               </goals>
-                                                                       </pluginExecutionFilter>
-                                                                       <action>
-                                                                               <ignore></ignore>
-                                                                       </action>
-                                                               </pluginExecution>
-                                <pluginExecution>
-                                    <pluginExecutionFilter>
-                                        <groupId>org.opendaylight.yangtools</groupId>
-                                        <artifactId>yang-maven-plugin</artifactId>
-                                        <versionRange>[0.5,)</versionRange>
-                                        <goals>
-                                            <goal>generate-sources</goal>
-                                        </goals>
-                                    </pluginExecutionFilter>
-                                    <action>
-                                        <ignore></ignore>
-                                    </action>
-                                </pluginExecution>
-                                                       </pluginExecutions>
-                                               </lifecycleMappingMetadata>
-                                       </configuration>
-                               </plugin>
-                       </plugins>
-               </pluginManagement>
-       </build>
-
-       <repositories>
-               <repository>
-                       <id>opendaylight-release</id>
-                       <name>opendaylight-release</name>
-                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
-               </repository>
-               <repository>
-                       <id>opendaylight-snapshot</id>
-                       <name>opendaylight-snapshot</name>
-                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-               </repository>
-       </repositories>
-
-       <pluginRepositories>
-               <pluginRepository>
-                       <id>opendaylight-release</id>
-                       <name>opendaylight-release</name>
-                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
-               </pluginRepository>
-               <pluginRepository>
-                       <id>opendaylight-snapshot</id>
-                       <name>opendaylight-snapshot</name>
-                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-               </pluginRepository>
-       </pluginRepositories>
+        </plugins>
+    </build>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+                <version>${maven.info.reports.version}</version>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>dependency-info</report>
+                            <report>license</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
+        </plugins>
+    </reporting>
+
+  <profiles>
+    <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>
+            </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
+  <!--
+      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>