Release odlparent
[odlparent.git] / features-test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright © 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>bundle-parent</artifactId>
16         <version>13.1.0</version>
17         <relativePath>../bundle-parent</relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>features-test</artifactId>
22     <packaging>bundle</packaging>
23     <name>ODL :: odlparent :: ${project.artifactId}</name>
24
25     <properties>
26         <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
27     </properties>
28
29     <dependencies>
30         <!-- Dependencies for pax exam karaf container -->
31         <dependency>
32             <groupId>org.ops4j.pax.exam</groupId>
33             <artifactId>pax-exam-container-karaf</artifactId>
34             <scope>compile</scope>
35         </dependency>
36         <dependency>
37             <groupId>org.ops4j.pax.exam</groupId>
38             <artifactId>pax-exam-junit4</artifactId>
39             <scope>compile</scope>
40         </dependency>
41         <dependency>
42             <groupId>org.ops4j.pax.exam</groupId>
43             <artifactId>pax-exam</artifactId>
44             <scope>compile</scope>
45         </dependency>
46         <dependency>
47             <groupId>org.ops4j.pax.url</groupId>
48             <artifactId>pax-url-aether</artifactId>
49             <scope>compile</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.osgi</groupId>
53             <!-- required due to https://jira.opendaylight.org/browse/ODLPARENT-136 -->
54             <artifactId>org.osgi.service.resolver</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.karaf.features</groupId>
58             <artifactId>standard</artifactId>
59             <version>${karaf.version}</version>
60             <classifier>features</classifier>
61             <type>xml</type>
62         </dependency>
63         <dependency>
64             <groupId>junit</groupId>
65             <artifactId>junit</artifactId>
66             <scope>compile</scope>
67         </dependency>
68         <dependency>
69             <groupId>org.apache.karaf.deployer</groupId>
70             <artifactId>org.apache.karaf.deployer.blueprint</artifactId>
71             <scope>compile</scope>
72         </dependency>
73         <dependency>
74             <groupId>org.apache.karaf.deployer</groupId>
75             <artifactId>org.apache.karaf.deployer.features</artifactId>
76             <scope>compile</scope>
77         </dependency>
78         <dependency>
79             <groupId>org.ops4j.pax.url</groupId>
80             <artifactId>pax-url-wrap</artifactId>
81             <scope>compile</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.slf4j</groupId>
85             <artifactId>slf4j-api</artifactId>
86             <scope>compile</scope>
87         </dependency>
88         <dependency>
89             <groupId>com.guicedee.services</groupId>
90             <artifactId>javax.inject</artifactId>
91             <scope>compile</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.osgi</groupId>
95             <artifactId>org.osgi.framework</artifactId>
96             <scope>compile</scope>
97         </dependency>
98         <dependency>
99             <groupId>org.eclipse.jdt</groupId>
100             <artifactId>org.eclipse.jdt.annotation</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>org.opendaylight.odlparent</groupId>
104             <artifactId>opendaylight-karaf-empty</artifactId>
105             <type>zip</type>
106         </dependency>
107         <!-- BEWARE of adding additional dependencies here...
108              It will cause weird issues e.g. in integration/distribution/features/repos/distribution -->
109         <dependency>
110           <groupId>org.opendaylight.odlparent</groupId>
111           <artifactId>karaf-util</artifactId>
112           <version>${project.version}</version>
113         </dependency>
114         <dependency>
115             <groupId>${project.groupId}</groupId>
116             <artifactId>bundles4-test</artifactId>
117             <version>${project.version}</version>
118             <scope>provided</scope>
119         </dependency>
120         <dependency>
121             <groupId>org.apache.karaf.bundle</groupId>
122             <artifactId>org.apache.karaf.bundle.core</artifactId>
123             <scope>provided</scope>
124         </dependency>
125         <dependency>
126             <groupId>com.google.guava</groupId>
127             <artifactId>guava</artifactId>
128             <scope>compile</scope>
129         </dependency>
130
131         <!-- The following, which are just transitive dependencies of bundles4-test,
132              have to be repeated here so that the Embed-Dependency below for maven-bundle-plugin works: -->
133         <dependency>
134             <groupId>org.hamcrest</groupId>
135             <artifactId>hamcrest</artifactId>
136             <scope>provided</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.awaitility</groupId>
140             <artifactId>awaitility</artifactId>
141             <scope>provided</scope>
142             <exclusions>
143                 <exclusion>
144                     <groupId>cglib</groupId>
145                     <artifactId>cglib-nodep</artifactId>
146                 </exclusion>
147                 <exclusion>
148                     <groupId>org.objenesis</groupId>
149                     <artifactId>objenesis</artifactId>
150                 </exclusion>
151             </exclusions>
152         </dependency>
153     </dependencies>
154
155     <build>
156         <resources>
157             <resource>
158                 <directory>src/main/resources</directory>
159                 <filtering>true</filtering>
160             </resource>
161         </resources>
162         <plugins>
163             <plugin>
164                 <groupId>org.apache.felix</groupId>
165                 <artifactId>maven-bundle-plugin</artifactId>
166                 <configuration>
167                   <instructions>
168                     <Embed-Dependency>bundles4-test;inline=true,awaitility;inline=true,hamcrest;inline=true</Embed-Dependency>
169                     <!-- same as in bundles4-test/pom.xml: -->
170                     <Import-Package>!net.sf.cglib.proxy,!org.objenesis,*</Import-Package>
171                   </instructions>
172                 </configuration>
173             </plugin>
174             <plugin>
175                 <artifactId>maven-checkstyle-plugin</artifactId>
176                 <executions>
177                     <execution>
178                         <id>check-license</id>
179                         <configuration>
180                             <excludes>
181                                 <!-- Skip Apache Licensed files -->
182                                 org/opendaylight/odlparent/featuretest/CustomBundleUrlStreamHandlerFactory.java
183                             </excludes>
184                         </configuration>
185                     </execution>
186                 </executions>
187             </plugin>
188         </plugins>
189     </build>
190
191 </project>