36511c92490722db2f2e39d50f520d1a111b95c4
[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"
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>odlparent</artifactId>
16         <version>1.8.4-SNAPSHOT</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>yang-validation-tool</artifactId>
22     <version>1.1.4-SNAPSHOT</version>
23
24     <dependencyManagement>
25         <dependencies>
26             <dependency>
27                 <groupId>org.opendaylight.yangtools</groupId>
28                 <artifactId>yangtools-artifacts</artifactId>
29                 <version>1.1.4-SNAPSHOT</version>
30                 <scope>import</scope>
31                 <type>pom</type>
32             </dependency>
33         </dependencies>
34     </dependencyManagement>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.opendaylight.yangtools</groupId>
39             <artifactId>yang-test-util</artifactId>
40             <scope>compile</scope>
41         </dependency>
42         <dependency>
43             <groupId>net.sourceforge.argparse4j</groupId>
44             <artifactId>argparse4j</artifactId>
45             <version>0.6.0</version>
46         </dependency>
47         <dependency>
48             <groupId>ch.qos.logback</groupId>
49             <artifactId>logback-classic</artifactId>
50             <scope>compile</scope>
51         </dependency>
52         <dependency>
53             <groupId>com.google.guava</groupId>
54             <artifactId>guava</artifactId>
55         </dependency>
56     </dependencies>
57
58     <build>
59         <plugins>
60             <plugin>
61                 <groupId>org.apache.maven.plugins</groupId>
62                 <artifactId>maven-shade-plugin</artifactId>
63                 <configuration></configuration>
64                 <executions>
65                     <execution>
66                         <goals>
67                             <goal>shade</goal>
68                         </goals>
69                         <phase>package</phase>
70                         <configuration>
71                             <!-- TODO investigate why jar fails without this
72                                 filter -->
73                             <filters>
74                                 <filter>
75                                     <artifact>*:*</artifact>
76                                     <excludes>
77                                         <exclude>META-INF/*.SF</exclude>
78                                         <exclude>META-INF/*.DSA</exclude>
79                                         <exclude>META-INF/*.RSA</exclude>
80                                     </excludes>
81                                 </filter>
82                             </filters>
83                             <transformers>
84                                 <transformer
85                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
86                                     <mainClass>org.opendaylight.yangtools.yang.validation.tool.Main</mainClass>
87                                 </transformer>
88                             </transformers>
89                             <shadedArtifactAttached>true</shadedArtifactAttached>
90                             <shadedClassifierName>executable</shadedClassifierName>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95         </plugins>
96     </build>
97
98   <!--
99       Maven Site Configuration
100
101       The following configuration is necessary for maven-site-plugin to
102       correctly identify the correct deployment path for OpenDaylight Maven
103       sites.
104   -->
105   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
106
107   <distributionManagement>
108     <site>
109       <id>opendaylight-site</id>
110       <url>${nexus.site.url}/${project.artifactId}/</url>
111     </site>
112   </distributionManagement>
113 </project>