Cleanup karaf-plugin dependencies
[odlparent.git] / karaf-plugin / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2016 Red Hat, Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8  -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10   <modelVersion>4.0.0</modelVersion>
11   <parent>
12     <groupId>org.opendaylight.odlparent</groupId>
13     <artifactId>odlparent</artifactId>
14     <version>10.0.0-SNAPSHOT</version>
15     <relativePath>../odlparent/</relativePath>
16   </parent>
17   <artifactId>karaf-plugin</artifactId>
18   <packaging>maven-plugin</packaging>
19
20   <name>ODL :: odlparent :: ${project.artifactId}</name>
21
22   <properties>
23     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24   </properties>
25
26   <prerequisites>
27     <maven>3.8.3</maven>
28   </prerequisites>
29
30   <dependencies>
31     <dependency>
32       <groupId>org.apache.maven</groupId>
33       <artifactId>maven-plugin-api</artifactId>
34       <version>3.8.3</version>
35       <scope>provided</scope>
36     </dependency>
37     <dependency>
38       <groupId>org.apache.maven.plugin-tools</groupId>
39       <artifactId>maven-plugin-annotations</artifactId>
40       <version>3.6.2</version>
41       <scope>provided</scope>
42     </dependency>
43     <dependency>
44       <groupId>org.apache.maven</groupId>
45       <artifactId>maven-core</artifactId>
46       <version>3.8.3</version>
47       <scope>provided</scope>
48     </dependency>
49     <dependency>
50       <groupId>org.apache.maven</groupId>
51       <artifactId>maven-model</artifactId>
52       <version>3.8.3</version>
53       <scope>provided</scope>
54     </dependency>
55     <dependency>
56       <groupId>org.ops4j.pax.url</groupId>
57       <artifactId>pax-url-aether</artifactId>
58       <scope>compile</scope>
59     </dependency>
60     <dependency>
61       <groupId>org.apache.karaf.features</groupId>
62       <artifactId>org.apache.karaf.features.core</artifactId>
63       <scope>compile</scope>
64     </dependency>
65     <dependency>
66       <groupId>org.eclipse.aether</groupId>
67       <artifactId>aether-api</artifactId>
68       <version>1.1.0</version>
69     </dependency>
70     <dependency>
71       <groupId>org.osgi</groupId>
72       <artifactId>org.osgi.service.url</artifactId>
73       <scope>runtime</scope>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.odlparent</groupId>
77       <artifactId>karaf-util</artifactId>
78       <version>${project.version}</version>
79     </dependency>
80   </dependencies>
81
82   <build>
83     <plugins>
84       <plugin>
85         <artifactId>maven-checkstyle-plugin</artifactId>
86         <executions>
87           <execution>
88             <id>check-license</id>
89             <configuration>
90               <excludes>
91                 <!-- Skip Apache Licensed files -->
92                 org/opendaylight/odlparent/PopulateLocalRepoMojo.java
93               </excludes>
94             </configuration>
95           </execution>
96         </executions>
97       </plugin>
98       <plugin>
99         <artifactId>maven-plugin-plugin</artifactId>
100         <configuration>
101           <goalPrefix>karaf</goalPrefix>
102           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
103         </configuration>
104         <executions>
105           <execution>
106             <id>mojo-descriptor</id>
107             <goals>
108               <goal>descriptor</goal>
109             </goals>
110           </execution>
111           <execution>
112             <id>help-goal</id>
113             <goals>
114               <goal>helpmojo</goal>
115             </goals>
116           </execution>
117         </executions>
118       </plugin>
119       <plugin>
120         <groupId>com.github.spotbugs</groupId>
121         <artifactId>spotbugs-maven-plugin</artifactId>
122         <configuration>
123           <failOnError>true</failOnError>
124           <!-- This ensure we ignore HelpMojo which fails SpotBugs -->
125           <onlyAnalyze>org.opendaylight.odlparent</onlyAnalyze>
126         </configuration>
127       </plugin>
128     </plugins>
129   </build>
130
131 </project>