Bump odlparent for next dev cycle
[odlparent.git] / features4-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>1.9.1-SNAPSHOT</version>
17         <relativePath>../bundle-parent</relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>features4-test</artifactId>
22     <packaging>bundle</packaging>
23     <name>ODL :: odlparent :: ${project.artifactId}</name>
24
25     <dependencies>
26         <!-- Dependencies for pax exam karaf container -->
27         <dependency>
28             <groupId>org.ops4j.pax.exam</groupId>
29             <artifactId>pax-exam-container-karaf</artifactId>
30             <scope>compile</scope>
31         </dependency>
32         <dependency>
33             <groupId>org.ops4j.pax.exam</groupId>
34             <artifactId>pax-exam-junit4</artifactId>
35             <scope>compile</scope>
36         </dependency>
37         <dependency>
38             <groupId>org.ops4j.pax.exam</groupId>
39             <artifactId>pax-exam</artifactId>
40             <scope>compile</scope>
41         </dependency>
42         <dependency>
43             <groupId>org.ops4j.pax.url</groupId>
44             <artifactId>pax-url-aether</artifactId>
45             <scope>compile</scope>
46         </dependency>
47         <dependency>
48             <groupId>org.apache.maven.wagon</groupId>
49             <artifactId>wagon-http</artifactId>
50             <version>2.10</version>
51             <scope>compile</scope>
52         </dependency>
53         <dependency>
54             <groupId>org.apache.karaf.features</groupId>
55             <artifactId>standard</artifactId>
56             <version>${karaf4.version}</version>
57             <classifier>features</classifier>
58             <type>xml</type>
59         </dependency>
60         <dependency>
61             <groupId>junit</groupId>
62             <artifactId>junit</artifactId>
63             <scope>compile</scope>
64         </dependency>
65         <dependency>
66             <groupId>org.apache.karaf.deployer</groupId>
67             <artifactId>org.apache.karaf.deployer.blueprint</artifactId>
68             <version>${karaf4.version}</version>
69             <scope>compile</scope>
70         </dependency>
71         <dependency>
72             <groupId>org.apache.karaf.deployer</groupId>
73             <artifactId>org.apache.karaf.deployer.features</artifactId>
74             <version>${karaf4.version}</version>
75             <scope>compile</scope>
76         </dependency>
77         <dependency>
78             <groupId>org.ops4j.pax.url</groupId>
79             <artifactId>pax-url-wrap</artifactId>
80             <scope>compile</scope>
81         </dependency>
82         <dependency>
83             <groupId>org.slf4j</groupId>
84             <artifactId>slf4j-api</artifactId>
85             <scope>compile</scope>
86         </dependency>
87         <dependency>
88             <groupId>javax.inject</groupId>
89             <artifactId>javax.inject</artifactId>
90             <scope>compile</scope>
91         </dependency>
92         <dependency>
93             <groupId>org.osgi</groupId>
94             <artifactId>org.osgi.core</artifactId>
95             <scope>compile</scope>
96         </dependency>
97         <dependency>
98             <groupId>org.apache.karaf</groupId>
99             <artifactId>apache-karaf</artifactId>
100             <version>${karaf4.version}</version>
101             <type>zip</type>
102         </dependency>
103         <!-- BEWARE of adding additional dependencies here...
104              It will cause weird issues e.g. in integration/distribution/features/repos/distribution -->
105         <dependency>
106             <groupId>${project.groupId}</groupId>
107             <artifactId>bundles4-test</artifactId>
108             <version>${project.version}</version>
109             <scope>provided</scope>
110         </dependency>
111         <dependency>
112             <groupId>org.apache.karaf.bundle</groupId>
113             <artifactId>org.apache.karaf.bundle.core</artifactId>
114             <version>${karaf4.version}</version>
115             <scope>provided</scope>
116         </dependency>
117         <dependency>
118           <groupId>com.google.guava</groupId>
119           <artifactId>guava</artifactId>
120           <scope>compile</scope>
121         </dependency>
122         <!-- The following, which are just transitive dependencies of bundles4-test,
123              have to be repeated here so that the Embed-Dependency below for maven-bundle-plugin works: -->
124         <dependency>
125           <groupId>org.hamcrest</groupId>
126           <artifactId>hamcrest-core</artifactId>
127           <scope>provided</scope>
128         </dependency>
129         <dependency>
130           <groupId>org.awaitility</groupId>
131           <artifactId>awaitility</artifactId>
132           <scope>provided</scope>
133           <exclusions>
134             <exclusion>
135               <groupId>cglib</groupId>
136               <artifactId>cglib-nodep</artifactId>
137             </exclusion>
138             <exclusion>
139               <groupId>org.objenesis</groupId>
140               <artifactId>objenesis</artifactId>
141             </exclusion>
142           </exclusions>
143         </dependency>
144         <!-- Real <scope>test dependencies, just for SingleFeatureTestUnitTest -->
145         <dependency>
146           <groupId>com.google.truth</groupId>
147           <artifactId>truth</artifactId>
148           <scope>test</scope>
149         </dependency>
150     </dependencies>
151
152     <build>
153         <resources>
154             <resource>
155                 <directory>src/main/resources</directory>
156                 <filtering>true</filtering>
157             </resource>
158         </resources>
159         <plugins>
160             <plugin>
161                 <groupId>org.apache.felix</groupId>
162                 <artifactId>maven-bundle-plugin</artifactId>
163                 <configuration>
164                   <instructions>
165                     <Embed-Dependency>bundles4-test;inline=true,awaitility;inline=true,hamcrest-core;inline=true</Embed-Dependency>
166                     <!-- same as in bundles4-test/pom.xml: -->
167                     <Import-Package>!net.sf.cglib.proxy,!org.objenesis,*</Import-Package>
168                   </instructions>
169                 </configuration>
170             </plugin>
171             <plugin>
172                 <artifactId>maven-checkstyle-plugin</artifactId>
173                 <configuration>
174                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
175                 </configuration>
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   <!--
192     Maven Site Configuration
193
194     The following configuration is necessary for maven-site-plugin to
195     correctly identify the correct deployment path for OpenDaylight Maven
196     sites.
197   -->
198   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
199
200   <distributionManagement>
201     <site>
202       <id>opendaylight-site</id>
203       <url>${nexus.site.url}/${project.artifactId}/</url>
204     </site>
205   </distributionManagement>
206 </project>