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