Disable SpotBugs enforcement on select artifacts
[yangtools.git] / yang-validation-tool / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2015 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent</artifactId>
15         <version>6.0.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <groupId>org.opendaylight.yangtools</groupId>
20     <artifactId>yang-validation-tool</artifactId>
21     <version>4.0.0-SNAPSHOT</version>
22
23     <properties>
24         <!-- FIXME: we have some violations here -->
25         <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
26     </properties>
27
28     <dependencyManagement>
29         <dependencies>
30             <dependency>
31                 <groupId>org.opendaylight.yangtools</groupId>
32                 <artifactId>yangtools-artifacts</artifactId>
33                 <version>4.0.0-SNAPSHOT</version>
34                 <scope>import</scope>
35                 <type>pom</type>
36             </dependency>
37         </dependencies>
38     </dependencyManagement>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>yang-test-util</artifactId>
44             <scope>compile</scope>
45         </dependency>
46         <dependency>
47             <groupId>net.sourceforge.argparse4j</groupId>
48             <artifactId>argparse4j</artifactId>
49             <version>0.6.0</version>
50         </dependency>
51         <dependency>
52             <groupId>ch.qos.logback</groupId>
53             <artifactId>logback-classic</artifactId>
54             <scope>compile</scope>
55         </dependency>
56         <dependency>
57             <groupId>com.google.guava</groupId>
58             <artifactId>guava</artifactId>
59         </dependency>
60     </dependencies>
61
62     <build>
63         <plugins>
64             <plugin>
65                 <groupId>org.apache.maven.plugins</groupId>
66                 <artifactId>maven-shade-plugin</artifactId>
67                 <configuration/>
68                 <executions>
69                     <execution>
70                         <goals>
71                             <goal>shade</goal>
72                         </goals>
73                         <phase>package</phase>
74                         <configuration>
75                             <!-- TODO investigate why jar fails without this
76                                 filter -->
77                             <filters>
78                                 <filter>
79                                     <artifact>*:*</artifact>
80                                     <excludes>
81                                         <exclude>META-INF/*.SF</exclude>
82                                         <exclude>META-INF/*.DSA</exclude>
83                                         <exclude>META-INF/*.RSA</exclude>
84                                     </excludes>
85                                 </filter>
86                             </filters>
87                             <transformers>
88                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
89                                     <mainClass>org.opendaylight.yangtools.yang.validation.tool.Main</mainClass>
90                                 </transformer>
91                             </transformers>
92                             <shadedArtifactAttached>true</shadedArtifactAttached>
93                             <shadedClassifierName>executable</shadedClassifierName>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98         </plugins>
99     </build>
100
101 </project>