Remove the aaa-authn-idpmapping bundle from AAA features
[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.5.0-SNAPSHOT</version>
17     <relativePath>../parent</relativePath>
18   </parent>
19
20   <artifactId>aaa-cli-jar</artifactId>
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.3</version>
32     </dependency>
33     <dependency>
34       <groupId>org.opendaylight.aaa</groupId>
35       <artifactId>aaa-h2-store</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     <!-- Note that com.h2database:h2 is already shaded into aaa-h2-store -->
50
51     <!-- Now for the FAT JAR we need to fix up some <scope>provided to be <scope>compile -->
52     <dependency>
53       <groupId>org.slf4j</groupId>
54       <artifactId>slf4j-api</artifactId>
55       <scope>compile</scope> <!-- Not provided -->
56     </dependency>
57     <dependency>
58       <groupId>org.slf4j</groupId>
59       <artifactId>slf4j-simple</artifactId>
60       <scope>compile</scope> <!-- Not test -->
61     </dependency>
62
63     <!-- Testing Dependencies -->
64     <dependency>
65       <groupId>junit</groupId>
66       <artifactId>junit</artifactId>
67     </dependency>
68     <dependency>
69       <groupId>com.google.truth</groupId>
70       <artifactId>truth</artifactId>
71     </dependency>
72     <dependency>
73       <groupId>org.mockito</groupId>
74       <artifactId>mockito-core</artifactId>
75     </dependency>
76     <dependency>
77       <groupId>org.opendaylight.yangtools</groupId>
78       <artifactId>testutils</artifactId>
79     </dependency>
80   </dependencies>
81
82   <build>
83     <plugins>
84       <plugin>
85         <artifactId>maven-failsafe-plugin</artifactId>
86         <!-- TODO Remove when https://git.opendaylight.org/gerrit/#/c/48400/ is merged -->
87         <executions>
88           <execution>
89             <id>integration-test</id>
90             <goals>
91               <goal>integration-test</goal>
92             </goals>
93           </execution>
94           <execution>
95             <id>verify</id>
96             <goals>
97               <goal>verify</goal>
98             </goals>
99           </execution>
100         </executions>
101       </plugin>
102       <plugin>
103         <groupId>org.apache.maven.plugins</groupId>
104         <artifactId>maven-shade-plugin</artifactId>
105         <executions>
106           <execution>
107             <id>shade</id>
108             <phase>package</phase>
109             <goals>
110               <goal>shade</goal>
111             </goals>
112             <configuration>
113               <createDependencyReducedPom>false</createDependencyReducedPom>
114               <minimizeJar>true</minimizeJar>
115               <filters>
116                 <filter>
117                   <artifact>org.opendaylight.aaa:aaa-h2-store</artifact>
118                   <includes>
119                     <include>org/opendaylight/**</include>
120                     <include>org/h2/Driver.class</include>
121                     <include>org/h2/upgrade/**</include>
122                     <include>org/h2/util/**</include>
123                     <include>org/h2/jdbc/**</include>
124                     <include>org/h2/message/**</include>
125                     <include>org/h2/value/**</include>
126                     <include>org/h2/engine/**</include>
127                     <include>org/h2/command/**</include>
128                     <include>org/h2/security/**</include>
129                     <include>org/h2/store/**</include>
130                     <include>org/h2/compress/**</include>
131                     <include>org/h2/schema/**</include>
132                     <include>org/h2/result/**</include>
133                     <include>org/h2/api/**</include>
134                     <include>org/h2/mvstore/**</include>
135                     <include>org/h2/table/**</include>
136                     <include>org/h2/expression/**</include>
137                     <include>org/h2/index/**</include>
138                     <include>org/h2/constraint/**</include>
139                   </includes>
140                 </filter>
141               </filters>
142               <transformers>
143                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
144                   <mainClass>org.opendaylight.aaa.cli.jar.Main</mainClass>
145                 </transformer>
146               </transformers>
147             </configuration>
148           </execution>
149         </executions>
150       </plugin>
151       <plugin>
152         <groupId>org.apache.maven.plugins</groupId>
153         <artifactId>maven-checkstyle-plugin</artifactId>
154         <configuration>
155           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
156         </configuration>
157       </plugin>
158 <!-- TODO
159       <plugin>
160         <groupId>org.codehaus.mojo</groupId>
161         <artifactId>findbugs-maven-plugin</artifactId>
162         <configuration>
163           <failOnError>true</failOnError>
164         </configuration>
165       </plugin>
166   -->
167     </plugins>
168   </build>
169
170 </project>