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