Enforce fail on maven-dependency-plugin warning
[bgpcep.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, 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     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>bundle-parent</artifactId>
16         <version>3.1.0</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.bgpcep</groupId>
21     <artifactId>bgpcep-parent</artifactId>
22     <name>BGPCEP common parent</name>
23     <version>0.10.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <licenses>
27         <license>
28             <name>The Eclipse Public License v1.0</name>
29             <url>http://www.eclipse.org/legal/epl-v10.html</url>
30             <distribution>repo</distribution>
31         </license>
32     </licenses>
33
34     <dependencyManagement>
35         <dependencies>
36             <dependency>
37                 <groupId>org.opendaylight.bgpcep</groupId>
38                 <artifactId>bgpcep-artifacts</artifactId>
39                 <version>${project.version}</version>
40                 <type>pom</type>
41                 <scope>import</scope>
42             </dependency>
43             <!-- ODL-CONTROLLER-ARTIFACTS -->
44             <dependency>
45                 <groupId>org.opendaylight.controller</groupId>
46                 <artifactId>mdsal-artifacts</artifactId>
47                 <version>1.8.0-SNAPSHOT</version>
48                 <scope>import</scope>
49                 <type>pom</type>
50             </dependency>
51             <!-- YANG TOOLS ARTIFACTS -->
52             <dependency>
53                 <groupId>org.opendaylight.yangtools</groupId>
54                 <artifactId>yangtools-artifacts</artifactId>
55                 <version>2.0.5</version>
56                 <scope>import</scope>
57                 <type>pom</type>
58             </dependency>
59             <!-- ODL-MDSAL-ARTIFACTS -->
60             <dependency>
61                 <groupId>org.opendaylight.mdsal</groupId>
62                 <artifactId>mdsal-artifacts</artifactId>
63                 <version>2.5.0-SNAPSHOT</version>
64                 <type>pom</type>
65                 <scope>import</scope>
66             </dependency>
67             <dependency>
68                 <groupId>org.opendaylight.mdsal.model</groupId>
69                 <artifactId>mdsal-model-artifacts</artifactId>
70                 <version>0.13.0-SNAPSHOT</version>
71                 <type>pom</type>
72                 <scope>import</scope>
73             </dependency>
74             <dependency>
75                 <groupId>org.opendaylight.netconf</groupId>
76                 <artifactId>restconf-artifacts</artifactId>
77                 <version>1.8.0-SNAPSHOT</version>
78                 <type>pom</type>
79                 <scope>import</scope>
80             </dependency>
81         </dependencies>
82     </dependencyManagement>
83
84     <reporting>
85         <plugins>
86             <plugin>
87                 <groupId>org.apache.maven.plugins</groupId>
88                 <artifactId>maven-project-info-reports-plugin</artifactId>
89                 <version>${projectinfo}</version>
90                 <configuration>
91                     <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
92                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
93                 </configuration>
94                 <reportSets>
95                     <reportSet>
96                         <reports>
97                             <report>dependency-info</report>
98                             <report>license</report>
99                         </reports>
100                     </reportSet>
101                 </reportSets>
102             </plugin>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-jxr-plugin</artifactId>
106                 <version>2.5</version>
107                 <configuration>
108                     <aggregate>true</aggregate>
109                     <linkJavadoc>true</linkJavadoc>
110                 </configuration>
111             </plugin>
112             <plugin>
113                 <groupId>org.codehaus.mojo</groupId>
114                 <artifactId>findbugs-maven-plugin</artifactId>
115                 <configuration>
116                     <effort>Max</effort>
117                     <threshold>Low</threshold>
118                     <goal>site</goal>
119                 </configuration>
120             </plugin>
121             <plugin>
122                 <groupId>org.codehaus.mojo</groupId>
123                 <artifactId>jdepend-maven-plugin</artifactId>
124                 <version>2.0-beta-2</version>
125             </plugin>
126         </plugins>
127     </reporting>
128
129     <build>
130         <plugins>
131             <plugin>
132                 <groupId>org.apache.maven.plugins</groupId>
133                 <artifactId>maven-compiler-plugin</artifactId>
134                 <configuration>
135                     <source>${java.version.source}</source>
136                     <target>${java.version.target}</target>
137                     <testSource>${java.version.source}</testSource>
138                     <testTarget>${java.version.target}</testTarget>
139                     <showDeprecation>true</showDeprecation>
140                     <showWarnings>true</showWarnings>
141                     <optimize>true</optimize>
142                 </configuration>
143             </plugin>
144             <plugin>
145                 <groupId>org.apache.maven.plugins</groupId>
146                 <artifactId>maven-surefire-plugin</artifactId>
147                 <configuration>
148                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
149                     <runOrder>alphabetical</runOrder>
150                     <threadCount>1</threadCount>
151                     <reuseForks>false</reuseForks>
152                 </configuration>
153             </plugin>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-dependency-plugin</artifactId>
157                 <executions>
158                     <execution>
159                         <id>analyze</id>
160                         <goals>
161                             <goal>analyze-only</goal>
162                         </goals>
163                         <configuration>
164                             <failOnWarning>true</failOnWarning>
165                             <ignoreNonCompile>true</ignoreNonCompile>
166                         </configuration>
167                     </execution>
168                 </executions>
169             </plugin>
170             <plugin>
171                 <groupId>org.apache.maven.plugins</groupId>
172                 <artifactId>maven-checkstyle-plugin</artifactId>
173                 <dependencies>
174                     <dependency>
175                         <groupId>org.opendaylight.yangtools</groupId>
176                         <artifactId>checkstyle-logging</artifactId>
177                         <version>2.0.5</version>
178                     </dependency>
179                 </dependencies>
180                 <configuration>
181                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
182                 </configuration>
183             </plugin>
184             <plugin>
185                 <groupId>org.codehaus.mojo</groupId>
186                 <artifactId>findbugs-maven-plugin</artifactId>
187                 <configuration>
188                     <failOnError>true</failOnError>
189                 </configuration>
190             </plugin>
191         </plugins>
192     </build>
193     <scm>
194         <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
195         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
196         <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
197         <tag>HEAD</tag>
198     </scm>
199 </project>