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