Bump versions by x.(y+1).z for next dev cycle
[aaa.git] / aaa-cli-jar / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2016 Red Hat, Inc. and others. 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 INTERNAL
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   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
13   <parent>
14     <groupId>org.opendaylight.aaa</groupId>
15     <artifactId>aaa-parent</artifactId>
16     <version>0.7.0-SNAPSHOT</version>
17     <relativePath>../parent</relativePath>
18   </parent>
19
20   <artifactId>aaa-cli-jar</artifactId>
21   <name>ODL :: aaa :: ${project.artifactId}</name>
22   <packaging>jar</packaging>
23
24   <dependencies>
25     <dependency>
26       <groupId>com.google.guava</groupId>
27       <artifactId>guava</artifactId>
28     </dependency>
29     <dependency>
30       <groupId>net.sf.jopt-simple</groupId>
31       <artifactId>jopt-simple</artifactId>
32       <version>5.0.3</version>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.aaa</groupId>
36       <artifactId>aaa-h2-store</artifactId>
37       <exclusions>
38         <exclusion>
39           <!-- Completely disable transitive dependencies -->
40           <groupId>*</groupId>
41           <artifactId>*</artifactId>
42         </exclusion>
43       </exclusions>
44     </dependency>
45     <!-- Now repeat the few really needed dependencies which we would normally get transitively -->
46     <dependency>
47       <groupId>org.opendaylight.aaa</groupId>
48       <artifactId>aaa-authn-api</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>org.apache.commons</groupId>
52       <artifactId>commons-lang3</artifactId>
53     </dependency>
54
55     <!-- Note that com.h2database:h2 is already shaded into aaa-h2-store -->
56
57     <!-- Now for the FAT JAR we need to fix up some <scope>provided to be <scope>compile -->
58     <dependency>
59       <groupId>org.slf4j</groupId>
60       <artifactId>slf4j-api</artifactId>
61       <scope>compile</scope> <!-- Not provided -->
62     </dependency>
63     <dependency>
64       <groupId>org.slf4j</groupId>
65       <artifactId>slf4j-simple</artifactId>
66       <scope>compile</scope> <!-- Not test -->
67     </dependency>
68
69     <!-- Testing Dependencies -->
70     <dependency>
71       <groupId>junit</groupId>
72       <artifactId>junit</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>com.google.truth</groupId>
76       <artifactId>truth</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.mockito</groupId>
80       <artifactId>mockito-core</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>org.opendaylight.yangtools</groupId>
84       <artifactId>testutils</artifactId>
85     </dependency>
86   </dependencies>
87
88   <build>
89     <plugins>
90       <plugin>
91         <artifactId>maven-failsafe-plugin</artifactId>
92         <!-- TODO Remove when https://git.opendaylight.org/gerrit/#/c/48400/ is merged -->
93         <executions>
94           <execution>
95             <id>integration-test</id>
96             <goals>
97               <goal>integration-test</goal>
98             </goals>
99           </execution>
100           <execution>
101             <id>verify</id>
102             <goals>
103               <goal>verify</goal>
104             </goals>
105           </execution>
106         </executions>
107       </plugin>
108       <plugin>
109         <groupId>org.apache.maven.plugins</groupId>
110         <artifactId>maven-shade-plugin</artifactId>
111         <executions>
112           <execution>
113             <id>shade</id>
114             <phase>package</phase>
115             <goals>
116               <goal>shade</goal>
117             </goals>
118             <configuration>
119               <createDependencyReducedPom>false</createDependencyReducedPom>
120               <minimizeJar>true</minimizeJar>
121               <filters>
122                 <filter>
123                   <artifact>org.opendaylight.aaa:aaa-h2-store</artifact>
124                   <includes>
125                     <include>org/opendaylight/**</include>
126                     <include>org/h2/Driver.class</include>
127                     <include>org/h2/upgrade/**</include>
128                     <include>org/h2/util/**</include>
129                     <include>org/h2/jdbc/**</include>
130                     <include>org/h2/message/**</include>
131                     <include>org/h2/value/**</include>
132                     <include>org/h2/engine/**</include>
133                     <include>org/h2/command/**</include>
134                     <include>org/h2/security/**</include>
135                     <include>org/h2/store/**</include>
136                     <include>org/h2/compress/**</include>
137                     <include>org/h2/schema/**</include>
138                     <include>org/h2/result/**</include>
139                     <include>org/h2/api/**</include>
140                     <include>org/h2/mvstore/**</include>
141                     <include>org/h2/table/**</include>
142                     <include>org/h2/expression/**</include>
143                     <include>org/h2/index/**</include>
144                     <include>org/h2/constraint/**</include>
145                   </includes>
146                 </filter>
147               </filters>
148               <transformers>
149                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
150                   <mainClass>org.opendaylight.aaa.cli.jar.Main</mainClass>
151                 </transformer>
152               </transformers>
153             </configuration>
154           </execution>
155         </executions>
156       </plugin>
157       <plugin>
158         <groupId>org.apache.maven.plugins</groupId>
159         <artifactId>maven-checkstyle-plugin</artifactId>
160          <configuration>
161           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
162         </configuration>
163       </plugin>
164 <!-- TODO
165       <plugin>
166         <groupId>org.codehaus.mojo</groupId>
167         <artifactId>findbugs-maven-plugin</artifactId>
168         <configuration>
169           <failOnError>true</failOnError>
170         </configuration>
171       </plugin>
172   -->
173     </plugins>
174   </build>
175
176 </project>