Add SpotBugs dependencies
[odlparent.git] / bundles-test-lib / 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>odlparent</artifactId>
17     <version>3.0.0-SNAPSHOT</version>
18     <relativePath>../odlparent</relativePath>
19   </parent>
20
21   <artifactId>bundles-test-lib</artifactId>
22   <name>ODL :: odlparent :: ${project.artifactId}</name>
23
24   <dependencies>
25     <dependency>
26       <groupId>org.osgi</groupId>
27       <artifactId>org.osgi.core</artifactId>
28       <scope>provided</scope>
29     </dependency>
30     <dependency>
31       <groupId>org.apache.karaf.bundle</groupId>
32       <artifactId>org.apache.karaf.bundle.core</artifactId>
33       <version>${karaf.version}</version>
34       <scope>provided</scope>
35     </dependency>
36     <dependency>
37       <groupId>org.hamcrest</groupId>
38       <artifactId>hamcrest-core</artifactId>
39       <scope>compile</scope>
40     </dependency>
41     <dependency>
42       <groupId>org.awaitility</groupId>
43       <artifactId>awaitility</artifactId>
44       <scope>compile</scope>
45       <exclusions>
46         <exclusion>
47           <groupId>cglib</groupId>
48           <artifactId>cglib-nodep</artifactId>
49         </exclusion>
50         <exclusion>
51           <groupId>org.objenesis</groupId>
52           <artifactId>objenesis</artifactId>
53         </exclusion>
54       </exclusions>
55     </dependency>
56     <!-- BEWARE of adding additional dependencies here...
57          It will cause weird issues e.g. in integration/distribution/features/repos/distribution -->
58     <dependency>
59       <groupId>com.google.truth</groupId>
60       <artifactId>truth</artifactId>
61       <scope>test</scope>
62     </dependency>
63   </dependencies>
64
65   <build>
66     <plugins>
67       <plugin>
68         <artifactId>maven-checkstyle-plugin</artifactId>
69         <configuration>
70           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
71         </configuration>
72       </plugin>
73       <plugin>
74         <groupId>com.github.spotbugs</groupId>
75         <artifactId>spotbugs-maven-plugin</artifactId>
76         <configuration>
77           <failOnError>true</failOnError>
78         </configuration>
79       </plugin>
80     </plugins>
81   </build>
82
83   <!--
84     Maven Site Configuration
85
86     The following configuration is necessary for maven-site-plugin to
87     correctly identify the correct deployment path for OpenDaylight Maven
88     sites.
89   -->
90   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
91
92   <distributionManagement>
93     <site>
94       <id>opendaylight-site</id>
95       <url>${nexus.site.url}/${project.artifactId}/</url>
96     </site>
97   </distributionManagement>
98
99 </project>