odlparent/pom.xml: Parameter tasks is deprecated
[odlparent.git] / odlparent / pom.xml
index 9a6500023c4e34017cbfa9d8fb7b345a40aea1da..2222f84346fbc83e60e3e0d0ee5be0ccfd4b4ea7 100644 (file)
@@ -13,7 +13,7 @@
   <parent>
     <groupId>org.opendaylight.odlparent</groupId>
     <artifactId>odlparent-lite</artifactId>
-    <version>1.7.0-SNAPSHOT</version>
+    <version>1.8.0-SNAPSHOT</version>
     <relativePath>../odlparent-lite</relativePath>
   </parent>
 
     <maven.compile.plugin.version>3.5.1</maven.compile.plugin.version>
     <!-- Used in mdsal, yangtools -->
     <maven.jar.version>3.0.0</maven.jar.version>
-    <!-- Used in controller, coretutorials, mdsal, snbi, tcpmd5, yangtools -->
+    <!-- Used in controller, coretutorials, mdsal, snbi, yangtools -->
     <maven.javadoc.version>2.10.3</maven.javadoc.version>
     <!-- Used in snmp -->
     <maven.plugin.version>3.4</maven.plugin.version>
-    <!-- Used in neutron, of-config, tcpmd5, tsdr, yangtools -->
+    <!-- Used in neutron, of-config, tsdr, yangtools -->
     <!-- Later versions break tests in downstream projects -->
     <maven.surefire.version>2.18.1</maven.surefire.version>
 
@@ -76,7 +76,7 @@
          toolkit -->
     <checkstyle.version>2.17</checkstyle.version>
     <!-- Used in controller, packetcable -->
-    <odl.checkstyle.version>0.2.0-SNAPSHOT</odl.checkstyle.version>
+    <odl.checkstyle.version>0.3.0-SNAPSHOT</odl.checkstyle.version>
     <!-- Used in snmp4sdn; see also toolkit -->
     <compiler.version>${maven.compile.plugin.version}</compiler.version>
     <!-- Used in controller, l2switch, netide, openflowjava, openflowplugin, snbi, tsdr, ttp; see also toolkit -->
     <jacoco.version>0.7.2.201409121644</jacoco.version>
     <!-- Used in aaa, controller, coretutorials, integration/distribution, l2switch, lacp, lispflowmapping, netide,
          nic, openflowplugin, ovsdb, persistence, sfc, snbi, snmp4sdn?, sxp, topoprocessing, unimgr, vtn -->
-    <karaf.version>3.0.6</karaf.version>
+    <karaf.version>3.0.8</karaf.version>
     <!-- Used in lispflowmapping, snmp4sdn, vtn -->
     <projectinfo>2.8.1</projectinfo>
     <!-- Used in of-config; see also snmp4sdn -->
       <dependency>
         <groupId>org.opendaylight.odlparent</groupId>
         <artifactId>odlparent-artifacts</artifactId>
-        <version>1.7.0-SNAPSHOT</version>
+        <version>1.8.0-SNAPSHOT</version>
         <scope>import</scope>
         <type>pom</type>
       </dependency>
       <dependency>
          <groupId>org.skyscreamer</groupId>
          <artifactId>jsonassert</artifactId>
-         <version>1.2.3</version>
+         <version>1.3.0</version>
          <scope>test</scope>
       </dependency>
       <dependency>
         <version>18.0</version>
         <scope>test</scope>
       </dependency>
+      <dependency>
+        <groupId>com.mycila.guice.extensions</groupId>
+        <!-- This transitively pulls com.google.inject:guice along -->
+        <artifactId>mycila-guice-jsr250</artifactId>
+        <version>4.0.rc1</version>
+        <scope>test</scope>
+      </dependency>
       <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-lang3</artifactId>
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-core</artifactId>
-        <version>1.2.5</version>
+        <version>1.3.1</version>
       </dependency>
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-web</artifactId>
-        <version>1.2.5</version>
+        <version>1.3.1</version>
       </dependency>
 
       <!-- Plugin integration -->
       <dependency>
         <groupId>com.google.code.gson</groupId>
         <artifactId>gson</artifactId>
-        <version>2.3.1</version>
+        <version>2.7</version>
       </dependency>
       <dependency>
         <groupId>commons-fileupload</groupId>
       <dependency>
         <groupId>com.webcohesion.enunciate</groupId>
         <artifactId>enunciate-core-annotations</artifactId>
-        <version>2.1.1</version>
+        <version>2.6.0</version>
       </dependency>
       <dependency>
         <groupId>org.codehaus.jettison</groupId>
           <version>2.9.2</version>
       </dependency>
 
