blob: 1e45e574582fa2d027b2be7397f71a0c9ed1a72d [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>
Instrumentala97d7312018-05-25 15:04:43 -050025 <groupId>org.onap.aaf.authz</groupId>
26 <artifactId>parent</artifactId>
Instrumentalb7440252018-06-14 15:05:33 -050027 <version>2.1.2-SNAPSHOT</version>
Sai Gandham3a70e912018-04-12 22:16:21 +000028 </parent>
Sai Gandham83fc0252018-04-09 16:28:48 +000029 <artifactId>cadiparent</artifactId>
Instrumentala20accc2018-03-26 13:49:56 -070030 <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
Instrumentala20accc2018-03-26 13:49:56 -070031 <inceptionYear>2015-07-20</inceptionYear>
32 <organization>
33 <name>ONAP</name>
34 </organization>
35 <packaging>pom</packaging>
36
Sai Gandham99f14fb2018-04-08 10:13:10 -050037
Instrumentala20accc2018-03-26 13:49:56 -070038 <properties>
Sai Gandhamf44b9272018-04-12 16:42:07 +000039 <!-- <sonar.skip>true</sonar.skip> -->
Instrumentala20accc2018-03-26 13:49:56 -070040 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Instrumentala20accc2018-03-26 13:49:56 -070041 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
42 <powermock.version>1.5.1</powermock.version>
Sai Gandhamc434f3c2018-03-27 16:29:24 +000043 <!-- SONAR -->
44 <jacoco.version>0.7.7.201606060606</jacoco.version>
45 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47 <!-- Default Sonar configuration -->
Sai Gandham61f8fdf2018-04-03 12:07:07 -050048 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
49 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
Sai Gandhamc434f3c2018-03-27 16:29:24 +000050 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
51 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52 <nexusproxy>https://nexus.onap.org</nexusproxy>
53 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
54 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
55 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
Sai Gandham30dca6e2018-04-09 21:22:48 +000056 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
Instrumentala20accc2018-03-26 13:49:56 -070057 </properties>
58
59 <!-- ============================================================== -->
60 <!-- Define the major contributors and developers of CADI -->
61 <!-- ============================================================== -->
62 <developers>
63 <developer>
64 <name>Jonathan Gathman</name>
65 <email>jonathan.gathman@att.com</email>
66 <organization>ATT</organization>
67 <roles>
68 <role>Architect</role>
69 <role>Lead Developer</role>
70 </roles>
71 </developer>
72 <developer>
73 <name>Gabe Maurer</name>
74 <email>gabe.maurer@att.com</email>
75 <organization>ATT</organization>
76 <roles>
77 <role>Developer</role>
78 </roles>
79 </developer>
80 <developer>
81 <name>Ian Howell</name>
82 <email>ian.howell@att.com</email>
83 <organization>ATT</organization>
84 <roles>
85 <role>Developer</role>
86 </roles>
87 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000088 <developer>
89 <name>Sai Gandham</name>
90 <email>sai.gandham@att.com</email>
91 <organization>ATT</organization>
92 <roles>
93 <role>Developer</role>
94 </roles>
95 </developer>
Instrumentala20accc2018-03-26 13:49:56 -070096 </developers>
97
98
99 <dependencies>
100 <dependency>
101 <groupId>org.mockito</groupId>
102 <artifactId>mockito-all</artifactId>
IanHowell3901cf82018-04-03 11:24:27 -0500103 <version>1.9.5</version>
Instrumentala20accc2018-03-26 13:49:56 -0700104 <scope>test</scope>
105 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500106
Instrumentala20accc2018-03-26 13:49:56 -0700107 <dependency>
108 <groupId>org.powermock</groupId>
109 <artifactId>powermock-module-junit4</artifactId>
110 <version>${powermock.version}</version>
111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.powermock</groupId>
115 <artifactId>powermock-api-mockito</artifactId>
116 <version>${powermock.version}</version>
117 <scope>test</scope>
118 </dependency>
119
120 <dependency>
121 <groupId>junit</groupId>
122 <artifactId>junit</artifactId>
123 <version>4.10</version>
124 <scope>test</scope>
125 </dependency>
126 </dependencies>
127
128 <!-- ============================================================== -->
129 <!-- Define sub-projects (modules) -->
130 <!-- ============================================================== -->
131 <modules>
132 <module>core</module>
133 <module>client</module>
134 <module>aaf</module>
Instrumentala20accc2018-03-26 13:49:56 -0700135 <module>oauth-enduser</module>
136 <module>shiro</module>
Sai Gandhamb0d41052018-04-19 18:46:02 +0000137 <module>shiro-osgi-bundle</module>
Instrumentala20accc2018-03-26 13:49:56 -0700138 </modules>
139
140 <!-- ============================================================== -->
141 <!-- Define project-wide dependencies -->
142 <!-- ============================================================== -->
143 <dependencyManagement>
144 <dependencies>
145 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000146 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700147 <artifactId>aaf-auth-client</artifactId>
Sai Gandhamb4f108d2018-04-09 01:12:45 +0000148 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700149 </dependency>
150
151 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000152 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700153 <artifactId>aaf-cadi-core</artifactId>
154 <version>${project.version}</version>
155 </dependency>
156
157 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000158 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700159 <artifactId>aaf-cadi-oauth</artifactId>
160 <version>${project.version}</version>
161 </dependency>
162
163
164 <!-- Prevent Cycles in Testing -->
165 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000166 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700167 <artifactId>aaf-cadi-core</artifactId>
168 <version>${project.version}</version>
169 <classifier>tests</classifier>
170 </dependency>
171
172 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000173 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700174 <artifactId>aaf-cadi-jetty</artifactId>
175 <version>${project.version}</version>
176 </dependency>
177
178 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000179 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700180 <artifactId>aaf-cadi-cass</artifactId>
181 <version>${project.version}</version>
182 </dependency>
183
184 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000185 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700186 <artifactId>aaf-cadi-aaf</artifactId>
187 <version>${project.version}</version>
188 </dependency>
189
190 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000191 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700192 <artifactId>aaf-cadi-aaf</artifactId>
193 <version>${project.version}</version>
194 <classifier>full</classifier>
195 </dependency>
196
197 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000198 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700199 <artifactId>aaf-cadi-client</artifactId>
200 <version>${project.version}</version>
201 </dependency>
202
203 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000204 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700205 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400206 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700207 </dependency>
208
209 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000210 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700211 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400212 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700213 </dependency>
214
215 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000216 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700217 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400218 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700219 </dependency>
220
221 <dependency>
222 <groupId>org.eclipse.jetty</groupId>
223 <artifactId>jetty-servlet</artifactId>
224 <version>${project.jettyVersion}</version>
225 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500226
Instrumentala20accc2018-03-26 13:49:56 -0700227 <dependency>
228 <groupId>org.eclipse.jetty</groupId>
229 <artifactId>jetty-io</artifactId>
230 <version>${project.jettyVersion}</version>
231 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500232
Instrumentala20accc2018-03-26 13:49:56 -0700233 <dependency>
234 <groupId>org.eclipse.jetty</groupId>
235 <artifactId>jetty-security</artifactId>
236 <version>${project.jettyVersion}</version>
237 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500238
Instrumentala20accc2018-03-26 13:49:56 -0700239 <dependency>
240 <groupId>org.eclipse.jetty</groupId>
241 <artifactId>jetty-http</artifactId>
242 <version>${project.jettyVersion}</version>
243 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500244
Instrumentala20accc2018-03-26 13:49:56 -0700245 <dependency>
246 <groupId>org.eclipse.jetty</groupId>
247 <artifactId>jetty-util</artifactId>
248 <version>${project.jettyVersion}</version>
249 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500250
Instrumentala20accc2018-03-26 13:49:56 -0700251 <dependency>
252 <groupId>org.eclipse.jetty</groupId>
253 <artifactId>jetty-server</artifactId>
254 <version>${project.jettyVersion}</version>
255 </dependency>
256
257 <dependency>
258 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500259 <artifactId>javax.servlet-api</artifactId>
260 <version>3.0.1</version>
Instrumentala20accc2018-03-26 13:49:56 -0700261 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500262
Instrumentala20accc2018-03-26 13:49:56 -0700263 <dependency>
264 <groupId>org.slf4j</groupId>
265 <artifactId>slf4j-api</artifactId>
266 <version>1.7.5</version>
267 </dependency>
268 </dependencies>
269 </dependencyManagement>
270
271 <!-- ============================================================== -->
272 <!-- Define common plugins and make them available for all modules -->
273 <!-- ============================================================== -->
274 <build>
275 <testSourceDirectory>src/test/java</testSourceDirectory>
276 <plugins>
277 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500278 <pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700279 <plugins>
280 <plugin>
281 <inherited>true</inherited>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-compiler-plugin</artifactId>
284 <version>2.3.2</version>
285 <configuration>
286 <source>1.7</source>
287 <target>1.7</target>
288 </configuration>
289 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500290
Instrumentala20accc2018-03-26 13:49:56 -0700291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
293 <version>2.4</version>
294 <artifactId>maven-jar-plugin</artifactId>
295 <configuration>
296 <outputDirectory>target</outputDirectory>
297 <archive>
298 <manifestEntries>
299 <Sealed>true</Sealed>
300 </manifestEntries>
301 </archive>
302 </configuration>
303 </plugin>
304
305 <!-- Define the javadoc plugin -->
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-javadoc-plugin</artifactId>
309 <version>2.10</version>
310 <configuration>
311 <excludePackageNames>org.opendaylight.*</excludePackageNames>
312 </configuration>
313 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500314
Instrumentala20accc2018-03-26 13:49:56 -0700315 <plugin>
316 <artifactId>maven-release-plugin</artifactId>
317 <version>2.5.2</version>
318 <configuration>
319 <goals>-s ${mvn.settings} deploy</goals>
320 </configuration>
321 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500322
Instrumentala20accc2018-03-26 13:49:56 -0700323 <plugin>
324 <artifactId>maven-assembly-plugin</artifactId>
325 <version>2.5.5</version>
326 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500327
Instrumentala20accc2018-03-26 13:49:56 -0700328 <plugin>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-deploy-plugin</artifactId>
331 <version>2.8.1</version>
332 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500333 <skip>false</skip>
Instrumentala20accc2018-03-26 13:49:56 -0700334 </configuration>
IanHowell3901cf82018-04-03 11:24:27 -0500335
Instrumentala20accc2018-03-26 13:49:56 -0700336 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500337
Instrumentala20accc2018-03-26 13:49:56 -0700338 <plugin>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-dependency-plugin</artifactId>
341 <version>2.10</version>
342 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500343
Instrumentala20accc2018-03-26 13:49:56 -0700344 <!-- Maven surefire plugin for testing -->
345 <plugin>
346 <artifactId>maven-surefire-plugin</artifactId>
347 <version>2.17</version>
348 <configuration>
IanHowelle6123772018-04-03 15:26:47 -0500349 <skipTests>false</skipTests>
350 <includes>
351 <include>**/JU*.java</include>
352 </includes>
353 <excludes>
354 </excludes>
Instrumentala20accc2018-03-26 13:49:56 -0700355 </configuration>
356 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500357
358 <!--This plugin's configuration is used to store Eclipse m2e settings
Instrumentala20accc2018-03-26 13:49:56 -0700359 only. It has no influence on the Maven build itself. -->
360 <plugin>
361 <groupId>org.eclipse.m2e</groupId>
362 <artifactId>lifecycle-mapping</artifactId>
363 <version>1.0.0</version>
364 <configuration>
365 <lifecycleMappingMetadata>
366 <pluginExecutions>
367 <pluginExecution>
368 <pluginExecutionFilter>
369 <groupId>
370 org.codehaus.mojo
371 </groupId>
372 <artifactId>
373 jaxb2-maven-plugin
374 </artifactId>
375 <versionRange>
376 [1.3,)
377 </versionRange>
378 <goals>
379 <goal>xjc</goal>
380 </goals>
381 </pluginExecutionFilter>
382 <action>
383 <ignore />
384 </action>
385 </pluginExecution>
386 </pluginExecutions>
387 </lifecycleMappingMetadata>
388 </configuration>
389 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500390 <plugin>
391 <groupId>org.sonatype.plugins</groupId>
392 <artifactId>nexus-staging-maven-plugin</artifactId>
393 <version>1.6.7</version>
394 <extensions>true</extensions>
395 <configuration>
396 <nexusUrl>${nexusproxy}</nexusUrl>
397 <stagingProfileId>176c31dfe190a</stagingProfileId>
398 <serverId>ecomp-staging</serverId>
399 </configuration>
400 </plugin>
401 <plugin>
402 <groupId>org.jacoco</groupId>
403 <artifactId>jacoco-maven-plugin</artifactId>
404 <version>${jacoco.version}</version>
405 <configuration>
406 <excludes>
407 <exclude>**/gen/**</exclude>
408 <exclude>**/generated-sources/**</exclude>
409 <exclude>**/yang-gen/**</exclude>
410 <exclude>**/pax/**</exclude>
411 </excludes>
412 </configuration>
413 <executions>
414 <execution>
415 <id>pre-unit-test</id>
416 <goals>
417 <goal>prepare-agent</goal>
418 </goals>
419 <configuration>
420 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
421 <propertyName>surefireArgLine</propertyName>
422 </configuration>
423 </execution>
424 <execution>
425 <id>post-unit-test</id>
426 <phase>test</phase>
427 <goals>
428 <goal>report</goal>
429 </goals>
430 <configuration>
431 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
432 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
433 </configuration>
434 </execution>
435 <execution>
436 <id>pre-integration-test</id>
437 <phase>pre-integration-test</phase>
438 <goals>
439 <goal>prepare-agent</goal>
440 </goals>
441 <configuration>
442 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
443 <propertyName>failsafeArgLine</propertyName>
444 </configuration>
445 </execution>
446 <execution>
447 <id>post-integration-test</id>
448 <phase>post-integration-test</phase>
449 <goals>
450 <goal>report</goal>
451 </goals>
452 <configuration>
453 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
454 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
455 </configuration>
456 </execution>
457 </executions>
458 </plugin>
Instrumentala20accc2018-03-26 13:49:56 -0700459 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500460 </pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700461 </build>
462
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000463 <distributionManagement>
464 <repository>
465 <id>ecomp-releases</id>
466 <name>AAF Release Repository</name>
467 <url>${nexusproxy}${releaseNexusPath}</url>
468 </repository>
469 <snapshotRepository>
470 <id>ecomp-snapshots</id>
471 <name>AAF Snapshot Repository</name>
472 <url>${nexusproxy}${snapshotNexusPath}</url>
473 </snapshotRepository>
474 <site>
475 <id>ecomp-site</id>
476 <url>dav:${nexusproxy}${sitePath}</url>
477 </site>
478 </distributionManagement>
IanHowell3901cf82018-04-03 11:24:27 -0500479
Instrumentala20accc2018-03-26 13:49:56 -0700480</project>