Merge "Cleanup existing README content"
[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>com.fasterxml.jackson.jaxrs</groupId>
69             <artifactId>jackson-jaxrs-json-provider</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.opendaylight.aaa</groupId>
73             <artifactId>aaa-cert</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.apache.shiro</groupId>
77             <artifactId>shiro-web</artifactId>
78         </dependency>
79         <!-- Enforce newer commons-beanutils and commons-collections versions -->
80         <dependency>
81             <groupId>commons-beanutils</groupId>
82             <artifactId>commons-beanutils</artifactId>
83             <version>1.9.3</version>
84         </dependency>
85         <dependency>
86             <groupId>commons-collections</groupId>
87             <artifactId>commons-collections</artifactId>
88             <version>3.2.2</version>
89         </dependency>
90
91         <dependency>
92             <groupId>org.apache.felix</groupId>
93             <artifactId>org.apache.felix.dependencymanager</artifactId>
94             <scope>provided</scope>
95         </dependency>
96
97         <!--Yang Binding -->
98         <dependency>
99             <groupId>org.opendaylight.controller</groupId>
100             <artifactId>sal-binding-api</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>org.opendaylight.controller</groupId>
104             <artifactId>sal-common-util</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.opendaylight.aaa</groupId>
108             <artifactId>aaa-filterchain</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>com.sun.jersey</groupId>
112             <artifactId>jersey-server</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>javax.servlet</groupId>
116             <artifactId>javax.servlet-api</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>org.apache.felix</groupId>
120             <artifactId>org.apache.felix.dependencymanager</artifactId>
121             <scope>provided</scope>
122         </dependency>
123         <dependency>
124             <groupId>org.mockito</groupId>
125             <artifactId>mockito-core</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.osgi</groupId>
130             <artifactId>org.osgi.core</artifactId>
131         </dependency>
132
133         <!-- JSON JAXB Stuff -->
134         <dependency>
135             <groupId>com.fasterxml.jackson.core</groupId>
136             <artifactId>jackson-core</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>com.fasterxml.jackson.core</groupId>
140             <artifactId>jackson-annotations</artifactId>
141         </dependency>
142         <dependency>
143             <groupId>com.fasterxml.jackson.core</groupId>
144             <artifactId>jackson-databind</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>com.fasterxml.jackson.datatype</groupId>
148             <artifactId>jackson-datatype-json-org</artifactId>
149         </dependency>
150         <dependency>
151             <groupId>com.fasterxml.jackson.jaxrs</groupId>
152             <artifactId>jackson-jaxrs-base</artifactId>
153         </dependency>
154         <dependency>
155             <groupId>com.fasterxml.jackson.jaxrs</groupId>
156             <artifactId>jackson-jaxrs-json-provider</artifactId>
157         </dependency>
158         <dependency>
159             <groupId>com.fasterxml.jackson.module</groupId>
160             <artifactId>jackson-module-jaxb-annotations</artifactId>
161         </dependency>
162         <dependency>
163             <groupId>org.eclipse.jetty</groupId>
164             <artifactId>jetty-servlets</artifactId>
165             <scope>provided</scope>
166         </dependency>
167
168         <!-- Testing Dependencies -->
169         <dependency>
170             <groupId>com.sun.jersey.jersey-test-framework</groupId>
171             <artifactId>jersey-test-framework-grizzly2</artifactId>
172             <scope>test</scope>
173         </dependency>
174         <dependency>
175             <groupId>junit</groupId>
176             <artifactId>junit</artifactId>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>org.slf4j</groupId>
181             <artifactId>jul-to-slf4j</artifactId>
182             <version>1.7.21</version>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>com.sun.jersey</groupId>
187             <artifactId>jersey-servlet</artifactId>
188         </dependency>
189         <dependency>
190             <groupId>org.mockito</groupId>
191             <artifactId>mockito-core</artifactId>
192             <scope>test</scope>
193         </dependency>
194         <dependency>
195             <groupId>org.hamcrest</groupId>
196             <artifactId>hamcrest-library</artifactId>
197             <scope>test</scope>
198         </dependency>
199         <dependency>
200             <groupId>ch.qos.logback</groupId>
201             <artifactId>logback-core</artifactId>
202             <scope>test</scope>
203         </dependency>
204         <dependency>
205             <groupId>ch.qos.logback</groupId>
206             <artifactId>logback-classic</artifactId>
207             <scope>test</scope>
208         </dependency>
209         <dependency>
210             <groupId>com.sun.jersey.jersey-test-framework</groupId>
211             <artifactId>jersey-test-framework-grizzly2</artifactId>
212             <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>org.mortbay.jetty</groupId>
216             <artifactId>jetty-servlet-tester</artifactId>
217             <version>7.0.0.pre5</version>
218             <scope>test</scope>
219         </dependency>
220     </dependencies>
221
222     <build>
223         <plugins>
224             <plugin>
225                 <groupId>org.apache.felix</groupId>
226                 <artifactId>maven-bundle-plugin</artifactId>
227                 <extensions>true</extensions>
228                 <configuration>
229                     <instructions>
230                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
231                         <Export-Package>
232                             org.opendaylight.aaa.impl.shiro,
233                             org.opendaylight.aaa.impl.shiro.tokenauthrealm,
234                             org.opendaylight.aaa.impl.shiro.tokenauthrealm.auth,
235                             org.opendaylight.aaa.shiro,
236                             org.opendaylight.aaa.shiro.filters,
237                             org.opendaylight.aaa.shiro.realm,
238                             org.opendaylight.aaa.shiro.web.env
239                         </Export-Package>
240                         <Import-Package>
241                             com.google.*,
242                             com.sun.jersey.spi.container.servlet,
243                             javax.servlet.http,
244                             javax.servlet.*,
245                             org.apache.oltu.oauth2.*,
246                             javax.ws.rs,javax.ws.rs.core,
247                             javax.xml.bind.annotation,
248                             org.opendaylight.aaa.*,
249                             org.opendaylight.aaa.api.*,
250                             org.opendaylight.aaa.filterchain.filters,
251                             org.xml.sax,
252                             org.apache.felix.dm,
253                             org.apache.shiro.web.env,org.apache.shiro.authc,
254                             org.eclipse.jetty.servlets;version="[8.1,10)",
255                             org.opendaylight.*,
256                             org.osgi.framework,
257                             org.osgi.util.tracker,
258                             org.osgi.service.cm.*,
259                             org.osgi.service.http.*,
260                             org.apache.shiro.web.*,
261                             org.apache.shiro.*,
262                             org.slf4j.*
263                         </Import-Package>
264                         <Web-ContextPath>/auth</Web-ContextPath>
265                     </instructions>
266                 </configuration>
267             </plugin>
268             <plugin>
269                 <groupId>org.codehaus.mojo</groupId>
270                 <artifactId>build-helper-maven-plugin</artifactId>
271                 <executions>
272                     <execution>
273                         <id>attach-artifacts</id>
274                         <phase>package</phase>
275                         <goals>
276                             <goal>attach-artifact</goal>
277                         </goals>
278                         <configuration>
279                             <artifacts>
280                                 <!-- attach idmtool as an artifact -->
281                                 <artifact>
282                                     <file>${project.build.directory}/classes/idmtool.py</file>
283                                     <type>py</type>
284                                     <classifier>idmtool</classifier>
285                                 </artifact>
286                                 <!-- attach aaa-app-config.xml as an artifact -->
287                                 <artifact>
288                                     <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
289                                     <type>xml</type>
290                                     <classifier>aaa-app-config</classifier>
291                                 </artifact>
292                                 <!-- attach convert-shiro-ini-to-rest-payload.py as an artifact -->
293                                 <artifact>
294                                     <file>${project.build.directory}/classes/convert-shiro-ini-to-rest-payload.py</file>
295                                     <type>py</type>
296                                     <classifier>convert-shiro-ini</classifier>
297                                 </artifact>
298                             </artifacts>
299                         </configuration>
300                     </execution>
301                 </executions>
302             </plugin>
303         </plugins>
304     </build>
305 </project>