Merge "Clean aaa features"
[aaa.git] / aaa-shiro / impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2017 Brocade Communications Systems and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11   <modelVersion>4.0.0</modelVersion>
12
13   <parent>
14     <groupId>org.opendaylight.controller</groupId>
15     <artifactId>config-parent</artifactId>
16     <version>0.7.0-SNAPSHOT</version>
17     <relativePath/>
18   </parent>
19
20   <groupId>org.opendaylight.aaa</groupId>
21   <artifactId>aaa-shiro</artifactId>
22   <version>0.6.0-SNAPSHOT</version>
23   <name>ODL :: aaa :: ${project.artifactId}</name>
24   <packaging>bundle</packaging>
25
26   <dependencyManagement>
27     <dependencies>
28       <dependency>
29         <groupId>${project.groupId}</groupId>
30         <artifactId>aaa-parent</artifactId>
31         <version>${project.version}</version>
32         <type>pom</type>
33         <scope>import</scope>
34       </dependency>
35       <dependency>
36         <groupId>${project.groupId}</groupId>
37         <artifactId>aaa-artifacts</artifactId>
38         <version>${project.version}</version>
39         <type>pom</type>
40         <scope>import</scope>
41       </dependency>
42     </dependencies>
43   </dependencyManagement>
44
45   <dependencies>
46     <dependency>
47       <groupId>${project.groupId}</groupId>
48       <artifactId>aaa-shiro-api</artifactId>
49     </dependency>
50
51     <!-- jersey client for moon authN -->
52     <dependency>
53       <groupId>com.sun.jersey</groupId>
54       <artifactId>jersey-client</artifactId>
55       <scope>provided</scope>
56     </dependency>
57     <dependency>
58       <groupId>org.json</groupId>
59       <artifactId>json</artifactId>
60     </dependency>
61     <!-- OAuth2 dependencies for moon -->
62     <dependency>
63       <groupId>org.apache.oltu.oauth2</groupId>
64       <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
65     </dependency>
66     <dependency>
67       <groupId>org.apache.oltu.oauth2</groupId>
68       <artifactId>org.apache.oltu.oauth2.common</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>org.apache.oltu.oauth2</groupId>
72       <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
73     </dependency>
74     <!-- end -->
75     <!-- KeystoneAuthRealm -->
76     <dependency>
77       <groupId>com.fasterxml.jackson.jaxrs</groupId>
78       <artifactId>jackson-jaxrs-json-provider</artifactId>
79     </dependency>
80     <dependency>
81         <groupId>org.opendaylight.aaa</groupId>
82         <artifactId>aaa-cert</artifactId>
83     </dependency>
84     <!-- end -->
85     <dependency>
86       <groupId>org.apache.shiro</groupId>
87       <artifactId>shiro-core</artifactId>
88     </dependency>
89     <dependency>
90       <groupId>org.apache.shiro</groupId>
91       <artifactId>shiro-web</artifactId>
92     </dependency>
93     <dependency>
94       <groupId>commons-beanutils</groupId>
95       <artifactId>commons-beanutils</artifactId>
96       <version>1.8.3</version>
97     </dependency>
98     <!-- commons-beanutils' dependency on commons-collections is supposed to be optional... -->
99     <dependency>
100       <groupId>commons-collections</groupId>
101       <artifactId>commons-collections</artifactId>
102       <version>3.2.2</version>
103     </dependency>
104     <dependency>
105       <groupId>javax.servlet</groupId>
106       <artifactId>javax.servlet-api</artifactId>
107     </dependency>
108     <dependency>
109       <groupId>com.google.guava</groupId>
110       <artifactId>guava</artifactId>
111     </dependency>
112     <dependency>
113       <groupId>org.osgi</groupId>
114       <artifactId>org.osgi.core</artifactId>
115       <scope>provided</scope>
116     </dependency>
117     <dependency>
118       <groupId>org.osgi</groupId>
119       <artifactId>org.osgi.compendium</artifactId>
120       <scope>provided</scope>
121     </dependency>
122     <dependency>
123       <groupId>org.apache.felix</groupId>
124       <artifactId>org.apache.felix.dependencymanager</artifactId>
125       <scope>provided</scope>
126     </dependency>
127
128     <!-- Testing Dependencies -->
129     <dependency>
130       <groupId>junit</groupId>
131       <artifactId>junit</artifactId>
132       <scope>test</scope>
133     </dependency>
134     <dependency>
135       <groupId>org.mockito</groupId>
136       <artifactId>mockito-core</artifactId>
137       <scope>test</scope>
138     </dependency>
139     <dependency>
140       <groupId>org.hamcrest</groupId>
141       <artifactId>hamcrest-library</artifactId>
142       <scope>test</scope>
143     </dependency>
144     <dependency>
145       <groupId>ch.qos.logback</groupId>
146       <artifactId>logback-core</artifactId>
147       <scope>test</scope>
148     </dependency>
149     <dependency>
150       <groupId>ch.qos.logback</groupId>
151       <artifactId>logback-classic</artifactId>
152       <scope>test</scope>
153     </dependency>
154     <dependency>
155       <groupId>com.sun.jersey.jersey-test-framework</groupId>
156       <artifactId>jersey-test-framework-grizzly2</artifactId>
157       <scope>test</scope>
158     </dependency>
159     <dependency>
160       <groupId>org.mortbay.jetty</groupId>
161       <artifactId>jetty-servlet-tester</artifactId>
162       <version>7.0.0.pre5</version>
163       <scope>test</scope>
164     </dependency>
165   </dependencies>
166
167   <build>
168     <plugins>
169       <plugin>
170         <groupId>org.apache.felix</groupId>
171         <artifactId>maven-bundle-plugin</artifactId>
172         <extensions>true</extensions>
173         <configuration>
174           <instructions>
175             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
176             <Web-ContextPath>/</Web-ContextPath>
177             <Export-Package>
178               org.opendaylight.aaa.impl.shiro,
179               org.opendaylight.aaa.impl.shiro.tokenauthrealm,
180               org.opendaylight.aaa.impl.shiro.tokenauthrealm.auth,
181               org.opendaylight.aaa.shiro,
182               org.opendaylight.aaa.shiro.filters,
183               org.opendaylight.aaa.shiro.realm,
184               org.opendaylight.aaa.shiro.web.env
185             </Export-Package>
186           </instructions>
187         </configuration>
188       </plugin>
189       <plugin>
190         <groupId>org.codehaus.mojo</groupId>
191         <artifactId>build-helper-maven-plugin</artifactId>
192         <executions>
193           <execution>
194             <id>attach-artifacts</id>
195             <phase>package</phase>
196             <goals>
197               <goal>attach-artifact</goal>
198             </goals>
199             <configuration>
200               <artifacts>
201                 <!-- attach authn.cfg as an artifact -->
202                 <artifact>
203                   <file>${project.build.directory}/classes/authn.cfg</file>
204                   <type>cfg</type>
205                   <classifier>config</classifier>
206                 </artifact>
207                 <!-- attach aaa-app-config.xml as an artifact -->
208                 <artifact>
209                   <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
210                   <type>xml</type>
211                   <classifier>aaa-app-config</classifier>
212                 </artifact>
213                 <!-- attach convert-shiro-ini-to-rest-payload.py as an artifact -->
214                 <artifact>
215                   <file>${project.build.directory}/classes/convert-shiro-ini-to-rest-payload.py</file>
216                   <type>py</type>
217                   <classifier>convert-shiro-ini</classifier>
218                 </artifact>
219               </artifacts>
220             </configuration>
221           </execution>
222         </executions>
223       </plugin>
224     </plugins>
225   </build>
226 </project>