97924539a907d8f96c139c8f349b00e4c8d3da1e
[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"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13
14     <parent>
15         <groupId>org.opendaylight.odlparent</groupId>
16         <artifactId>bundle-parent</artifactId>
17         <version>3.0.2</version>
18         <relativePath/>
19     </parent>
20
21     <groupId>org.opendaylight.aaa</groupId>
22     <artifactId>aaa-shiro</artifactId>
23     <version>0.8.0-SNAPSHOT</version>
24     <name>ODL :: aaa :: ${project.artifactId}</name>
25     <packaging>bundle</packaging>
26
27     <dependencyManagement>
28         <dependencies>
29             <dependency>
30                 <groupId>${project.groupId}</groupId>
31                 <artifactId>aaa-parent</artifactId>
32                 <version>${project.version}</version>
33                 <type>pom</type>
34                 <scope>import</scope>
35             </dependency>
36             <dependency>
37                 <groupId>${project.groupId}</groupId>
38                 <artifactId>aaa-artifacts</artifactId>
39                 <version>${project.version}</version>
40                 <type>pom</type>
41                 <scope>import</scope>
42             </dependency>
43         </dependencies>
44     </dependencyManagement>
45
46     <dependencies>
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>aaa-shiro-api</artifactId>
50         </dependency>
51
52         <!-- jersey client for moon authN -->
53         <dependency>
54             <groupId>com.sun.jersey</groupId>
55             <artifactId>jersey-client</artifactId>
56             <scope>provided</scope>
57         </dependency>
58         <!-- OAuth2 dependencies for moon -->
59         <dependency>
60             <groupId>org.apache.oltu.oauth2</groupId>
61             <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.apache.oltu.oauth2</groupId>
65             <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.opendaylight.aaa</groupId>
69             <artifactId>aaa-cert</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.apache.shiro</groupId>
73             <artifactId>shiro-web</artifactId>
74         </dependency>
75         <!-- Enforce newer commons-beanutils and commons-collections versions -->
76         <dependency>
77             <groupId>commons-beanutils</groupId>
78             <artifactId>commons-beanutils</artifactId>
79             <version>1.9.3</version>
80         </dependency>
81         <dependency>
82             <groupId>commons-collections</groupId>
83             <artifactId>commons-collections</artifactId>
84             <version>3.2.2</version>
85         </dependency>
86
87         <dependency>
88             <groupId>com.google.code.gson</groupId>
89             <artifactId>gson</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>org.apache.felix</groupId>
94             <artifactId>org.apache.felix.dependencymanager</artifactId>
95             <scope>provided</scope>
96         </dependency>
97
98         <!--Yang Binding -->
99         <dependency>
100             <groupId>org.opendaylight.controller</groupId>
101             <artifactId>sal-binding-api</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.opendaylight.controller</groupId>
105             <artifactId>sal-common-util</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.opendaylight.aaa</groupId>
109             <artifactId>aaa-filterchain</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>com.sun.jersey</groupId>
113             <artifactId>jersey-server</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>javax.servlet</groupId>
117             <artifactId>javax.servlet-api</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.osgi</groupId>
121             <artifactId>org.osgi.compendium</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.osgi</groupId>
125             <artifactId>org.osgi.core</artifactId>
126         </dependency>
127
128         <!-- JSON JAXB Stuff -->
129         <dependency>
130             <groupId>org.eclipse.jetty</groupId>
131             <artifactId>jetty-servlets</artifactId>
132             <scope>provided</scope>
133         </dependency>
134
135         <dependency>
136             <groupId>net.sf.ehcache</groupId>
137             <artifactId>ehcache</artifactId>
138         </dependency>
139         <dependency>
140             <groupId>com.h2database</groupId>
141             <artifactId>h2</artifactId>
142         </dependency>
143         <dependency>
144             <groupId>org.immutables</groupId>
145             <artifactId>value</artifactId>
146         </dependency>
147         <dependency>
148             <groupId>com.google.guava</groupId>
149             <artifactId>guava</artifactId>
150         </dependency>
151         <dependency>
152             <groupId>org.apache.commons</groupId>
153             <artifactId>commons-text</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.jolokia</groupId>
157             <artifactId>jolokia-osgi</artifactId>
158             <!-- TODO: remove once this version is propagated to odlparent -->
159             <version>1.5.0</version>
160         </dependency>
161         <dependency>
162             <groupId>org.opendaylight.aaa.web</groupId>
163             <artifactId>web-osgi-impl</artifactId>
164             <version>${project.version}</version>
165         </dependency>
166
167         <!-- Testing Dependencies -->
168         <dependency>
169             <groupId>junit</groupId>
170             <artifactId>junit</artifactId>
171             <scope>test</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.slf4j</groupId>
175             <artifactId>jul-to-slf4j</artifactId>
176             <version>1.7.21</version>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>com.sun.jersey</groupId>
181             <artifactId>jersey-servlet</artifactId>
182         </dependency>
183         <dependency>
184             <groupId>org.mockito</groupId>
185             <artifactId>mockito-core</artifactId>
186             <scope>test</scope>
187         </dependency>
188         <dependency>
189             <groupId>org.hamcrest</groupId>
190             <artifactId>hamcrest-library</artifactId>
191             <scope>test</scope>
192         </dependency>
193         <dependency>
194             <groupId>ch.qos.logback</groupId>
195             <artifactId>logback-core</artifactId>
196             <scope>test</scope>
197         </dependency>
198         <dependency>
199             <groupId>ch.qos.logback</groupId>
200             <artifactId>logback-classic</artifactId>
201             <scope>test</scope>
202         </dependency>
203         <dependency>
204             <groupId>com.sun.jersey.jersey-test-framework</groupId>
205             <artifactId>jersey-test-framework-grizzly2</artifactId>
206             <scope>test</scope>
207         </dependency>
208         <dependency>
209             <groupId>org.mortbay.jetty</groupId>
210             <artifactId>jetty-servlet-tester</artifactId>
211             <version>7.0.0.pre5</version>
212             <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>com.google.truth</groupId>
216             <artifactId>truth</artifactId>
217         </dependency>
218     </dependencies>
219
220     <build>
221         <plugins>
222             <plugin>
223                 <groupId>org.apache.felix</groupId>
224                 <artifactId>maven-bundle-plugin</artifactId>
225                 <extensions>true</extensions>
226                 <configuration>
227                     <instructions>
228                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
229                         <Export-Package>
230                             org.opendaylight.aaa,
231                             org.opendaylight.aaa.shiro,
232                             org.opendaylight.aaa.shiro.idm,
233                             org.opendaylight.aaa.shiro.tokenauthrealm,
234                             org.opendaylight.aaa.shiro.tokenauthrealm.auth,
235                             org.opendaylight.aaa.shiro,
236                             org.opendaylight.aaa.shiro.filters,
237                             org.opendaylight.aaa.shiro.realm,
238                             <!-- TODO: This is temporary until we can find a better spot for GsonProvider. -->
239                             org.opendaylight.aaa.provider,
240                             org.opendaylight.aaa.shiro.web.env,
241                             org.opendaylight.aaa.datastore.h2.*,
242                         </Export-Package>
243                         <Import-Package>
244                             com.google.*,
245                             com.sun.jersey.spi.container.servlet,
246                             javax.servlet.http,
247                             javax.servlet.*,
248                             org.apache.oltu.oauth2.*,
249                             javax.ws.rs.ext,
250                             javax.ws.rs,javax.ws.rs.core,
251                             javax.xml.bind.annotation,
252                             org.opendaylight.aaa.*,
253                             org.opendaylight.aaa.api.*,
254                             org.xml.sax,
255                             org.apache.commons.text,
256                             org.apache.felix.dm,
257                             org.apache.shiro.web.env,org.apache.shiro.authc,
258                             org.eclipse.jetty.servlets;version="[8.1,10)",
259                             org.opendaylight.*,
260                             org.osgi.framework,
261                             org.osgi.util.tracker,
262                             org.osgi.service.cm.*,
263                             org.osgi.service.http.*,
264                             org.apache.shiro.web.*,
265                             org.apache.shiro.*,
266                             org.slf4j.*,
267                             net.sf.ehcache.*,
268                             org.jolokia.osgi.security,
269                             org.osgi.service.blueprint.container,
270                             org.ops4j.pax.web.service,
271                             org.h2.*,
272                         </Import-Package>
273                         <Bundle-Activator>org.opendaylight.aaa.AAAShiroActivator</Bundle-Activator>
274                     </instructions>
275                 </configuration>
276             </plugin>
277             <plugin>
278                 <groupId>org.codehaus.mojo</groupId>
279                 <artifactId>build-helper-maven-plugin</artifactId>
280                 <executions>
281                     <execution>
282                         <id>attach-artifacts</id>
283                         <phase>package</phase>
284                         <goals>
285                             <goal>attach-artifact</goal>
286                         </goals>
287                         <configuration>
288                             <artifacts>
289                                 <!-- attach idmtool as an artifact -->
290                                 <artifact>
291                                     <file>${project.build.directory}/classes/idmtool.py</file>
292                                     <type>py</type>
293                                     <classifier>idmtool</classifier>
294                                 </artifact>
295                                 <!-- attach aaa-app-config.xml as an artifact -->
296                                 <artifact>
297                                     <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
298                                     <type>xml</type>
299                                     <classifier>aaa-app-config</classifier>
300                                 </artifact>
301                                 <artifact>
302                                     <file>${project.build.directory}/classes/initial/aaa-datastore-config.xml</file>
303                                     <type>xml</type>
304                                     <classifier>aaa-datastore-config</classifier>
305                                 </artifact>
306                             </artifacts>
307                         </configuration>
308                     </execution>
309                 </executions>
310             </plugin>
311         </plugins>
312     </build>
313 </project>