Convert to jersey 2
[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.aaa</groupId>
16         <artifactId>aaa-parent</artifactId>
17         <version>0.8.0-SNAPSHOT</version>
18         <relativePath>../../parent</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     <dependencies>
28         <dependency>
29             <groupId>${project.groupId}</groupId>
30             <artifactId>aaa-shiro-api</artifactId>
31         </dependency>
32
33         <!-- jersey client for moon authN -->
34         <dependency>
35             <groupId>org.glassfish.jersey.core</groupId>
36             <artifactId>jersey-client</artifactId>
37             <version>2.25.1</version>
38             <scope>provided</scope>
39         </dependency>
40         <!-- OAuth2 dependencies for moon -->
41         <dependency>
42             <groupId>org.apache.oltu.oauth2</groupId>
43             <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.apache.oltu.oauth2</groupId>
47             <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.opendaylight.aaa</groupId>
51             <artifactId>aaa-cert</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.apache.shiro</groupId>
55             <artifactId>shiro-web</artifactId>
56         </dependency>
57         <!-- Enforce newer commons-beanutils and commons-collections versions -->
58         <dependency>
59             <groupId>commons-beanutils</groupId>
60             <artifactId>commons-beanutils</artifactId>
61             <version>1.9.3</version>
62         </dependency>
63         <dependency>
64             <groupId>commons-collections</groupId>
65             <artifactId>commons-collections</artifactId>
66             <version>3.2.2</version>
67         </dependency>
68
69         <dependency>
70             <groupId>com.google.code.gson</groupId>
71             <artifactId>gson</artifactId>
72         </dependency>
73
74         <dependency>
75             <groupId>org.apache.felix</groupId>
76             <artifactId>org.apache.felix.dependencymanager</artifactId>
77             <scope>provided</scope>
78         </dependency>
79
80         <!--Yang Binding -->
81         <dependency>
82             <groupId>org.opendaylight.controller</groupId>
83             <artifactId>sal-binding-api</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.opendaylight.controller</groupId>
87             <artifactId>sal-common-util</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>org.opendaylight.aaa</groupId>
91             <artifactId>aaa-filterchain</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.osgi</groupId>
95             <artifactId>org.osgi.compendium</artifactId>
96         </dependency>
97
98         <!-- JSON JAXB Stuff -->
99         <dependency>
100             <groupId>org.eclipse.jetty</groupId>
101             <artifactId>jetty-servlets</artifactId>
102             <scope>provided</scope>
103         </dependency>
104
105         <dependency>
106             <groupId>net.sf.ehcache</groupId>
107             <artifactId>ehcache</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>com.h2database</groupId>
111             <artifactId>h2</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.immutables</groupId>
115             <artifactId>value</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>com.google.guava</groupId>
119             <artifactId>guava</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.apache.commons</groupId>
123             <artifactId>commons-text</artifactId>
124         </dependency>
125         <dependency>
126             <groupId>org.jolokia</groupId>
127             <artifactId>jolokia-osgi</artifactId>
128         </dependency>
129         <dependency>
130             <groupId>org.opendaylight.aaa.web</groupId>
131             <artifactId>web-api</artifactId>
132         </dependency>
133         <dependency>
134             <groupId>org.opendaylight.aaa.web</groupId>
135             <artifactId>servlet-api</artifactId>
136         </dependency>
137
138         <!-- Testing Dependencies -->
139         <dependency>
140             <groupId>junit</groupId>
141             <artifactId>junit</artifactId>
142             <scope>test</scope>
143         </dependency>
144         <dependency>
145             <groupId>org.mockito</groupId>
146             <artifactId>mockito-core</artifactId>
147             <scope>test</scope>
148         </dependency>
149         <dependency>
150             <groupId>org.hamcrest</groupId>
151             <artifactId>hamcrest-library</artifactId>
152             <scope>test</scope>
153         </dependency>
154         <dependency>
155             <groupId>ch.qos.logback</groupId>
156             <artifactId>logback-core</artifactId>
157             <scope>test</scope>
158         </dependency>
159         <dependency>
160             <groupId>ch.qos.logback</groupId>
161             <artifactId>logback-classic</artifactId>
162             <scope>test</scope>
163         </dependency>
164         <dependency>
165             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
166             <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
167             <version>2.25.1</version>
168             <scope>test</scope>
169         </dependency>
170         <dependency>
171             <groupId>org.mortbay.jetty</groupId>
172             <artifactId>jetty-servlet-tester</artifactId>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>com.google.truth</groupId>
177             <artifactId>truth</artifactId>
178         </dependency>
179     </dependencies>
180
181     <build>
182         <plugins>
183             <plugin>
184                 <groupId>org.apache.felix</groupId>
185                 <artifactId>maven-bundle-plugin</artifactId>
186                 <extensions>true</extensions>
187                 <configuration>
188                     <instructions>
189                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
190                         <Export-Package>
191                             org.opendaylight.aaa,
192                             org.opendaylight.aaa.shiro,
193                             org.opendaylight.aaa.shiro.idm,
194                             org.opendaylight.aaa.shiro.tokenauthrealm,
195                             org.opendaylight.aaa.shiro.tokenauthrealm.auth,
196                             org.opendaylight.aaa.shiro,
197                             org.opendaylight.aaa.shiro.filters,
198                             org.opendaylight.aaa.shiro.realm,
199                             <!-- TODO: This is temporary until we can find a better spot for GsonProvider. -->
200                             org.opendaylight.aaa.provider,
201                             org.opendaylight.aaa.shiro.web.env,
202                             org.opendaylight.aaa.datastore.h2.*,
203                         </Export-Package>
204                         <Import-Package>
205                            !javax.annotation,
206                            *
207                         </Import-Package>
208                     </instructions>
209                 </configuration>
210             </plugin>
211             <plugin>
212                 <groupId>org.codehaus.mojo</groupId>
213                 <artifactId>build-helper-maven-plugin</artifactId>
214                 <executions>
215                     <execution>
216                         <id>attach-artifacts</id>
217                         <phase>package</phase>
218                         <goals>
219                             <goal>attach-artifact</goal>
220                         </goals>
221                         <configuration>
222                             <artifacts>
223                                 <!-- attach idmtool as an artifact -->
224                                 <artifact>
225                                     <file>${project.build.directory}/classes/idmtool.py</file>
226                                     <type>py</type>
227                                     <classifier>idmtool</classifier>
228                                 </artifact>
229                                 <!-- attach aaa-app-config.xml as an artifact -->
230                                 <artifact>
231                                     <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
232                                     <type>xml</type>
233                                     <classifier>aaa-app-config</classifier>
234                                 </artifact>
235                                 <artifact>
236                                     <file>${project.build.directory}/classes/initial/aaa-datastore-config.xml</file>
237                                     <type>xml</type>
238                                     <classifier>aaa-datastore-config</classifier>
239                                 </artifact>
240                             </artifacts>
241                         </configuration>
242                     </execution>
243                 </executions>
244             </plugin>
245         </plugins>
246     </build>
247 </project>