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