Bump to odlparent 3.1.0 and yangtools 2.0.3
[packetcable.git] / packetcable-driver / pom.xml
index d6a102494ef67e1887887d0385f7d14222ccf794..2f5e962348fe3bcd8efe7079b84cace28c055a58 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
-<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.packetcable</groupId>
-               <artifactId>packetcable</artifactId>
-               <version>1.3.0-SNAPSHOT</version>
-               <relativePath>..</relativePath>
-       </parent>
-       <artifactId>packetcable-driver</artifactId>
-       <packaging>bundle</packaging>
-
-       <description>
+<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.packetcable</groupId>
+        <artifactId>packetcable</artifactId>
+        <version>1.8.0-SNAPSHOT</version>
+        <relativePath>..</relativePath>
+    </parent>
+    <artifactId>packetcable-driver</artifactId>
+    <packaging>bundle</packaging>
+
+    <description>
         A lightweight implementation of PCMM COPS PDP client
     </description>
 
-       <url></url>
-       <inceptionYear>2013</inceptionYear>
-
-       <licenses>
-               <license>
-               </license>
-       </licenses>
-
-       <mailingLists>
-               <mailingList>
-               </mailingList>
-       </mailingLists>
-
-       <developers>
-               <developer>
-               </developer>
-       </developers>
-
-       <contributors>
-               <contributor>
-               </contributor>
-       </contributors>
-
-       <scm>
-               <connection></connection>
-               <developerConnection></developerConnection>
-               <url></url>
-       </scm>
-
-       <issueManagement>
-               <system></system>
-               <url></url>
-       </issueManagement>
-
-       <properties>
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <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>
-               <nexus.repository.release>opendaylight.release</nexus.repository.release>
-       </properties>
-
-       <dependencies>
-               <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>ch.qos.logback</groupId>
-                       <artifactId>logback-core</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>ch.qos.logback</groupId>
-                       <artifactId>logback-classic</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>com.google.guava</groupId>
-                       <artifactId>guava</artifactId>
-               </dependency>
-       </dependencies>
-
-       <modules></modules>
-
-       <build>
-               <directory>${project.basedir}/target</directory>
-               <outputDirectory>${project.build.directory}/classes</outputDirectory>
-               <finalName>${project.artifactId}-${project.version}</finalName>
-               <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
-               <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
-               <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
-               <resources>
-                       <resource>
-                               <directory>${project.basedir}/src/main/resources</directory>
-                       </resource>
-               </resources>
-               <testResources>
-                       <testResource>
-                               <directory>${project.basedir}/src/test/resources</directory>
-                       </testResource>
-               </testResources>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                               <configuration>
-                                       <instructions>
-                                               <Export-Package>org.pcmm*, org.umu.cops*</Export-Package>
-                                       </instructions>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <artifactId>maven-compiler-plugin</artifactId>
-                               <configuration>
-                                       <source>1.7</source>
-                                       <target>1.7</target>
-                               </configuration>
-                       </plugin>
-               </plugins>
-       </build>
+    <url/>
+    <inceptionYear>2013</inceptionYear>
+
+    <licenses>
+        <license>
+        </license>
+    </licenses>
+
+    <mailingLists>
+        <mailingList>
+        </mailingList>
+    </mailingLists>
+
+    <developers>
+        <developer>
+        </developer>
+    </developers>
+
+    <contributors>
+        <contributor>
+        </contributor>
+    </contributors>
+
+    <scm>
+        <connection/>
+        <developerConnection/>
+        <url/>
+    </scm>
+
+    <issueManagement>
+        <system/>
+        <url/>
+    </issueManagement>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
+        <nexus.repository.release>opendaylight.release</nexus.repository.release>
+        <maven.javadoc.skip>true</maven.javadoc.skip>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+    </dependencies>
+
+    <modules/>
+
+    <build>
+        <directory>${project.basedir}/target</directory>
+        <outputDirectory>${project.build.directory}/classes</outputDirectory>
+        <finalName>${project.artifactId}-${project.version}</finalName>
+        <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
+        <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
+        <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>${project.basedir}/src/main/resources</directory>
+            </resource>
+        </resources>
+        <testResources>
+            <testResource>
+                <directory>${project.basedir}/src/test/resources</directory>
+            </testResource>
+        </testResources>
+        <plugins>
+
+        <plugin>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${checkstyle.version}</version>
+          <dependencies>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>checkstyle</artifactId>
+              <version>3.1.0</version>
+            </dependency>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>odl-license</artifactId>
+              <version>3.1.0</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>
+                <configuration>
+                    <instructions>
+                        <Export-Package>org.pcmm*, org.umu.cops*</Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.7</source>
+                    <target>1.7</target>
+                </configuration>
+            </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>