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