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