Bump to odlparent 3.1.0 and yangtools 2.0.3
[packetcable.git] / packetcable-driver / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.packetcable</groupId>
7         <artifactId>packetcable</artifactId>
8         <version>1.8.0-SNAPSHOT</version>
9         <relativePath>..</relativePath>
10     </parent>
11     <artifactId>packetcable-driver</artifactId>
12     <packaging>bundle</packaging>
13
14     <description>
15         A lightweight implementation of PCMM COPS PDP client
16     </description>
17
18     <url/>
19     <inceptionYear>2013</inceptionYear>
20
21     <licenses>
22         <license>
23         </license>
24     </licenses>
25
26     <mailingLists>
27         <mailingList>
28         </mailingList>
29     </mailingLists>
30
31     <developers>
32         <developer>
33         </developer>
34     </developers>
35
36     <contributors>
37         <contributor>
38         </contributor>
39     </contributors>
40
41     <scm>
42         <connection/>
43         <developerConnection/>
44         <url/>
45     </scm>
46
47     <issueManagement>
48         <system/>
49         <url/>
50     </issueManagement>
51
52     <properties>
53         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54         <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
55         <nexus.repository.release>opendaylight.release</nexus.repository.release>
56         <maven.javadoc.skip>true</maven.javadoc.skip>
57     </properties>
58
59     <dependencies>
60         <dependency>
61             <groupId>junit</groupId>
62             <artifactId>junit</artifactId>
63             <scope>test</scope>
64         </dependency>
65
66         <dependency>
67             <groupId>com.google.guava</groupId>
68             <artifactId>guava</artifactId>
69         </dependency>
70     </dependencies>
71
72     <modules/>
73
74     <build>
75         <directory>${project.basedir}/target</directory>
76         <outputDirectory>${project.build.directory}/classes</outputDirectory>
77         <finalName>${project.artifactId}-${project.version}</finalName>
78         <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
79         <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
80         <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
81         <resources>
82             <resource>
83                 <directory>${project.basedir}/src/main/resources</directory>
84             </resource>
85         </resources>
86         <testResources>
87             <testResource>
88                 <directory>${project.basedir}/src/test/resources</directory>
89             </testResource>
90         </testResources>
91         <plugins>
92
93         <plugin>
94           <artifactId>maven-checkstyle-plugin</artifactId>
95           <version>${checkstyle.version}</version>
96           <dependencies>
97             <dependency>
98               <groupId>org.opendaylight.odlparent</groupId>
99               <artifactId>checkstyle</artifactId>
100               <version>3.1.0</version>
101             </dependency>
102             <dependency>
103               <groupId>org.opendaylight.odlparent</groupId>
104               <artifactId>odl-license</artifactId>
105               <version>3.1.0</version>
106             </dependency>
107           </dependencies>
108
109           <executions>
110             <execution>
111               <id>check-license</id>
112               <goals>
113                 <goal>check</goal>
114               </goals>
115               <phase>process-sources</phase>
116               <configuration>
117                 <configLocation>check-license.xml</configLocation>
118                 <includeResources>false</includeResources>
119                 <includeTestResources>false</includeTestResources>
120                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
121                 <excludes>
122                   org/opendaylight/yang/gen/**,
123                   **/protobuff/messages/**,
124                   **/thrift/gen/*.java,
125                   **/org/umu/cops/**
126                 </excludes>
127                 <failsOnError>false</failsOnError>
128                 <consoleOutput>true</consoleOutput>
129               </configuration>
130             </execution>
131           </executions>
132         </plugin>
133
134             <plugin>
135                 <groupId>org.apache.felix</groupId>
136                 <artifactId>maven-bundle-plugin</artifactId>
137                 <configuration>
138                     <instructions>
139                         <Export-Package>org.pcmm*, org.umu.cops*</Export-Package>
140                     </instructions>
141                 </configuration>
142             </plugin>
143             <plugin>
144                 <artifactId>maven-compiler-plugin</artifactId>
145                 <configuration>
146                     <source>1.7</source>
147                     <target>1.7</target>
148                 </configuration>
149             </plugin>
150         </plugins>
151     </build>
152
153   <profiles>
154     <!-- Disable Java 8 linter since umu/cops fails it -->
155     <profile>
156       <id>jdk8</id>
157       <activation>
158         <jdk>[1.8,)</jdk>
159       </activation>
160       <properties>
161         <additionalparam>-Xdoclint:none</additionalparam>
162       </properties>
163     </profile>
164   </profiles>
165 </project>