Enforce fail on maven-dependency-plugin warning
[bgpcep.git] / testtool-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2018 AT&T Intellectual Property. 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
10 <project xmlns="http://maven.apache.org/POM/4.0.0"
11          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13     <modelVersion>4.0.0</modelVersion>
14     <parent>
15         <groupId>org.opendaylight.odlparent</groupId>
16         <artifactId>odlparent</artifactId>
17         <version>3.1.0</version>
18         <relativePath/>
19     </parent>
20
21     <groupId>org.opendaylight.bgpcep</groupId>
22     <artifactId>testtool-parent</artifactId>
23     <version>0.10.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25     <name>${project.artifactId}</name>
26
27     <dependencyManagement>
28         <dependencies>
29             <dependency>
30                 <groupId>org.opendaylight.bgpcep</groupId>
31                 <artifactId>bgpcep-parent</artifactId>
32                 <version>${project.version}</version>
33                 <type>pom</type>
34                 <scope>import</scope>
35             </dependency>
36         </dependencies>
37     </dependencyManagement>
38
39     <dependencies>
40         <dependency>
41             <groupId>junit</groupId>
42             <artifactId>junit</artifactId>
43         </dependency>
44     </dependencies>
45
46     <build>
47         <plugins>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-checkstyle-plugin</artifactId>
51                 <configuration>
52                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
53                 </configuration>
54                 <dependencies>
55                     <dependency>
56                         <groupId>org.opendaylight.yangtools</groupId>
57                         <artifactId>checkstyle-logging</artifactId>
58                         <version>2.0.5</version>
59                     </dependency>
60                 </dependencies>
61             </plugin>
62             <plugin>
63                 <groupId>org.codehaus.mojo</groupId>
64                 <artifactId>findbugs-maven-plugin</artifactId>
65                 <configuration>
66                     <failOnError>true</failOnError>
67                 </configuration>
68             </plugin>
69             <plugin>
70                 <groupId>org.apache.maven.plugins</groupId>
71                 <artifactId>maven-dependency-plugin</artifactId>
72                 <executions>
73                     <execution>
74                         <id>analyze</id>
75                         <goals>
76                             <goal>analyze-only</goal>
77                         </goals>
78                         <configuration>
79                             <failOnWarning>true</failOnWarning>
80                             <ignoreNonCompile>true</ignoreNonCompile>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85         </plugins>
86     </build>
87
88     <scm>
89         <connection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</connection>
90         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/bgpcep.git</developerConnection>
91         <url>https://wiki.opendaylight.org/view/BGP_LS_PCEP:Main</url>
92         <tag>HEAD</tag>
93     </scm>
94 </project>