Bump versions by x.y.(z+1)
[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.8.3-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>com.google.guava</groupId>
113           <artifactId>guava</artifactId>
114           <scope>compile</scope>
115         </dependency>
116         <!-- The following, which are just transitive dependencies of bundles4-test,
117              have to be repeated here so that the Embed-Dependency below for maven-bundle-plugin works: -->
118         <dependency>
119           <groupId>org.hamcrest</groupId>
120           <artifactId>hamcrest-core</artifactId>
121           <scope>provided</scope>
122         </dependency>
123         <dependency>
124           <groupId>org.awaitility</groupId>
125           <artifactId>awaitility</artifactId>
126           <scope>provided</scope>
127           <exclusions>
128             <exclusion>
129               <groupId>cglib</groupId>
130               <artifactId>cglib-nodep</artifactId>
131             </exclusion>
132             <exclusion>
133               <groupId>org.objenesis</groupId>
134               <artifactId>objenesis</artifactId>
135             </exclusion>
136           </exclusions>
137         </dependency>
138         <!-- Real <scope>test dependencies, just for SingleFeatureTestUnitTest -->
139         <dependency>
140           <groupId>com.google.truth</groupId>
141           <artifactId>truth</artifactId>
142           <scope>test</scope>
143         </dependency>
144     </dependencies>
145
146     <build>
147         <resources>
148             <resource>
149                 <directory>src/main/resources</directory>
150                 <filtering>true</filtering>
151             </resource>
152         </resources>
153         <plugins>
154             <plugin>
155                 <groupId>org.apache.felix</groupId>
156                 <artifactId>maven-bundle-plugin</artifactId>
157                 <configuration>
158                   <instructions>
159                     <Embed-Dependency>bundles4-test;inline=true,awaitility;inline=true,hamcrest-core;inline=true</Embed-Dependency>
160                     <!-- same as in bundles4-test/pom.xml: -->
161                     <Import-Package>!net.sf.cglib.proxy,!org.objenesis,*</Import-Package>
162                   </instructions>
163                 </configuration>
164             </plugin>
165             <plugin>
166                 <artifactId>maven-checkstyle-plugin</artifactId>
167                 <configuration>
168                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
169                 </configuration>
170                 <executions>
171                     <execution>
172                         <id>check-license</id>
173                         <configuration>
174                             <excludes>
175                                 <!-- Skip Apache Licensed files -->
176                                 org/opendaylight/odlparent/featuretest/CustomBundleUrlStreamHandlerFactory.java
177                             </excludes>
178                         </configuration>
179                     </execution>
180                 </executions>
181             </plugin>
182         </plugins>
183     </build>
184
185   <!--
186     Maven Site Configuration
187
188     The following configuration is necessary for maven-site-plugin to
189     correctly identify the correct deployment path for OpenDaylight Maven
190     sites.
191   -->
192   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
193
194   <distributionManagement>
195     <site>
196       <id>opendaylight-site</id>
197       <url>${nexus.site.url}/${project.artifactId}/</url>
198     </site>
199   </distributionManagement>
200 </project>