cde7f057bd15463735cdfbc22f4b3392e007170e
[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>3.1.3</version>
16         <relativePath/>
17     </parent>
18
19     <groupId>org.opendaylight.yangtools</groupId>
20     <artifactId>yang-validation-tool</artifactId>
21     <version>2.0.6.2-SNAPSHOT</version>
22
23     <dependencyManagement>
24         <dependencies>
25             <dependency>
26                 <groupId>org.opendaylight.yangtools</groupId>
27                 <artifactId>yangtools-artifacts</artifactId>
28                 <version>2.0.6.2-SNAPSHOT</version>
29                 <scope>import</scope>
30                 <type>pom</type>
31             </dependency>
32         </dependencies>
33     </dependencyManagement>
34
35     <dependencies>
36         <dependency>
37             <groupId>org.opendaylight.yangtools</groupId>
38             <artifactId>yang-test-util</artifactId>
39             <scope>compile</scope>
40         </dependency>
41         <dependency>
42             <groupId>net.sourceforge.argparse4j</groupId>
43             <artifactId>argparse4j</artifactId>
44             <version>0.6.0</version>
45         </dependency>
46         <dependency>
47             <groupId>ch.qos.logback</groupId>
48             <artifactId>logback-classic</artifactId>
49             <scope>compile</scope>
50         </dependency>
51         <dependency>
52             <groupId>com.google.guava</groupId>
53             <artifactId>guava</artifactId>
54         </dependency>
55     </dependencies>
56
57     <build>
58         <plugins>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-shade-plugin</artifactId>
62                 <configuration/>
63                 <executions>
64                     <execution>
65                         <goals>
66                             <goal>shade</goal>
67                         </goals>
68                         <phase>package</phase>
69                         <configuration>
70                             <!-- TODO investigate why jar fails without this
71                                 filter -->
72                             <filters>
73                                 <filter>
74                                     <artifact>*:*</artifact>
75                                     <excludes>
76                                         <exclude>META-INF/*.SF</exclude>
77                                         <exclude>META-INF/*.DSA</exclude>
78                                         <exclude>META-INF/*.RSA</exclude>
79                                     </excludes>
80                                 </filter>
81                             </filters>
82                             <transformers>
83                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
84                                     <mainClass>org.opendaylight.yangtools.yang.validation.tool.Main</mainClass>
85                                 </transformer>
86                             </transformers>
87                             <shadedArtifactAttached>true</shadedArtifactAttached>
88                             <shadedClassifierName>executable</shadedClassifierName>
89                         </configuration>
90                     </execution>
91                 </executions>
92             </plugin>
93         </plugins>
94     </build>
95
96 </project>