Add pcmm/umu/cops to exclude license checker (3rdparty lib)
[packetcable.git] / packetcable-driver / pom.xml
index 24f1a27f9074630244fcc22faaa0e758494f9d3d..4269718ebc387d64e0f30bea01a8aabd6059ead2 100644 (file)
@@ -6,7 +6,8 @@
        <parent>
                <groupId>org.opendaylight.packetcable</groupId>
                <artifactId>packetcable</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
+               <version>1.3.0-SNAPSHOT</version>
+               <relativePath>..</relativePath>
        </parent>
        <artifactId>packetcable-driver</artifactId>
        <packaging>bundle</packaging>
@@ -51,7 +52,7 @@
 
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
+               <yangtools.version>0.8.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>
@@ -62,6 +63,7 @@
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
+                       <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>ch.qos.logback</groupId>
                        </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.0.1-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>