b8424eeda0adc52e927599c048e4ab1de0983f1b
[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.4-SNAPSHOT</version>
17         <relativePath>../../parent</relativePath>
18     </parent>
19
20     <groupId>org.opendaylight.aaa</groupId>
21     <artifactId>aaa-shiro</artifactId>
22     <version>0.13.4-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>com.guicedee.services</groupId>
77             <artifactId>javax.inject</artifactId>
78             <optional>true</optional>
79         </dependency>
80
81         <!-- JSON JAXB Stuff -->
82         <dependency>
83             <groupId>org.eclipse.jetty</groupId>
84             <artifactId>jetty-servlets</artifactId>
85             <scope>provided</scope>
86         </dependency>
87
88         <dependency>
89             <groupId>net.sf.ehcache</groupId>
90             <artifactId>ehcache</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>com.h2database</groupId>
94             <artifactId>h2</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.immutables</groupId>
98             <artifactId>value</artifactId>
99             <classifier>annotations</classifier>
100         </dependency>
101         <dependency>
102             <groupId>com.google.guava</groupId>
103             <artifactId>guava</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.apache.commons</groupId>
107             <artifactId>commons-text</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.jolokia</groupId>
111             <artifactId>jolokia-osgi</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.aaa.web</groupId>
115             <artifactId>web-api</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.aaa.web</groupId>
119             <artifactId>servlet-api</artifactId>
120         </dependency>
121
122         <!-- Testing Dependencies -->
123         <dependency>
124             <groupId>junit</groupId>
125             <artifactId>junit</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.mockito</groupId>
130             <artifactId>mockito-core</artifactId>
131             <scope>test</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.hamcrest</groupId>
135             <artifactId>hamcrest-library</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>ch.qos.logback</groupId>
140             <artifactId>logback-core</artifactId>
141             <scope>test</scope>
142         </dependency>
143         <dependency>
144             <groupId>ch.qos.logback</groupId>
145             <artifactId>logback-classic</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>org.glassfish.jersey.inject</groupId>
150             <artifactId>jersey-hk2</artifactId>
151             <scope>test</scope>
152         </dependency>
153         <dependency>
154             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
155             <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
156             <scope>test</scope>
157         </dependency>
158         <dependency>
159             <groupId>com.google.truth</groupId>
160             <artifactId>truth</artifactId>
161         </dependency>
162         <dependency>
163             <groupId>org.opendaylight.aaa</groupId>
164             <artifactId>aaa-password-service-impl</artifactId>
165             <scope>test</scope>
166         </dependency>
167     </dependencies>
168
169     <build>
170         <plugins>
171             <plugin>
172                 <groupId>org.apache.felix</groupId>
173                 <artifactId>maven-bundle-plugin</artifactId>
174                 <extensions>true</extensions>
175                 <configuration>
176                     <instructions>
177                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
178                         <Export-Package>
179                             org.opendaylight.aaa,
180                             org.opendaylight.aaa.shiro,
181                             org.opendaylight.aaa.shiro.idm,
182                             org.opendaylight.aaa.shiro.tokenauthrealm,
183                             org.opendaylight.aaa.shiro.tokenauthrealm.auth,
184                             org.opendaylight.aaa.shiro,
185                             org.opendaylight.aaa.shiro.filters,
186                             org.opendaylight.aaa.shiro.realm,
187                             <!-- TODO: This is temporary until we can find a better spot for GsonProvider. -->
188                             org.opendaylight.aaa.provider,
189                             org.opendaylight.aaa.shiro.web.env,
190                             org.opendaylight.aaa.datastore.h2.*,
191                         </Export-Package>
192                         <Import-Package>
193                            !javax.annotation,
194                            *
195                         </Import-Package>
196                     </instructions>
197                 </configuration>
198             </plugin>
199             <plugin>
200                 <groupId>org.codehaus.mojo</groupId>
201                 <artifactId>build-helper-maven-plugin</artifactId>
202                 <executions>
203                     <execution>
204                         <id>attach-artifacts</id>
205                         <phase>package</phase>
206                         <goals>
207                             <goal>attach-artifact</goal>
208                         </goals>
209                         <configuration>
210                             <artifacts>
211                                 <!-- attach idmtool as an artifact -->
212                                 <artifact>
213                                     <file>${project.build.directory}/classes/idmtool.py</file>
214                                     <type>py</type>
215                                     <classifier>idmtool</classifier>
216                                 </artifact>
217                                 <!-- attach aaa-app-config.xml as an artifact -->
218                                 <artifact>
219                                     <file>${project.build.directory}/classes/initial/aaa-app-config.xml</file>
220                                     <type>xml</type>
221                                     <classifier>aaa-app-config</classifier>
222                                 </artifact>
223                                 <artifact>
224                                     <file>${project.build.directory}/classes/initial/aaa-datastore-config.xml</file>
225                                     <type>xml</type>
226                                     <classifier>aaa-datastore-config</classifier>
227                                 </artifact>
228                             </artifacts>
229                         </configuration>
230                     </execution>
231                 </executions>
232             </plugin>
233         </plugins>
234     </build>
235 </project>