+      <!-- Annotations -->
+      <dependency>
+        <groupId>javax.inject</groupId>
+        <artifactId>javax.inject</artifactId>
+        <version>1</version>
+      </dependency>
+
+      <!-- Cassandra -->
+      <dependency>
+        <groupId>com.datastax.cassandra</groupId>
+        <artifactId>cassandra-driver-core</artifactId>
+        <version>2.1.9</version>
+      </dependency>
+
+      <!-- Metrics -->
+      <dependency>
+        <groupId>io.dropwizard.metrics</groupId>
+        <artifactId>metrics-core</artifactId>
+        <version>3.1.2</version>
+      </dependency>
+      <dependency>
+        <groupId>io.dropwizard.metrics</groupId>
+        <artifactId>metrics-graphite</artifactId>
+        <version>3.1.2</version>
+      </dependency>
+
+      <!-- Karaf console support -->
+      <dependency>
+        <groupId>org.apache.karaf.shell</groupId>
+        <artifactId>org.apache.karaf.shell.console</artifactId>
+        <version>${karaf.version}</version>
+      </dependency>
+
     </dependencies>
   </dependencyManagement>
 
       <artifactId>slf4j-api</artifactId>
       <scope>provided</scope>
     </dependency>
+
+    <!-- Enable JSR-305 annotations everywhere -->
+    <dependency>
+      <groupId>com.google.code.findbugs</groupId>
+      <artifactId>jsr305</artifactId>
+      <scope>provided</scope>
+    </dependency>
   </dependencies>
 
   <build>
             <dependency>
               <groupId>org.opendaylight.odlparent</groupId>
               <artifactId>odl-license</artifactId>
-              <version>0.1.0-SNAPSHOT</version>
+              <version>0.2.0-SNAPSHOT</version>
             </dependency>
             <dependency>
               <groupId>com.github.sevntu.checkstyle</groupId>
                 <minimumTokens>101</minimumTokens>
                 <printFailingErrors>true</printFailingErrors>
                 <excludeRoots>
-                  <excludeRoot>${basedir}/target/generated-sources/mdsal-binding</excludeRoot>
+                  <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
+                              not understand path prefixes nor wildcards. Details are available
+                              at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
+                              Hence people introducing new generated sources have to include
+                              PMD config too.
+                   -->
+                  <excludeRoot>${basedir}/target/generated-sources</excludeRoot>
                 </excludeRoots>
                 <linkXRef>false</linkXRef>
               </configuration>
                   <artifactItem>
                     <groupId>org.opendaylight.odlparent</groupId>
                     <artifactId>odl-license</artifactId>
-                    <version>0.1.0-SNAPSHOT</version>
+                    <version>0.2.0-SNAPSHOT</version>
                   </artifactItem>
                 </artifactItems>
                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
         </plugin>
 
         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
+        <plugin>
+          <!-- Support Blueprint XML construction using annotations -->
+          <groupId>org.apache.aries.blueprint</groupId>
+          <artifactId>blueprint-maven-plugin</artifactId>
+          <version>1.4.0</version>
+          <configuration>
+            <scanPaths>
+              <scanPath>org.opendaylight</scanPath>
+            </scanPaths>
+          </configuration>
+          <dependencies>
+            <dependency>
+              <!-- See https://issues.apache.org/jira/browse/ARIES-1596 -->
+              <!-- This shouldn't be necessary with plugin version 1.5.0 -->
+              <groupId>org.apache.xbean</groupId>
+              <artifactId>xbean-finder-shaded</artifactId>
+              <version>4.5</version>
+            </dependency>
+          </dependencies>
+          <executions>
+            <execution>
+              <goals>
+                <goal>blueprint-generate</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+
         <plugin>
           <groupId>org.apache.felix</groupId>
           <artifactId>maven-bundle-plugin</artifactId>
                   <version>1.8.0</version>
                 </requireJavaVersion>
                 <requireMavenVersion>
-                  <version>[3.2.5,)</version>
+                  <version>[3.3.9,)</version>
                 </requireMavenVersion>
               </rules>
             </configuration>
            </dependency>
          </dependencies>
       </plugin>
+
+      <!-- Blueprint dependency injection -->
+      <!-- Remove when upgrading to plugin 1.5.0, and use
+           <configuration><generatedDir>org/opendaylight/blueprint/</...></...> -->
+      <!-- See https://issues.apache.org/jira/browse/ARIES-1597 -->
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <!-- This should only run once, in the process-classes phase; but we need it to run after
+               process-classes in child projects. Attaching to process-test-classes and prepare-package
+               ensures that the file will be moved whether tests are skipped or not. -->
+          <execution>
+            <id>move-autowire-test</id>
+            <phase>process-test-classes</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <echo>Moving autowire.xml to org/opendaylight/blueprint</echo>
+                <move file="${basedir}/target/generated-resources/OSGI-INF/blueprint/autowire.xml"
+                      todir="${basedir}/target/generated-resources/org/opendaylight/blueprint"
+                      failonerror="false" quiet="true" />
+              </target>
+            </configuration>
+          </execution>
+          <execution>
+            <id>move-autowire-package</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <echo>Moving autowire.xml to org/opendaylight/blueprint</echo>
+                <move file="${basedir}/target/generated-resources/OSGI-INF/blueprint/autowire.xml"
+                      todir="${basedir}/target/generated-resources/org/opendaylight/blueprint"
+                      failonerror="false" quiet="true" />
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>