blob: a194d0dc0395bfb917a4d1f75affc4c5e887cff9 [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>
Instrumentalff062b22018-08-16 10:06:42 -050041 <project.jettyVersion>9.4.12.RC</project.jettyVersion>
Instrumentala20accc2018-03-26 13:49:56 -070042 <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>
Instrumentala20accc2018-03-26 13:49:56 -0700136 </modules>
137
138 <!-- ============================================================== -->
139 <!-- Define project-wide dependencies -->
140 <!-- ============================================================== -->
141 <dependencyManagement>
142 <dependencies>
143 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000144 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700145 <artifactId>aaf-auth-client</artifactId>
Sai Gandhamb4f108d2018-04-09 01:12:45 +0000146 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700147 </dependency>
148
149 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000150 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700151 <artifactId>aaf-cadi-core</artifactId>
152 <version>${project.version}</version>
153 </dependency>
154
155 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000156 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700157 <artifactId>aaf-cadi-oauth</artifactId>
158 <version>${project.version}</version>
159 </dependency>
160
161
162 <!-- Prevent Cycles in Testing -->
163 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000164 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700165 <artifactId>aaf-cadi-core</artifactId>
166 <version>${project.version}</version>
167 <classifier>tests</classifier>
168 </dependency>
169
170 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000171 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700172 <artifactId>aaf-cadi-jetty</artifactId>
173 <version>${project.version}</version>
174 </dependency>
175
176 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000177 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700178 <artifactId>aaf-cadi-cass</artifactId>
179 <version>${project.version}</version>
180 </dependency>
181
182 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000183 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700184 <artifactId>aaf-cadi-aaf</artifactId>
185 <version>${project.version}</version>
186 </dependency>
187
188 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000189 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700190 <artifactId>aaf-cadi-aaf</artifactId>
191 <version>${project.version}</version>
192 <classifier>full</classifier>
193 </dependency>
194
195 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000196 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700197 <artifactId>aaf-cadi-client</artifactId>
198 <version>${project.version}</version>
199 </dependency>
200
201 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000202 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700203 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400204 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700205 </dependency>
206
207 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000208 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700209 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400210 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700211 </dependency>
212
213 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000214 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700215 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400216 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700217 </dependency>
218
219 <dependency>
220 <groupId>org.eclipse.jetty</groupId>
221 <artifactId>jetty-servlet</artifactId>
222 <version>${project.jettyVersion}</version>
223 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500224
Instrumentala20accc2018-03-26 13:49:56 -0700225 <dependency>
226 <groupId>org.eclipse.jetty</groupId>
227 <artifactId>jetty-io</artifactId>
228 <version>${project.jettyVersion}</version>
229 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500230
Instrumentala20accc2018-03-26 13:49:56 -0700231 <dependency>
232 <groupId>org.eclipse.jetty</groupId>
233 <artifactId>jetty-security</artifactId>
234 <version>${project.jettyVersion}</version>
235 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500236
Instrumentala20accc2018-03-26 13:49:56 -0700237 <dependency>
238 <groupId>org.eclipse.jetty</groupId>
239 <artifactId>jetty-http</artifactId>
240 <version>${project.jettyVersion}</version>
241 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500242
Instrumentala20accc2018-03-26 13:49:56 -0700243 <dependency>
244 <groupId>org.eclipse.jetty</groupId>
245 <artifactId>jetty-util</artifactId>
246 <version>${project.jettyVersion}</version>
247 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500248
Instrumentala20accc2018-03-26 13:49:56 -0700249 <dependency>
250 <groupId>org.eclipse.jetty</groupId>
251 <artifactId>jetty-server</artifactId>
252 <version>${project.jettyVersion}</version>
253 </dependency>
254
255 <dependency>
256 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500257 <artifactId>javax.servlet-api</artifactId>
258 <version>3.0.1</version>
Instrumentala20accc2018-03-26 13:49:56 -0700259 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500260
Instrumentala20accc2018-03-26 13:49:56 -0700261 <dependency>
262 <groupId>org.slf4j</groupId>
263 <artifactId>slf4j-api</artifactId>
264 <version>1.7.5</version>
265 </dependency>
266 </dependencies>
267 </dependencyManagement>
268
269 <!-- ============================================================== -->
270 <!-- Define common plugins and make them available for all modules -->
271 <!-- ============================================================== -->
272 <build>
273 <testSourceDirectory>src/test/java</testSourceDirectory>
274 <plugins>
275 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500276 <pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700277 <plugins>
278 <plugin>
279 <inherited>true</inherited>
280 <groupId>org.apache.maven.plugins</groupId>
281 <artifactId>maven-compiler-plugin</artifactId>
282 <version>2.3.2</version>
283 <configuration>
284 <source>1.7</source>
285 <target>1.7</target>
286 </configuration>
287 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500288
Instrumentala20accc2018-03-26 13:49:56 -0700289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <version>2.4</version>
292 <artifactId>maven-jar-plugin</artifactId>
293 <configuration>
294 <outputDirectory>target</outputDirectory>
295 <archive>
296 <manifestEntries>
297 <Sealed>true</Sealed>
298 </manifestEntries>
299 </archive>
300 </configuration>
301 </plugin>
302
303 <!-- Define the javadoc plugin -->
304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-javadoc-plugin</artifactId>
307 <version>2.10</version>
308 <configuration>
309 <excludePackageNames>org.opendaylight.*</excludePackageNames>
310 </configuration>
311 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500312
Instrumentala20accc2018-03-26 13:49:56 -0700313 <plugin>
314 <artifactId>maven-release-plugin</artifactId>
315 <version>2.5.2</version>
316 <configuration>
317 <goals>-s ${mvn.settings} deploy</goals>
318 </configuration>
319 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500320
Instrumentala20accc2018-03-26 13:49:56 -0700321 <plugin>
322 <artifactId>maven-assembly-plugin</artifactId>
323 <version>2.5.5</version>
324 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500325
Instrumentala20accc2018-03-26 13:49:56 -0700326 <plugin>
327 <groupId>org.apache.maven.plugins</groupId>
328 <artifactId>maven-deploy-plugin</artifactId>
329 <version>2.8.1</version>
330 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500331 <skip>false</skip>
Instrumentala20accc2018-03-26 13:49:56 -0700332 </configuration>
IanHowell3901cf82018-04-03 11:24:27 -0500333
Instrumentala20accc2018-03-26 13:49:56 -0700334 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500335
Instrumentala20accc2018-03-26 13:49:56 -0700336 <plugin>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-dependency-plugin</artifactId>
339 <version>2.10</version>
340 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500341
Instrumentala20accc2018-03-26 13:49:56 -0700342 <!-- Maven surefire plugin for testing -->
343 <plugin>
344 <artifactId>maven-surefire-plugin</artifactId>
345 <version>2.17</version>
346 <configuration>
IanHowelle6123772018-04-03 15:26:47 -0500347 <skipTests>false</skipTests>
348 <includes>
349 <include>**/JU*.java</include>
350 </includes>
351 <excludes>
352 </excludes>
Instrumentala20accc2018-03-26 13:49:56 -0700353 </configuration>
354 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500355
356 <!--This plugin's configuration is used to store Eclipse m2e settings
Instrumentala20accc2018-03-26 13:49:56 -0700357 only. It has no influence on the Maven build itself. -->
358 <plugin>
359 <groupId>org.eclipse.m2e</groupId>
360 <artifactId>lifecycle-mapping</artifactId>
361 <version>1.0.0</version>
362 <configuration>
363 <lifecycleMappingMetadata>
364 <pluginExecutions>
365 <pluginExecution>
366 <pluginExecutionFilter>
367 <groupId>
368 org.codehaus.mojo
369 </groupId>
370 <artifactId>
371 jaxb2-maven-plugin
372 </artifactId>
373 <versionRange>
374 [1.3,)
375 </versionRange>
376 <goals>
377 <goal>xjc</goal>
378 </goals>
379 </pluginExecutionFilter>
380 <action>
381 <ignore />
382 </action>
383 </pluginExecution>
384 </pluginExecutions>
385 </lifecycleMappingMetadata>
386 </configuration>
387 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500388 <plugin>
389 <groupId>org.sonatype.plugins</groupId>
390 <artifactId>nexus-staging-maven-plugin</artifactId>
391 <version>1.6.7</version>
392 <extensions>true</extensions>
393 <configuration>
394 <nexusUrl>${nexusproxy}</nexusUrl>
395 <stagingProfileId>176c31dfe190a</stagingProfileId>
396 <serverId>ecomp-staging</serverId>
397 </configuration>
398 </plugin>
399 <plugin>
400 <groupId>org.jacoco</groupId>
401 <artifactId>jacoco-maven-plugin</artifactId>
402 <version>${jacoco.version}</version>
403 <configuration>
404 <excludes>
405 <exclude>**/gen/**</exclude>
406 <exclude>**/generated-sources/**</exclude>
407 <exclude>**/yang-gen/**</exclude>
408 <exclude>**/pax/**</exclude>
409 </excludes>
410 </configuration>
411 <executions>
412 <execution>
413 <id>pre-unit-test</id>
414 <goals>
415 <goal>prepare-agent</goal>
416 </goals>
417 <configuration>
418 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
419 <propertyName>surefireArgLine</propertyName>
420 </configuration>
421 </execution>
422 <execution>
423 <id>post-unit-test</id>
424 <phase>test</phase>
425 <goals>
426 <goal>report</goal>
427 </goals>
428 <configuration>
429 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
430 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
431 </configuration>
432 </execution>
433 <execution>
434 <id>pre-integration-test</id>
435 <phase>pre-integration-test</phase>
436 <goals>
437 <goal>prepare-agent</goal>
438 </goals>
439 <configuration>
440 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
441 <propertyName>failsafeArgLine</propertyName>
442 </configuration>
443 </execution>
444 <execution>
445 <id>post-integration-test</id>
446 <phase>post-integration-test</phase>
447 <goals>
448 <goal>report</goal>
449 </goals>
450 <configuration>
451 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
452 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
453 </configuration>
454 </execution>
455 </executions>
456 </plugin>
Instrumentala20accc2018-03-26 13:49:56 -0700457 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500458 </pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700459 </build>
460
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000461 <distributionManagement>
462 <repository>
463 <id>ecomp-releases</id>
464 <name>AAF Release Repository</name>
465 <url>${nexusproxy}${releaseNexusPath}</url>
466 </repository>
467 <snapshotRepository>
468 <id>ecomp-snapshots</id>
469 <name>AAF Snapshot Repository</name>
470 <url>${nexusproxy}${snapshotNexusPath}</url>
471 </snapshotRepository>
472 <site>
473 <id>ecomp-site</id>
474 <url>dav:${nexusproxy}${sitePath}</url>
475 </site>
476 </distributionManagement>
IanHowell3901cf82018-04-03 11:24:27 -0500477
Instrumentala20accc2018-03-26 13:49:56 -0700478</project>