blob: 5dfdf9ef49e4e96508eb0f7416c2778b7fd698fb [file] [log] [blame]
Instrumentala20accc2018-03-26 13:49:56 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * ============LICENSE_START====================================================
4 * org.onap.aaf
5 * ===========================================================================
6 * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 * ===========================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END====================================================
20 *
21-->
22<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">
23 <modelVersion>4.0.0</modelVersion>
Sai Gandham3a70e912018-04-12 22:16:21 +000024 <parent>
Sai Gandhama3ee2292018-04-07 22:38:08 -050025 <groupId>org.onap.aaf.authz</groupId>
Sai Gandham83fc0252018-04-09 16:28:48 +000026 <artifactId>parent</artifactId>
Sai Gandhama3ee2292018-04-07 22:38:08 -050027 <version>2.1.0-SNAPSHOT</version>
Sai Gandham3a70e912018-04-12 22:16:21 +000028 </parent>
Sai Gandham83fc0252018-04-09 16:28:48 +000029 <groupId>org.onap.aaf.authz</groupId>
30 <artifactId>cadiparent</artifactId>
Instrumentala20accc2018-03-26 13:49:56 -070031 <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
Sai Gandhamc83c6332018-04-05 16:08:24 -050032 <version>2.1.0-SNAPSHOT</version>
Instrumentala20accc2018-03-26 13:49:56 -070033 <inceptionYear>2015-07-20</inceptionYear>
34 <organization>
35 <name>ONAP</name>
36 </organization>
37 <packaging>pom</packaging>
38
Sai Gandham99f14fb2018-04-08 10:13:10 -050039
Instrumentala20accc2018-03-26 13:49:56 -070040 <properties>
Sai Gandhamf44b9272018-04-12 16:42:07 +000041 <!-- <sonar.skip>true</sonar.skip> -->
Instrumentala20accc2018-03-26 13:49:56 -070042 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Instrumentala20accc2018-03-26 13:49:56 -070043 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
44 <powermock.version>1.5.1</powermock.version>
Sai Gandhamc434f3c2018-03-27 16:29:24 +000045 <!-- SONAR -->
46 <jacoco.version>0.7.7.201606060606</jacoco.version>
47 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
48 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
49 <!-- Default Sonar configuration -->
Sai Gandham61f8fdf2018-04-03 12:07:07 -050050 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
51 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
Sai Gandhamc434f3c2018-03-27 16:29:24 +000052 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
53 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
54 <nexusproxy>https://nexus.onap.org</nexusproxy>
55 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
56 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
57 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
Sai Gandham30dca6e2018-04-09 21:22:48 +000058 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
Instrumentala20accc2018-03-26 13:49:56 -070059 </properties>
60
61 <!-- ============================================================== -->
62 <!-- Define the major contributors and developers of CADI -->
63 <!-- ============================================================== -->
64 <developers>
65 <developer>
66 <name>Jonathan Gathman</name>
67 <email>jonathan.gathman@att.com</email>
68 <organization>ATT</organization>
69 <roles>
70 <role>Architect</role>
71 <role>Lead Developer</role>
72 </roles>
73 </developer>
74 <developer>
75 <name>Gabe Maurer</name>
76 <email>gabe.maurer@att.com</email>
77 <organization>ATT</organization>
78 <roles>
79 <role>Developer</role>
80 </roles>
81 </developer>
82 <developer>
83 <name>Ian Howell</name>
84 <email>ian.howell@att.com</email>
85 <organization>ATT</organization>
86 <roles>
87 <role>Developer</role>
88 </roles>
89 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000090 <developer>
91 <name>Sai Gandham</name>
92 <email>sai.gandham@att.com</email>
93 <organization>ATT</organization>
94 <roles>
95 <role>Developer</role>
96 </roles>
97 </developer>
Instrumentala20accc2018-03-26 13:49:56 -070098 </developers>
99
100
101 <dependencies>
102 <dependency>
103 <groupId>org.mockito</groupId>
104 <artifactId>mockito-all</artifactId>
IanHowell3901cf82018-04-03 11:24:27 -0500105 <version>1.9.5</version>
Instrumentala20accc2018-03-26 13:49:56 -0700106 <scope>test</scope>
107 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500108
Instrumentala20accc2018-03-26 13:49:56 -0700109 <dependency>
110 <groupId>org.powermock</groupId>
111 <artifactId>powermock-module-junit4</artifactId>
112 <version>${powermock.version}</version>
113 <scope>test</scope>
114 </dependency>
115 <dependency>
116 <groupId>org.powermock</groupId>
117 <artifactId>powermock-api-mockito</artifactId>
118 <version>${powermock.version}</version>
119 <scope>test</scope>
120 </dependency>
121
122 <dependency>
123 <groupId>junit</groupId>
124 <artifactId>junit</artifactId>
125 <version>4.10</version>
126 <scope>test</scope>
127 </dependency>
128 </dependencies>
129
130 <!-- ============================================================== -->
131 <!-- Define sub-projects (modules) -->
132 <!-- ============================================================== -->
133 <modules>
134 <module>core</module>
135 <module>client</module>
136 <module>aaf</module>
Instrumentala20accc2018-03-26 13:49:56 -0700137 <module>oauth-enduser</module>
138 <module>shiro</module>
Sai Gandhamb0d41052018-04-19 18:46:02 +0000139 <module>shiro-osgi-bundle</module>
Instrumentala20accc2018-03-26 13:49:56 -0700140 </modules>
141
142 <!-- ============================================================== -->
143 <!-- Define project-wide dependencies -->
144 <!-- ============================================================== -->
145 <dependencyManagement>
146 <dependencies>
147 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000148 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700149 <artifactId>aaf-auth-client</artifactId>
Sai Gandhamb4f108d2018-04-09 01:12:45 +0000150 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700151 </dependency>
152
153 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000154 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700155 <artifactId>aaf-cadi-core</artifactId>
156 <version>${project.version}</version>
157 </dependency>
158
159 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000160 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700161 <artifactId>aaf-cadi-oauth</artifactId>
162 <version>${project.version}</version>
163 </dependency>
164
165
166 <!-- Prevent Cycles in Testing -->
167 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000168 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700169 <artifactId>aaf-cadi-core</artifactId>
170 <version>${project.version}</version>
171 <classifier>tests</classifier>
172 </dependency>
173
174 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000175 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700176 <artifactId>aaf-cadi-jetty</artifactId>
177 <version>${project.version}</version>
178 </dependency>
179
180 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000181 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700182 <artifactId>aaf-cadi-cass</artifactId>
183 <version>${project.version}</version>
184 </dependency>
185
186 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000187 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700188 <artifactId>aaf-cadi-aaf</artifactId>
189 <version>${project.version}</version>
190 </dependency>
191
192 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000193 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700194 <artifactId>aaf-cadi-aaf</artifactId>
195 <version>${project.version}</version>
196 <classifier>full</classifier>
197 </dependency>
198
199 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000200 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700201 <artifactId>aaf-cadi-client</artifactId>
202 <version>${project.version}</version>
203 </dependency>
204
205 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000206 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700207 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400208 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700209 </dependency>
210
211 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000212 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700213 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400214 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700215 </dependency>
216
217 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000218 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700219 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400220 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700221 </dependency>
222
223 <dependency>
224 <groupId>org.eclipse.jetty</groupId>
225 <artifactId>jetty-servlet</artifactId>
226 <version>${project.jettyVersion}</version>
227 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500228
Instrumentala20accc2018-03-26 13:49:56 -0700229 <dependency>
230 <groupId>org.eclipse.jetty</groupId>
231 <artifactId>jetty-io</artifactId>
232 <version>${project.jettyVersion}</version>
233 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500234
Instrumentala20accc2018-03-26 13:49:56 -0700235 <dependency>
236 <groupId>org.eclipse.jetty</groupId>
237 <artifactId>jetty-security</artifactId>
238 <version>${project.jettyVersion}</version>
239 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500240
Instrumentala20accc2018-03-26 13:49:56 -0700241 <dependency>
242 <groupId>org.eclipse.jetty</groupId>
243 <artifactId>jetty-http</artifactId>
244 <version>${project.jettyVersion}</version>
245 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500246
Instrumentala20accc2018-03-26 13:49:56 -0700247 <dependency>
248 <groupId>org.eclipse.jetty</groupId>
249 <artifactId>jetty-util</artifactId>
250 <version>${project.jettyVersion}</version>
251 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500252
Instrumentala20accc2018-03-26 13:49:56 -0700253 <dependency>
254 <groupId>org.eclipse.jetty</groupId>
255 <artifactId>jetty-server</artifactId>
256 <version>${project.jettyVersion}</version>
257 </dependency>
258
259 <dependency>
260 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500261 <artifactId>javax.servlet-api</artifactId>
262 <version>3.0.1</version>
Instrumentala20accc2018-03-26 13:49:56 -0700263 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500264
Instrumentala20accc2018-03-26 13:49:56 -0700265 <dependency>
266 <groupId>org.slf4j</groupId>
267 <artifactId>slf4j-api</artifactId>
268 <version>1.7.5</version>
269 </dependency>
270 </dependencies>
271 </dependencyManagement>
272
273 <!-- ============================================================== -->
274 <!-- Define common plugins and make them available for all modules -->
275 <!-- ============================================================== -->
276 <build>
277 <testSourceDirectory>src/test/java</testSourceDirectory>
278 <plugins>
279 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500280 <pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700281 <plugins>
282 <plugin>
283 <inherited>true</inherited>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-compiler-plugin</artifactId>
286 <version>2.3.2</version>
287 <configuration>
288 <source>1.7</source>
289 <target>1.7</target>
290 </configuration>
291 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500292
Instrumentala20accc2018-03-26 13:49:56 -0700293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <version>2.4</version>
296 <artifactId>maven-jar-plugin</artifactId>
297 <configuration>
298 <outputDirectory>target</outputDirectory>
299 <archive>
300 <manifestEntries>
301 <Sealed>true</Sealed>
302 </manifestEntries>
303 </archive>
304 </configuration>
305 </plugin>
306
307 <!-- Define the javadoc plugin -->
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-javadoc-plugin</artifactId>
311 <version>2.10</version>
312 <configuration>
313 <excludePackageNames>org.opendaylight.*</excludePackageNames>
314 </configuration>
315 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500316
Instrumentala20accc2018-03-26 13:49:56 -0700317 <plugin>
318 <artifactId>maven-release-plugin</artifactId>
319 <version>2.5.2</version>
320 <configuration>
321 <goals>-s ${mvn.settings} deploy</goals>
322 </configuration>
323 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500324
Instrumentala20accc2018-03-26 13:49:56 -0700325 <plugin>
326 <artifactId>maven-assembly-plugin</artifactId>
327 <version>2.5.5</version>
328 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500329
Instrumentala20accc2018-03-26 13:49:56 -0700330 <plugin>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-deploy-plugin</artifactId>
333 <version>2.8.1</version>
334 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500335 <skip>false</skip>
Instrumentala20accc2018-03-26 13:49:56 -0700336 </configuration>
IanHowell3901cf82018-04-03 11:24:27 -0500337
Instrumentala20accc2018-03-26 13:49:56 -0700338 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500339
Instrumentala20accc2018-03-26 13:49:56 -0700340 <plugin>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-dependency-plugin</artifactId>
343 <version>2.10</version>
344 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500345
Instrumentala20accc2018-03-26 13:49:56 -0700346 <!-- Maven surefire plugin for testing -->
347 <plugin>
348 <artifactId>maven-surefire-plugin</artifactId>
349 <version>2.17</version>
350 <configuration>
IanHowelle6123772018-04-03 15:26:47 -0500351 <skipTests>false</skipTests>
352 <includes>
353 <include>**/JU*.java</include>
354 </includes>
355 <excludes>
356 </excludes>
Instrumentala20accc2018-03-26 13:49:56 -0700357 </configuration>
358 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500359
360 <!--This plugin's configuration is used to store Eclipse m2e settings
Instrumentala20accc2018-03-26 13:49:56 -0700361 only. It has no influence on the Maven build itself. -->
362 <plugin>
363 <groupId>org.eclipse.m2e</groupId>
364 <artifactId>lifecycle-mapping</artifactId>
365 <version>1.0.0</version>
366 <configuration>
367 <lifecycleMappingMetadata>
368 <pluginExecutions>
369 <pluginExecution>
370 <pluginExecutionFilter>
371 <groupId>
372 org.codehaus.mojo
373 </groupId>
374 <artifactId>
375 jaxb2-maven-plugin
376 </artifactId>
377 <versionRange>
378 [1.3,)
379 </versionRange>
380 <goals>
381 <goal>xjc</goal>
382 </goals>
383 </pluginExecutionFilter>
384 <action>
385 <ignore />
386 </action>
387 </pluginExecution>
388 </pluginExecutions>
389 </lifecycleMappingMetadata>
390 </configuration>
391 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500392 <plugin>
393 <groupId>org.sonatype.plugins</groupId>
394 <artifactId>nexus-staging-maven-plugin</artifactId>
395 <version>1.6.7</version>
396 <extensions>true</extensions>
397 <configuration>
398 <nexusUrl>${nexusproxy}</nexusUrl>
399 <stagingProfileId>176c31dfe190a</stagingProfileId>
400 <serverId>ecomp-staging</serverId>
401 </configuration>
402 </plugin>
403 <plugin>
404 <groupId>org.jacoco</groupId>
405 <artifactId>jacoco-maven-plugin</artifactId>
406 <version>${jacoco.version}</version>
407 <configuration>
408 <excludes>
409 <exclude>**/gen/**</exclude>
410 <exclude>**/generated-sources/**</exclude>
411 <exclude>**/yang-gen/**</exclude>
412 <exclude>**/pax/**</exclude>
413 </excludes>
414 </configuration>
415 <executions>
416 <execution>
417 <id>pre-unit-test</id>
418 <goals>
419 <goal>prepare-agent</goal>
420 </goals>
421 <configuration>
422 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
423 <propertyName>surefireArgLine</propertyName>
424 </configuration>
425 </execution>
426 <execution>
427 <id>post-unit-test</id>
428 <phase>test</phase>
429 <goals>
430 <goal>report</goal>
431 </goals>
432 <configuration>
433 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
434 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
435 </configuration>
436 </execution>
437 <execution>
438 <id>pre-integration-test</id>
439 <phase>pre-integration-test</phase>
440 <goals>
441 <goal>prepare-agent</goal>
442 </goals>
443 <configuration>
444 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
445 <propertyName>failsafeArgLine</propertyName>
446 </configuration>
447 </execution>
448 <execution>
449 <id>post-integration-test</id>
450 <phase>post-integration-test</phase>
451 <goals>
452 <goal>report</goal>
453 </goals>
454 <configuration>
455 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
456 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
457 </configuration>
458 </execution>
459 </executions>
460 </plugin>
Instrumentala20accc2018-03-26 13:49:56 -0700461 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500462 </pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700463 </build>
464
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000465 <distributionManagement>
466 <repository>
467 <id>ecomp-releases</id>
468 <name>AAF Release Repository</name>
469 <url>${nexusproxy}${releaseNexusPath}</url>
470 </repository>
471 <snapshotRepository>
472 <id>ecomp-snapshots</id>
473 <name>AAF Snapshot Repository</name>
474 <url>${nexusproxy}${snapshotNexusPath}</url>
475 </snapshotRepository>
476 <site>
477 <id>ecomp-site</id>
478 <url>dav:${nexusproxy}${sitePath}</url>
479 </site>
480 </distributionManagement>
IanHowell3901cf82018-04-03 11:24:27 -0500481
Instrumentala20accc2018-03-26 13:49:56 -0700482</project>