1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2016 Red Hat, Inc. and others. All rights reserved.
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
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>
14 <groupId>org.opendaylight.aaa</groupId>
15 <artifactId>aaa-parent</artifactId>
16 <version>0.7.0-SNAPSHOT</version>
17 <relativePath>../parent</relativePath>
20 <artifactId>aaa-cli-jar</artifactId>
21 <name>ODL :: aaa :: ${project.artifactId}</name>
22 <packaging>jar</packaging>
26 <groupId>com.google.guava</groupId>
27 <artifactId>guava</artifactId>
30 <groupId>net.sf.jopt-simple</groupId>
31 <artifactId>jopt-simple</artifactId>
32 <version>5.0.3</version>
35 <groupId>org.opendaylight.aaa</groupId>
36 <artifactId>aaa-shiro</artifactId>
39 <!-- Completely disable transitive dependencies -->
41 <artifactId>*</artifactId>
45 <!-- Now repeat the few really needed dependencies which we would normally get transitively -->
47 <groupId>org.opendaylight.aaa</groupId>
48 <artifactId>aaa-authn-api</artifactId>
51 <groupId>org.apache.commons</groupId>
52 <artifactId>commons-text</artifactId>
54 <!-- Note that com.h2database:h2 is already shaded into aaa-h2-store -->
56 <!-- Now for the FAT JAR we need to fix up some <scope>provided to be <scope>compile -->
58 <groupId>org.slf4j</groupId>
59 <artifactId>slf4j-api</artifactId>
60 <scope>compile</scope> <!-- Not provided -->
63 <groupId>org.slf4j</groupId>
64 <artifactId>slf4j-simple</artifactId>
65 <scope>compile</scope> <!-- Not test -->
67 <!-- Testing Dependencies -->
69 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
73 <groupId>com.google.truth</groupId>
74 <artifactId>truth</artifactId>
77 <groupId>org.mockito</groupId>
78 <artifactId>mockito-core</artifactId>
81 <groupId>org.opendaylight.yangtools</groupId>
82 <artifactId>testutils</artifactId>
89 <artifactId>maven-failsafe-plugin</artifactId>
90 <!-- TODO Remove when https://git.opendaylight.org/gerrit/#/c/48400/ is merged -->
93 <id>integration-test</id>
95 <goal>integration-test</goal>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-shade-plugin</artifactId>
112 <phase>package</phase>
117 <createDependencyReducedPom>false</createDependencyReducedPom>
118 <minimizeJar>true</minimizeJar>
121 <artifact>org.opendaylight.aaa:aaa-shiro</artifact>
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>
148 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
149 <mainClass>org.opendaylight.aaa.cli.jar.Main</mainClass>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-checkstyle-plugin</artifactId>
160 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
165 <groupId>org.codehaus.mojo</groupId>
166 <artifactId>findbugs-maven-plugin</artifactId>
168 <failOnError>true</failOnError>