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