Release odlparent
[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>13.0.9</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.8.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     <dependency>
81       <groupId>com.github.spotbugs</groupId>
82       <artifactId>spotbugs-annotations</artifactId>
83       <optional>true</optional>
84     </dependency>
85   </dependencies>
86
87   <build>
88     <plugins>
89       <plugin>
90         <artifactId>maven-checkstyle-plugin</artifactId>
91         <executions>
92           <execution>
93             <id>check-license</id>
94             <configuration>
95               <excludes>
96                 <!-- Skip Apache Licensed files -->
97                 org/opendaylight/odlparent/PopulateLocalRepoMojo.java
98               </excludes>
99             </configuration>
100           </execution>
101         </executions>
102       </plugin>
103       <plugin>
104         <artifactId>maven-plugin-plugin</artifactId>
105         <configuration>
106           <goalPrefix>karaf</goalPrefix>
107           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
108         </configuration>
109         <executions>
110           <execution>
111             <id>mojo-descriptor</id>
112             <goals>
113               <goal>descriptor</goal>
114             </goals>
115           </execution>
116           <execution>
117             <id>help-goal</id>
118             <goals>
119               <goal>helpmojo</goal>
120             </goals>
121           </execution>
122         </executions>
123       </plugin>
124       <plugin>
125         <groupId>com.github.spotbugs</groupId>
126         <artifactId>spotbugs-maven-plugin</artifactId>
127         <configuration>
128           <failOnError>true</failOnError>
129           <!-- This ensure we ignore HelpMojo which fails SpotBugs -->
130           <onlyAnalyze>org.opendaylight.odlparent</onlyAnalyze>
131         </configuration>
132       </plugin>
133     </plugins>
134   </build>
135
136 </project>