Upgrade upstream versions (part 1, Maven)
[odlparent.git] / odlparent / pom.xml
index 5eee5ffef63695cd9ca68471b172182377bc52a0..a5c7b61b3708efe0ca59ee4411d321307f09cb32 100644 (file)
@@ -8,52 +8,40 @@
  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>
+
+  <parent>
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>odlparent-lite</artifactId>
+    <version>1.6.0-SNAPSHOT</version>
+    <relativePath>../odlparent-lite</relativePath>
+  </parent>
+
   <groupId>org.opendaylight.odlparent</groupId>
   <artifactId>odlparent</artifactId>
-  <version>1.6.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
-  <licenses>
-    <license>
-      <name>Eclipse Public License v1.0</name>
-      <url>http://www.eclipse.org/legal/epl-v10.html</url>
-    </license>
-  </licenses>
-
-  <organization>
-    <name>OpenDaylight</name>
-    <url>http://www.opendaylight.org</url>
-  </organization>
-
   <scm>
     <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
     <tag>HEAD</tag>
     <url>https://wiki.opendaylight.org/view/ODL_Root_Parent:Main</url>
   </scm>
-  <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>
+
+  <prerequisites>
+    <!-- This is only used to prevent building with Maven < 3 and to appease
+         maven-dependency-plugin; our real Maven requirement is enforced by
+         the enforcer plugin. -->
+    <maven>3.0.5</maven>
+  </prerequisites>
+
+  <!-- Variables should only be used where genuinely useful (to avoid
+       repetition); in general versions should be specified in the
+       corresponding dependencyManagement or pluginManagement element, not as
+       a variable. -->
   <properties>
-    <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
     <nexus.repository.release>opendaylight.release</nexus.repository.release>
     <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
-    <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <java.version.target>${maven.compiler.target}</java.version.target>
 
     <!-- Maven plugin versions, in the 'canonical' format -->
-    <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
-    <maven.bundle.version>2.5.3</maven.bundle.version>
+    <maven.antrun.plugin.version>1.8</maven.antrun.plugin.version>
+    <maven.bundle.version>2.5.4</maven.bundle.version>
     <maven.clean.plugin.version>2.6.1</maven.clean.plugin.version>
-    <maven.compile.plugin.version>3.2</maven.compile.plugin.version>
-    <maven.install.plugin.version>2.5.2</maven.install.plugin.version>
-    <maven.dependency.plugin.version>2.10</maven.dependency.plugin.version>
-    <maven.depends.version>1.2</maven.depends.version>
-    <maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
-    <maven.jar.version>2.5</maven.jar.version>
-    <maven.javadoc.version>2.10.1</maven.javadoc.version>
-    <maven.plugin.version>3.3</maven.plugin.version>
-    <maven.release.version>2.5.1</maven.release.version>
-    <maven.source.version>2.4</maven.source.version>
-    <maven.surefire.version>2.18</maven.surefire.version>
+    <maven.compile.plugin.version>3.3</maven.compile.plugin.version>
+    <maven.jar.version>2.6</maven.jar.version>
+    <maven.javadoc.version>2.10.3</maven.javadoc.version>
+    <maven.plugin.version>3.4</maven.plugin.version>
+    <maven.release.version>2.5.2</maven.release.version>
+    <maven.surefire.version>2.18.1</maven.surefire.version>
 
     <!-- Maven plugin versions, in random formats -->
     <bundle.plugin.version>${maven.bundle.version}</bundle.plugin.version>
-    <checkstyle.version>2.15</checkstyle.version>
+    <checkstyle.version>2.16</checkstyle.version>
     <compiler.version>${maven.compile.plugin.version}</compiler.version>
-    <enforcer.version>1.3.1</enforcer.version>
-    <paxexam.plugin.version>1.2.4</paxexam.plugin.version> <!-- FIXME: this is latest version of paxexam plugin -->
-    <enunciate.version>1.28</enunciate.version> <!-- Needs to remain exported, as its used for dependencies, too -->
+    <enforcer.version>1.4</enforcer.version>
+    <enunciate.version>1.30.1</enunciate.version> <!-- Needs to remain exported, as its used for dependencies, too -->
     <exam.version>4.4.0</exam.version> <!-- Needs to remain exported, as its used for dependencies, too -->
-    <failsafe.version>2.18</failsafe.version>
+    <failsafe.version>2.18.1</failsafe.version>
     <gmaven.plugin.version>1.0</gmaven.plugin.version>
-    <!-- Regression in jacoco-plugin 0.7.5 prevents us from upgrading to it
-         http://jira.xwiki.org/browse/XCOMMONS-821 -->
-    <jacoco.version>0.7.4.201502262128</jacoco.version>
+    <!--
+        Regression in jacoco-plugin 0.7.5 prevents us from upgrading to it
+        http://jira.xwiki.org/browse/XCOMMONS-821
+
+        Additionally we need to stay on jacoco 0.7.2.201409121644. Future
+        versions appear to have issues picking up code coverage for projects
+        that use PowerMock.
+        https://github.com/jayway/powermock/issues/564
+    -->
+    <jacoco.version>0.7.2.201409121644</jacoco.version>
     <jar.plugin.version>${maven.jar.version}</jar.plugin.version>
     <karaf.version>3.0.3</karaf.version> <!-- Needs to remain exported, as its used for dependencies, too -->
     <projectinfo>2.6</projectinfo>
     <propertymavenplugin.version>1.0-alpha-2</propertymavenplugin.version>
     <releaseplugin.version>${maven.release.version}</releaseplugin.version>
