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