blob: 25ed1d0405c393cec63638eb79c9ba48b6595c72 [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 Gandhamb4f108d2018-04-09 01:12:45 +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 Gandhamb4f108d2018-04-09 01:12:45 +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>
41 <skipSigning>true</skipSigning>
42 <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 Gandham83fc0252018-04-09 16:28: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>
139 </modules>
140
141 <!-- ============================================================== -->
142 <!-- Define project-wide dependencies -->
143 <!-- ============================================================== -->
144 <dependencyManagement>
145 <dependencies>
146 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000147 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700148 <artifactId>aaf-auth-client</artifactId>
Sai Gandhamb4f108d2018-04-09 01:12:45 +0000149 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700150 </dependency>
151
152 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000153 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700154 <artifactId>aaf-cadi-core</artifactId>
155 <version>${project.version}</version>
156 </dependency>
157
158 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000159 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700160 <artifactId>aaf-cadi-oauth</artifactId>
161 <version>${project.version}</version>
162 </dependency>
163
164
165 <!-- Prevent Cycles in Testing -->
166 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000167 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700168 <artifactId>aaf-cadi-core</artifactId>
169 <version>${project.version}</version>
170 <classifier>tests</classifier>
171 </dependency>
172
173 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000174 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700175 <artifactId>aaf-cadi-jetty</artifactId>
176 <version>${project.version}</version>
177 </dependency>
178
179 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000180 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700181 <artifactId>aaf-cadi-cass</artifactId>
182 <version>${project.version}</version>
183 </dependency>
184
185 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000186 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700187 <artifactId>aaf-cadi-aaf</artifactId>
188 <version>${project.version}</version>
189 </dependency>
190
191 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000192 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700193 <artifactId>aaf-cadi-aaf</artifactId>
194 <version>${project.version}</version>
195 <classifier>full</classifier>
196 </dependency>
197
198 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000199 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700200 <artifactId>aaf-cadi-client</artifactId>
201 <version>${project.version}</version>
202 </dependency>
203
204 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000205 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700206 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400207 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700208 </dependency>
209
210 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000211 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700212 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400213 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700214 </dependency>
215
216 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000217 <groupId>org.onap.aaf.authz</groupId>
Instrumentala20accc2018-03-26 13:49:56 -0700218 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400219 <version>${project.version}</version>
Instrumentala20accc2018-03-26 13:49:56 -0700220 </dependency>
221
222 <dependency>
223 <groupId>org.eclipse.jetty</groupId>
224 <artifactId>jetty-servlet</artifactId>
225 <version>${project.jettyVersion}</version>
226 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500227
Instrumentala20accc2018-03-26 13:49:56 -0700228 <dependency>
229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-io</artifactId>
231 <version>${project.jettyVersion}</version>
232 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500233
Instrumentala20accc2018-03-26 13:49:56 -0700234 <dependency>
235 <groupId>org.eclipse.jetty</groupId>
236 <artifactId>jetty-security</artifactId>
237 <version>${project.jettyVersion}</version>
238 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500239
Instrumentala20accc2018-03-26 13:49:56 -0700240 <dependency>
241 <groupId>org.eclipse.jetty</groupId>
242 <artifactId>jetty-http</artifactId>
243 <version>${project.jettyVersion}</version>
244 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500245
Instrumentala20accc2018-03-26 13:49:56 -0700246 <dependency>
247 <groupId>org.eclipse.jetty</groupId>
248 <artifactId>jetty-util</artifactId>
249 <version>${project.jettyVersion}</version>
250 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500251
Instrumentala20accc2018-03-26 13:49:56 -0700252 <dependency>
253 <groupId>org.eclipse.jetty</groupId>
254 <artifactId>jetty-server</artifactId>
255 <version>${project.jettyVersion}</version>
256 </dependency>
257
258 <dependency>
259 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500260 <artifactId>javax.servlet-api</artifactId>
261 <version>3.0.1</version>
Instrumentala20accc2018-03-26 13:49:56 -0700262 </dependency>
IanHowell3901cf82018-04-03 11:24:27 -0500263
Instrumentala20accc2018-03-26 13:49:56 -0700264 <dependency>
265 <groupId>org.slf4j</groupId>
266 <artifactId>slf4j-api</artifactId>
267 <version>1.7.5</version>
268 </dependency>
269 </dependencies>
270 </dependencyManagement>
271
272 <!-- ============================================================== -->
273 <!-- Define common plugins and make them available for all modules -->
274 <!-- ============================================================== -->
275 <build>
276 <testSourceDirectory>src/test/java</testSourceDirectory>
277 <plugins>
278 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500279 <pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700280 <plugins>
281 <plugin>
282 <inherited>true</inherited>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-compiler-plugin</artifactId>
285 <version>2.3.2</version>
286 <configuration>
287 <source>1.7</source>
288 <target>1.7</target>
289 </configuration>
290 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500291
Instrumentala20accc2018-03-26 13:49:56 -0700292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <version>2.4</version>
295 <artifactId>maven-jar-plugin</artifactId>
296 <configuration>
297 <outputDirectory>target</outputDirectory>
298 <archive>
299 <manifestEntries>
300 <Sealed>true</Sealed>
301 </manifestEntries>
302 </archive>
303 </configuration>
304 </plugin>
305
306 <!-- Define the javadoc plugin -->
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-javadoc-plugin</artifactId>
310 <version>2.10</version>
311 <configuration>
312 <excludePackageNames>org.opendaylight.*</excludePackageNames>
313 </configuration>
314 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500315
Instrumentala20accc2018-03-26 13:49:56 -0700316 <plugin>
317 <artifactId>maven-release-plugin</artifactId>
318 <version>2.5.2</version>
319 <configuration>
320 <goals>-s ${mvn.settings} deploy</goals>
321 </configuration>
322 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500323
Instrumentala20accc2018-03-26 13:49:56 -0700324 <plugin>
325 <artifactId>maven-assembly-plugin</artifactId>
326 <version>2.5.5</version>
327 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500328
Instrumentala20accc2018-03-26 13:49:56 -0700329 <plugin>
330 <groupId>org.apache.maven.plugins</groupId>
331 <artifactId>maven-deploy-plugin</artifactId>
332 <version>2.8.1</version>
333 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500334 <skip>false</skip>
Instrumentala20accc2018-03-26 13:49:56 -0700335 </configuration>
IanHowell3901cf82018-04-03 11:24:27 -0500336
Instrumentala20accc2018-03-26 13:49:56 -0700337 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500338
Instrumentala20accc2018-03-26 13:49:56 -0700339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-dependency-plugin</artifactId>
342 <version>2.10</version>
343 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500344
Instrumentala20accc2018-03-26 13:49:56 -0700345 <!-- Maven surefire plugin for testing -->
346 <plugin>
347 <artifactId>maven-surefire-plugin</artifactId>
348 <version>2.17</version>
349 <configuration>
IanHowelle6123772018-04-03 15:26:47 -0500350 <skipTests>false</skipTests>
351 <includes>
352 <include>**/JU*.java</include>
353 </includes>
354 <excludes>
355 </excludes>
Instrumentala20accc2018-03-26 13:49:56 -0700356 </configuration>
357 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500358
359 <!--This plugin's configuration is used to store Eclipse m2e settings
Instrumentala20accc2018-03-26 13:49:56 -0700360 only. It has no influence on the Maven build itself. -->
361 <plugin>
362 <groupId>org.eclipse.m2e</groupId>
363 <artifactId>lifecycle-mapping</artifactId>
364 <version>1.0.0</version>
365 <configuration>
366 <lifecycleMappingMetadata>
367 <pluginExecutions>
368 <pluginExecution>
369 <pluginExecutionFilter>
370 <groupId>
371 org.codehaus.mojo
372 </groupId>
373 <artifactId>
374 jaxb2-maven-plugin
375 </artifactId>
376 <versionRange>
377 [1.3,)
378 </versionRange>
379 <goals>
380 <goal>xjc</goal>
381 </goals>
382 </pluginExecutionFilter>
383 <action>
384 <ignore />
385 </action>
386 </pluginExecution>
387 </pluginExecutions>
388 </lifecycleMappingMetadata>
389 </configuration>
390 </plugin>
IanHowell3901cf82018-04-03 11:24:27 -0500391 <plugin>
392 <groupId>org.sonatype.plugins</groupId>
393 <artifactId>nexus-staging-maven-plugin</artifactId>
394 <version>1.6.7</version>
395 <extensions>true</extensions>
396 <configuration>
397 <nexusUrl>${nexusproxy}</nexusUrl>
398 <stagingProfileId>176c31dfe190a</stagingProfileId>
399 <serverId>ecomp-staging</serverId>
400 </configuration>
401 </plugin>
402 <plugin>
403 <groupId>org.jacoco</groupId>
404 <artifactId>jacoco-maven-plugin</artifactId>
405 <version>${jacoco.version}</version>
406 <configuration>
407 <excludes>
408 <exclude>**/gen/**</exclude>
409 <exclude>**/generated-sources/**</exclude>
410 <exclude>**/yang-gen/**</exclude>
411 <exclude>**/pax/**</exclude>
412 </excludes>
413 </configuration>
414 <executions>
415 <execution>
416 <id>pre-unit-test</id>
417 <goals>
418 <goal>prepare-agent</goal>
419 </goals>
420 <configuration>
421 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
422 <propertyName>surefireArgLine</propertyName>
423 </configuration>
424 </execution>
425 <execution>
426 <id>post-unit-test</id>
427 <phase>test</phase>
428 <goals>
429 <goal>report</goal>
430 </goals>
431 <configuration>
432 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
433 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
434 </configuration>
435 </execution>
436 <execution>
437 <id>pre-integration-test</id>
438 <phase>pre-integration-test</phase>
439 <goals>
440 <goal>prepare-agent</goal>
441 </goals>
442 <configuration>
443 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
444 <propertyName>failsafeArgLine</propertyName>
445 </configuration>
446 </execution>
447 <execution>
448 <id>post-integration-test</id>
449 <phase>post-integration-test</phase>
450 <goals>
451 <goal>report</goal>
452 </goals>
453 <configuration>
454 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
455 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
456 </configuration>
457 </execution>
458 </executions>
459 </plugin>
Instrumentala20accc2018-03-26 13:49:56 -0700460 </plugins>
IanHowell3901cf82018-04-03 11:24:27 -0500461 </pluginManagement>
Instrumentala20accc2018-03-26 13:49:56 -0700462 </build>
463
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000464 <distributionManagement>
465 <repository>
466 <id>ecomp-releases</id>
467 <name>AAF Release Repository</name>
468 <url>${nexusproxy}${releaseNexusPath}</url>
469 </repository>
470 <snapshotRepository>
471 <id>ecomp-snapshots</id>
472 <name>AAF Snapshot Repository</name>
473 <url>${nexusproxy}${snapshotNexusPath}</url>
474 </snapshotRepository>
475 <site>
476 <id>ecomp-site</id>
477 <url>dav:${nexusproxy}${sitePath}</url>
478 </site>
479 </distributionManagement>
IanHowell3901cf82018-04-03 11:24:27 -0500480
Instrumentala20accc2018-03-26 13:49:56 -0700481</project>