-    <siteplugin>3.4</siteplugin>
     <odl.checkstyle.version>0.1.0-SNAPSHOT</odl.checkstyle.version>
-    <odl.license.version>0.0.1-SNAPSHOT</odl.license.version>
-    <jetty.version>8.1.14.v20131031</jetty.version>
 
     <!-- Supporting Libraries -->
     <aopalliance.version>1.0.0</aopalliance.version>
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-servlets</artifactId>
-        <version>${jetty.version}</version>
+        <version>8.1.14.v20131031</version>
       </dependency>
     </dependencies>
   </dependencyManagement>
-  <repositories>
-    <!-- OpenDayLight Repo Mirror -->
-    <repository>
-      <releases>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </releases>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-      <id>opendaylight-mirror</id>
-      <name>opendaylight-mirror</name>
-      <url>${nexusproxy}/groups/public/</url>
-    </repository>
-    <!-- OpenDayLight Snapshot artifact -->
-    <repository>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-      <id>opendaylight-snapshot</id>
-      <name>opendaylight-snapshot</name>
-      <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-    </repository>
-  </repositories>
-  <pluginRepositories>
-    <!-- OpenDayLight Repo Mirror -->
-    <pluginRepository>
-      <releases>
-        <enabled>true</enabled>
-        <updatePolicy>never</updatePolicy>
-      </releases>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-      <id>opendaylight-mirror</id>
-      <name>opendaylight-mirror</name>
-      <url>${nexusproxy}/groups/public/</url>
-    </pluginRepository>
-    <!-- OpenDayLight Snapshot artifact -->
-    <pluginRepository>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-      <id>opendaylight-snapshot</id>
-      <name>opendaylight-snapshot</name>
-      <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-    </pluginRepository>
-  </pluginRepositories>
 
   <build>
     <pluginManagement>
             <dependency>
               <groupId>org.opendaylight.odlparent</groupId>
               <artifactId>odl-license</artifactId>
-              <version>${odl.license.version}</version>
+              <version>0.0.1-SNAPSHOT</version>
             </dependency>
           </dependencies>
           <configuration>
         </plugin>
         <plugin>
           <artifactId>maven-install-plugin</artifactId>
-          <version>${maven.install.plugin.version}</version>
+          <version>2.5.2</version>
         </plugin>
         <plugin>
           <artifactId>maven-deploy-plugin</artifactId>
-          <version>${maven.deploy.plugin.version}</version>
+          <version>2.8.2</version>
         </plugin>
         <plugin>
           <artifactId>maven-compiler-plugin</artifactId>
           <artifactId>maven-failsafe-plugin</artifactId>
           <version>${failsafe.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-invoker-plugin</artifactId>
+          <version>2.0.0</version>
+        </plugin>
         <plugin>
           <artifactId>maven-jar-plugin</artifactId>
           <version>${jar.plugin.version}</version>
           <artifactId>maven-javadoc-plugin</artifactId>
           <version>${maven.javadoc.version}</version>
           <configuration>
-            <tags>
-              <!-- support for HelpMojo generated by the maven-plugin-plugin -->
-              <tag>
-                <name>goal</name>
-                <placement>t</placement>
-                <head>Goal:</head>
-              </tag>
-              <tag>
-                <name>requiresProject</name>
-                <placement>t</placement>
-                <head>Requires project:</head>
-              </tag>
-              <tag>
-                <name>threadSafe</name>
-                <placement>t</placement>
-                <head>Threadsafe</head>
-              </tag>
-              <tag>
-                <name>phase</name>
-                <placement>t</placement>
-                <head>Phase:</head>
-              </tag>
-              <!-- end HelpMojo support -->
-            </tags>
+            <!-- Keep things quiet except for warnings/errors -->
+            <quiet>true</quiet>
           </configuration>
           <executions>
             <execution>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-dependency-plugin</artifactId>
-          <version>${maven.dependency.plugin.version}</version>
+          <version>2.10</version>
           <executions>
             <execution>
               <id>unpack-license</id>
         </plugin>
         <plugin>
           <artifactId>maven-shade-plugin</artifactId>
-          <version>2.3</version>
+          <version>2.4.1</version>
         </plugin>
         <plugin>
           <artifactId>maven-site-plugin</artifactId>
-          <version>${siteplugin}</version>
+          <version>3.4</version>
         </plugin>
         <plugin>
           <artifactId>maven-source-plugin</artifactId>
-          <version>${maven.source.version}</version>
+          <version>2.4</version>
           <executions>
             <execution>
               <id>attach-sources</id>
         <plugin>
           <groupId>org.apache.servicemix.tooling</groupId>
           <artifactId>depends-maven-plugin</artifactId>
-          <version>${maven.depends.version}</version>
+          <version>1.2</version>
           <executions>
             <execution>
               <id>generate-depends-file</id>
         <plugin>
           <groupId>org.ops4j.pax.exam</groupId>
           <artifactId>maven-paxexam-plugin</artifactId>
-          <version>${paxexam.plugin.version}</version>
+          <version>1.2.4</version>
         </plugin>
       </plugins>
     </pluginManagement>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>findbugs-maven-plugin</artifactId>
-        <version>3.0.0</version>
+        <version>3.0.1</version>
         <configuration>
           <effort>Max</effort>
           <threshold>Low</threshold>
       </plugin>
     </plugins>
   </reporting>
+
+  <!--
+    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}/${project.artifactId}/</url>
+
+  <distributionManagement>
+    <site>
+      <id>opendaylight-site</id>
+      <url>${nexus.site.url}/${project.artifactId}/</url>
+    </site>
+  </distributionManagement>
 </project>