Enable checkstyle plugin and switch to odlparent 98/31398/10
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 05:03:42 +0000 (00:03 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 17:10:58 +0000 (12:10 -0500)
- Switches parent to odlparent
- Enables checkstyle plugin

Change-Id: Ie91049bcf9eb65bf8e3106e062bb6ec065a00cc3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
packetcable-driver/pom.xml
pom.xml

index 4269718ebc387d64e0f30bea01a8aabd6059ead2..d20f5163a78ac5fc1ed40396885cb9a2595dfeac 100644 (file)
                        </plugin>
                </plugins>
        </build>
+
+  <profiles>
+    <!-- Disable Java 8 linter since umu/cops fails it -->
+    <profile>
+      <id>jdk8</id>
+      <activation>
+        <jdk>[1.8,)</jdk>
+      </activation>
+      <properties>
+        <additionalparam>-Xdoclint:none</additionalparam>
+      </properties>
+    </profile>
+  </profiles>
 </project>
diff --git a/pom.xml b/pom.xml
index 8c100ea8e749a7371907ec9dd50ee8cb395f6889..2f76ea6728f76f27360d704b38eb98965dca34f4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,17 +4,19 @@
     <modelVersion>4.0.0</modelVersion>
     <!-- FIXME: Do not use sal-parent, use odlparent:odlparent or mdsal:binding-parent intstead. -->
     <parent>
-        <groupId>org.opendaylight.controller</groupId>
-        <artifactId>sal-parent</artifactId>
-        <version>1.3.0-SNAPSHOT</version>
-        <relativePath />
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>odlparent</artifactId>
+        <version>1.6.0-SNAPSHOT</version>
+        <relativePath/>
     </parent>
     <groupId>org.opendaylight.packetcable</groupId>
     <artifactId>packetcable</artifactId>
+    <version>1.3.0-SNAPSHOT</version>
     <name>packetcable</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
     <properties>
         <openflowplugin.version>0.2.0-SNAPSHOT</openflowplugin.version>
+        <controller.model.version>1.3.0-SNAPSHOT</controller.model.version>
     </properties>
     <distributionManagement>
         <!-- OpenDayLight Released artifact -->
             <artifactId>model-flow-service</artifactId>
             <version>${openflowplugin.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.mdsal.model</groupId>
-            <artifactId>ietf-inet-types</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.opendaylight.mdsal.model</groupId>
-            <artifactId>ietf-yang-types</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.opendaylight.controller.model</groupId>
             <artifactId>model-inventory</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.opendaylight.mdsal.model</groupId>
-            <artifactId>opendaylight-l2-types</artifactId>
+            <version>${controller.model.version}</version>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.openflowplugin.model</groupId>
             <version>${openflowplugin.version}</version>
         </dependency>
     </dependencies>
-    <build>
-        <plugins>
-            <plugin>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>