New AAA CLI standalone JAR to create users and set passwords
[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     <dependency>
50       <groupId>com.h2database</groupId>
51       <artifactId>h2</artifactId>
52     </dependency>
53
54     <!-- Now for the FAT JAR we need to fix up some <scope>provided to be <scope>compile -->
55     <dependency>
56       <groupId>org.slf4j</groupId>
57       <artifactId>slf4j-api</artifactId>
58       <scope>compile</scope> <!-- Not provided -->
59     </dependency>
60     <dependency>
61       <groupId>org.slf4j</groupId>
62       <artifactId>slf4j-simple</artifactId>
63       <scope>compile</scope> <!-- Not test -->
64     </dependency>
65
66     <!-- Testing Dependencies -->
67     <dependency>
68       <groupId>junit</groupId>
69       <artifactId>junit</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>com.google.truth</groupId>
73       <artifactId>truth</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>org.mockito</groupId>
77       <artifactId>mockito-core</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.yangtools</groupId>
81       <artifactId>testutils</artifactId>
82     </dependency>
83   </dependencies>
84
85   <build>
86     <plugins>
87       <plugin>
88         <artifactId>maven-failsafe-plugin</artifactId>
89         <!-- TODO Remove when https://git.opendaylight.org/gerrit/#/c/48400/ is merged -->
90         <executions>
91           <execution>
92             <id>integration-test</id>
93             <goals>
94               <goal>integration-test</goal>
95             </goals>
96           </execution>
97           <execution>
98             <id>verify</id>
99             <goals>
100               <goal>verify</goal>
101             </goals>
102           </execution>
103         </executions>
104       </plugin>
105       <plugin>
106         <groupId>org.apache.maven.plugins</groupId>
107         <!-- TODO Use maven-shade-plugin with its interesting minimizeJar property... -->
108         <artifactId>maven-assembly-plugin</artifactId>
109         <version>2.6</version>
110         <configuration>
111           <descriptorRefs>
112             <descriptorRef>jar-with-dependencies</descriptorRef>
113           </descriptorRefs>
114           <archive>
115             <manifest>
116               <mainClass>org.opendaylight.aaa.cli.jar.Main</mainClass>
117             </manifest>
118           </archive>
119         </configuration>
120         <executions>
121           <execution>
122             <id>make-assembly</id>
123             <phase>package</phase>
124             <goals>
125               <goal>single</goal>
126             </goals>
127           </execution>
128         </executions>
129       </plugin>
130       <plugin>
131         <groupId>org.apache.maven.plugins</groupId>
132         <artifactId>maven-checkstyle-plugin</artifactId>
133         <configuration>
134           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
135         </configuration>
136       </plugin>
137 <!-- TODO
138       <plugin>
139         <groupId>org.codehaus.mojo</groupId>
140         <artifactId>findbugs-maven-plugin</artifactId>
141         <configuration>
142           <failOnError>true</failOnError>
143         </configuration>
144       </plugin>
145   -->
146     </plugins>
147   </build>
148
149 </project>