Bump maven-checkstyle-plugin to 3.4.0
[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>14.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.9.5</maven>
28   </prerequisites>
29
30   <dependencies>
31     <dependency>
32       <groupId>com.github.spotbugs</groupId>
33       <artifactId>spotbugs-annotations</artifactId>
34       <optional>true</optional>
35     </dependency>
36     <dependency>
37       <groupId>org.checkerframework</groupId>
38       <artifactId>checker-qual</artifactId>
39       <scope>provided</scope>
40     </dependency>
41     <dependency>
42       <groupId>org.apache.maven</groupId>
43       <artifactId>maven-plugin-api</artifactId>
44     </dependency>
45     <dependency>
46       <groupId>org.apache.maven.plugin-tools</groupId>
47       <artifactId>maven-plugin-annotations</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>org.apache.maven</groupId>
51       <artifactId>maven-core</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>org.apache.maven</groupId>
55       <artifactId>maven-model</artifactId>
56     </dependency>
57     <dependency>
58       <groupId>org.apache.karaf.features</groupId>
59       <artifactId>org.apache.karaf.features.core</artifactId>
60       <scope>compile</scope>
61     </dependency>
62     <dependency>
63       <groupId>org.apache.maven.resolver</groupId>
64       <artifactId>maven-resolver-api</artifactId>
65     </dependency>
66     <dependency>
67       <groupId>org.opendaylight.odlparent</groupId>
68       <artifactId>karaf-util</artifactId>
69       <version>${project.version}</version>
70     </dependency>
71     <dependency>
72       <groupId>org.ops4j.pax.url</groupId>
73       <artifactId>pax-url-aether</artifactId>
74       <scope>compile</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.osgi</groupId>
78       <artifactId>org.osgi.service.url</artifactId>
79       <scope>runtime</scope>
80     </dependency>
81   </dependencies>
82
83   <build>
84     <plugins>
85       <plugin>
86         <artifactId>maven-checkstyle-plugin</artifactId>
87         <executions>
88           <execution>
89             <id>check-license</id>
90             <configuration>
91               <excludes>
92                 <!-- Skip Apache Licensed files -->
93                 org/opendaylight/odlparent/PopulateLocalRepoMojo.java
94               </excludes>
95             </configuration>
96           </execution>
97         </executions>
98       </plugin>
99       <plugin>
100         <artifactId>maven-plugin-plugin</artifactId>
101         <configuration>
102           <goalPrefix>karaf</goalPrefix>
103           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
104         </configuration>
105         <executions>
106           <execution>
107             <id>mojo-descriptor</id>
108             <goals>
109               <goal>descriptor</goal>
110             </goals>
111           </execution>
112           <execution>
113             <id>help-goal</id>
114             <goals>
115               <goal>helpmojo</goal>
116             </goals>
117           </execution>
118         </executions>
119       </plugin>
120       <plugin>
121         <groupId>com.github.spotbugs</groupId>
122         <artifactId>spotbugs-maven-plugin</artifactId>
123         <configuration>
124           <failOnError>true</failOnError>
125           <!-- This ensure we ignore HelpMojo which fails SpotBugs -->
126           <onlyAnalyze>org.opendaylight.odlparent</onlyAnalyze>
127         </configuration>
128       </plugin>
129     </plugins>
130   </build>
131
132 </project>