43d0774171f75ad563ebc4c5153ae348e73a4552
[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>2.0.5</version>
18         <relativePath/>
19     </parent>
20
21     <groupId>org.opendaylight.aaa</groupId>
22     <artifactId>aaa-shiro</artifactId>
23     <version>0.7.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.core</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>com.google.code.gson</groupId>
125             <artifactId>gson</artifactId>
126         </dependency>
127         <!-- JSON JAXB Stuff -->
128         <dependency>
129             <groupId>com.fasterxml.jackson.core</groupId>
130             <artifactId>jackson-core</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>com.fasterxml.jackson.core</groupId>
134             <artifactId>jackson-annotations</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>com.fasterxml.jackson.core</groupId>
138             <artifactId>jackson-databind</artifactId>
139         </dependency>
140         <dependency>
141             <groupId>com.fasterxml.jackson.datatype</groupId>
142             <artifactId>jackson-datatype-json-org</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>com.fasterxml.jackson.jaxrs</groupId>
146             <artifactId>jackson-jaxrs-base</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>com.fasterxml.jackson.jaxrs</groupId>
150             <artifactId>jackson-jaxrs-json-provider</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>com.fasterxml.jackson.module</groupId>
154             <artifactId>jackson-module-jaxb-annotations</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.eclipse.jetty</groupId>
158             <artifactId>jetty-servlets</artifactId>
159             <scope>provided</scope>
160         </dependency>
161
162     <!-- Testing Dependencies -->
163         <dependency>
164       <groupId>net.sf.ehcache</groupId>
165       <artifactId>ehcache</artifactId>
166     </dependency>
167     <dependency>
168       <groupId>com.h2database</groupId>
169       <artifactId>h2</artifactId>
170     </dependency>
171     <dependency>
172       <groupId>org.immutables</groupId>
173       <artifactId>value</artifactId>
174     </dependency>
175     <dependency>
176       <groupId>com.google.guava</groupId>
177       <artifactId>guava</artifactId>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.commons</groupId>
181       <artifactId>commons-lang3</artifactId>
182     </dependency>
183
184     <!-- Testing Dependencies -->
185         <dependency>
186             <groupId>junit</groupId>
187             <artifactId>junit</artifactId>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.slf4j</groupId>
192             <artifactId>jul-to-slf4j</artifactId>
193             <version>1.7.21</version>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>com.sun.jersey</groupId>
198             <artifactId>jersey-servlet</artifactId>
199         </dependency>
200         <dependency>
201             <groupId>org.mockito</groupId>
202             <artifactId>mockito-core</artifactId>
203             <scope>test</scope>
204         </dependency>
205         <dependency>
206             <groupId>org.hamcrest</groupId>
207             <artifactId>hamcrest-library</artifactId>
208             <scope>test</scope>
209         </dependency>
210         <dependency>
211             <groupId>ch.qos.logback</groupId>
212             <artifactId>logback-core</artifactId>
213             <scope>test</scope>
214         </dependency>
215         <dependency>
216             <groupId>ch.qos.logback</groupId>
217             <artifactId>logback-classic</artifactId>
218             <scope>test</scope>
219         </dependency>
220         <dependency>
221             <groupId>com.sun.jersey.jersey-test-framework</groupId>
222             <artifactId>jersey-test-framework-grizzly2</artifactId>
223             <scope>test</scope>
224         </dependency>
225         <dependency>
226             <groupId>org.mortbay.jetty</groupId>
227             <artifactId>jetty-servlet-tester</artifactId>
228             <version>7.0.0.pre5</version>
229             <scope>test</scope>
230         </dependency>
231     <dependency>
232       <groupId>com.google.truth</groupId>
233       <artifactId>truth</artifactId>
234     </dependency>
235     </dependencies>
236
237     <build>
238         <plugins>
239             <plugin>
240                 <groupId>org.apache.felix</groupId>
241                 <artifactId>maven-bundle-plugin</artifactId>
242                 <extensions>true</extensions>
243                 <configuration>
244                     <instructions>
245                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
246                         <Export-Package>
247                             org.opendaylight.aaa.impl.shiro,
248                             org.opendaylight.aaa.impl.shiro.idm,
249                             org.opendaylight.aaa.impl.shiro.tokenauthrealm,
250                             org.opendaylight.aaa.impl.shiro.tokenauthrealm.auth,
251                             org.opendaylight.aaa.shiro,
252                             org.opendaylight.aaa.shiro.filters,
253                             org.opendaylight.aaa.shiro.realm,
254               org.opendaylight.aaa.shiro.web.env,
255               org.opendaylight.aaa.impl.datastore.h2.*,
256                         </Export-Package>
257                         <Import-Package>
258                             com.google.*,
259                             com.sun.jersey.*,
260                             javax.servlet.http,
261                             javax.servlet.*,
262                             org.apache.oltu.oauth2.*,
263                             javax.ws.rs,javax.ws.rs.core,
264                             javax.xml.bind.annotation,
265                             org.opendaylight.aaa.*,
266                             org.opendaylight.aaa.api.*,
267                             org.opendaylight.aaa.filterchain.filters,
268                             org.xml.sax,
269                             org.apache.felix.dm,
270                             org.apache.shiro.web.env,org.apache.shiro.authc,
271                             org.eclipse.jetty.servlets;version="[8.1,10)",
272                             org.opendaylight.*,
273                             org.osgi.framework,
274                             org.osgi.util.tracker,
275                             org.osgi.service.cm.*,
276                             org.osgi.service.http.*,
277                             org.apache.shiro.web.*,
278                             org.apache.shiro.*,
279               org.slf4j.*,
280               net.sf.ehcache.*,
281               !javax.naming,
282               !javax.naming.spi,
283               !javax.servlet,
284               !javax.servlet.http,
285               !javax.tools,
286               !javax.transaction.xa,
287               !org.apache.lucene.analysis,
288               !org.apache.lucene.analysis.standard,
289               !org.apache.lucene.document,
290               !org.apache.lucene.index,
291               !org.apache.lucene.queryParser,
292               !org.apache.lucene.search,
293               !org.apache.lucene.store,
294               !org.apache.lucene.util,
295               !com.vividsolutions.jts.geom,
296               !com.vividsolutions.jts.io,
297               !org.osgi.service.jdbc,
298               !javax.annotation,
299               !javax.naming
300                         </Import-Package>
301             <Embed-Dependency>h2;scope=compile|runtime;inline=true</Embed-Dependency>
302                         <Web-ContextPath>/auth</Web-ContextPath>
303                     </instructions>
304                 </configuration>
305             </plugin>
306             <plugin>
307                 <groupId>org.codehaus.mojo</groupId>
308                 <artifactId>build-helper-maven-plugin</artifactId>
309                 <executions>
310                     <execution>
311                         <id>attach-artifacts</id>
312                         <phase>package</phase>
313                         <goals>
314                             <goal>attach-artifact</goal>
315                         </goals>
316                         <configuration>
317                             <artifacts>
318                                 <!-- attach idmtool as an artifact -->
319                                 <artifact>
320                                     <file>${project.build.directory}/classes/idmtool.py</file>
321                                     <type>py</type>
322                                     <classifier>idmtool</classifier>
323                                 </artifact>
324                                 <!-- attach aaa-app-config.xml as an artifact -->
325                                 <artifact>
326                                     <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
327                                     <type>xml</type>
328                                     <classifier>aaa-app-config</classifier>
329                                 </artifact>
330                                 <artifact>
331                                     <file>${project.build.directory}/classes/initial/aaa-datastore-config.xml</file>
332                                     <type>xml</type>
333                                     <classifier>aaa-datastore-config</classifier>
334                                 </artifact>
335                             </artifacts>
336                         </configuration>
337                     </execution>
338                 </executions>
339             </plugin>
340         </plugins>
341     </build>
342 </project>