Merge "Bug 6278: Switch to use odlparent's karaf-parent"
[packetcable.git] / packetcable-driver / pom.xml
index d6a102494ef67e1887887d0385f7d14222ccf794..64915912edd71257698c6d0cbbcc845ffa23638a 100644 (file)
@@ -6,7 +6,7 @@
        <parent>
                <groupId>org.opendaylight.packetcable</groupId>
                <artifactId>packetcable</artifactId>
-               <version>1.3.0-SNAPSHOT</version>
+               <version>1.5.0-SNAPSHOT</version>
                <relativePath>..</relativePath>
        </parent>
        <artifactId>packetcable-driver</artifactId>
@@ -52,9 +52,8 @@
 
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
+               <yangtools.version>1.1.0-SNAPSHOT</yangtools.version>
                <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
-               <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
                <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
                <nexus.repository.release>opendaylight.release</nexus.repository.release>
        </properties>
                        </testResource>
                </testResources>
                <plugins>
+
+               <plugin>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${checkstyle.version}</version>
+          <dependencies>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>checkstyle</artifactId>
+              <version>${odl.checkstyle.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>odl-license</artifactId>
+              <version>0.2.0-SNAPSHOT</version>
+            </dependency>
+          </dependencies>
+          <executions>
+            <execution>
+              <id>check-license</id>
+              <goals>
+                <goal>check</goal>
+              </goals>
+              <phase>process-sources</phase>
+              <configuration>
+                <configLocation>check-license.xml</configLocation>
+                <includeResources>false</includeResources>
+                <includeTestResources>false</includeTestResources>
+                <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+                <excludes>
+                  org/opendaylight/yang/gen/**,
+                  **/protobuff/messages/**,
+                  **/thrift/gen/*.java,
+                  **/org/umu/cops/**
+                </excludes>
+                <failsOnError>false</failsOnError>
+                <consoleOutput>true</consoleOutput>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                        </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>