Bug 8175: Improve SFT TestBundleDiag under Karaf 4
[odlparent.git] / bundles4-test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2016 Red Hat, 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   <modelVersion>4.0.0</modelVersion>
13
14   <parent>
15     <groupId>org.opendaylight.odlparent</groupId>
16     <artifactId>bundle-parent</artifactId>
17     <version>1.8.0-SNAPSHOT</version>
18     <relativePath>../bundle-parent</relativePath>
19   </parent>
20
21   <artifactId>bundles4-test</artifactId>
22   <packaging>bundle</packaging>
23   <name>ODL :: odlparent :: ${project.artifactId}</name>
24
25   <dependencies>
26     <dependency>
27       <groupId>org.osgi</groupId>
28       <artifactId>org.osgi.core</artifactId>
29       <scope>provided</scope>
30     </dependency>
31     <dependency>
32       <groupId>org.apache.karaf.bundle</groupId>
33       <artifactId>org.apache.karaf.bundle.core</artifactId>
34       <version>${karaf4.version}</version>
35       <scope>provided</scope>
36     </dependency>
37     <dependency>
38       <groupId>org.hamcrest</groupId>
39       <artifactId>hamcrest-core</artifactId>
40       <scope>compile</scope>
41     </dependency>
42     <dependency>
43       <groupId>org.awaitility</groupId>
44       <artifactId>awaitility</artifactId>
45       <scope>compile</scope>
46       <exclusions>
47         <exclusion>
48           <groupId>cglib</groupId>
49           <artifactId>cglib-nodep</artifactId>
50         </exclusion>
51         <exclusion>
52           <groupId>org.objenesis</groupId>
53           <artifactId>objenesis</artifactId>
54         </exclusion>
55       </exclusions>
56     </dependency>
57     <!-- BEWARE of adding additional dependencies here...
58          It will cause weird issues e.g. in integration/distribution/features/repos/distribution -->
59     <dependency>
60       <groupId>com.google.truth</groupId>
61       <artifactId>truth</artifactId>
62       <scope>test</scope>
63     </dependency>
64   </dependencies>
65
66   <build>
67     <plugins>
68       <plugin>
69           <groupId>org.apache.felix</groupId>
70           <artifactId>maven-bundle-plugin</artifactId>
71           <configuration>
72             <instructions>
73               <Embed-Dependency>*;scope=compile</Embed-Dependency>
74               <Embed-Transitive>true</Embed-Transitive>
75               <Import-Package>!net.sf.cglib.proxy,!org.objenesis,*</Import-Package>
76             </instructions>
77           </configuration>
78       </plugin>
79       <plugin>
80         <artifactId>maven-checkstyle-plugin</artifactId>
81         <configuration>
82           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
83         </configuration>
84       </plugin>
85       <plugin>
86         <groupId>org.codehaus.mojo</groupId>
87         <artifactId>findbugs-maven-plugin</artifactId>
88         <configuration>
89           <failOnError>true</failOnError>
90         </configuration>
91       </plugin>
92     </plugins>
93   </build>
94
95   <!--
96     Maven Site Configuration
97
98     The following configuration is necessary for maven-site-plugin to
99     correctly identify the correct deployment path for OpenDaylight Maven
100     sites.
101   -->
102   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
103
104   <distributionManagement>
105     <site>
106       <id>opendaylight-site</id>
107       <url>${nexus.site.url}/${project.artifactId}/</url>
108     </site>
109   </distributionManagement>
110
111 </project>