blob: fc4c8e0aaf4178163d1ed33544d8f432ea0f8a43 [file] [log] [blame]
Instrumental71037c32018-03-26 13:51:48 -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"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25 <modelVersion>4.0.0</modelVersion>
Sai Gandhamb4f108d2018-04-09 01:12:45 +000026 <parent>
Sai Gandham83fc0252018-04-09 16:28:48 +000027 <groupId>org.onap.aaf.authz</groupId>
28 <artifactId>parent</artifactId>
29 <version>2.1.0-SNAPSHOT</version>
Sai Gandhamb4f108d2018-04-09 01:12:45 +000030 </parent>
Sai Gandham83fc0252018-04-09 16:28:48 +000031 <groupId>org.onap.aaf.authz</groupId>
32 <artifactId>authparent</artifactId>
Instrumental71037c32018-03-26 13:51:48 -070033 <version>2.1.0-SNAPSHOT</version>
34 <name>AAF Auth Parent</name>
35 <packaging>pom</packaging>
Sai Gandham99f14fb2018-04-08 10:13:10 -050036
Sai Gandhama3ee2292018-04-07 22:38:08 -050037
Instrumental71037c32018-03-26 13:51:48 -070038 <properties>
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Instrumental71037c32018-03-26 13:51:48 -070040 <project.interfaceVersion>2.10-SNAPSHOT</project.interfaceVersion>
Instrumental71037c32018-03-26 13:51:48 -070041 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
42 <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
43 <powermock.version>1.5.1</powermock.version>
Instrumental924b18d2018-04-05 20:17:18 -050044 <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
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>
Instrumental71037c32018-03-26 13:51:48 -070059 </properties>
60
61 <developers>
62 <developer>
63 <name>Jonathan Gathman</name>
64 <email>jonathan.gathman@att.com</email>
65 <organization>ATT</organization>
66 <roles>
67 <role>Architect</role>
68 <role>Lead Developer</role>
69 </roles>
70 </developer>
71 <developer>
72 <name>Gabe Maurer</name>
73 <email>gabe.maurer@att.com</email>
74 <organization>ATT</organization>
75 <roles>
76 <role>Developer</role>
77 </roles>
78 </developer>
79 <developer>
80 <name>Ian Howell</name>
81 <email>ian.howell@att.com</email>
82 <organization>ATT</organization>
83 <roles>
84 <role>Developer</role>
85 </roles>
86 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000087 <developer>
88 <name>Sai Gandham</name>
89 <email>sai.gandham@att.com</email>
90 <organization>ATT</organization>
91 <roles>
92 <role>Developer</role>
93 </roles>
94 </developer>
Instrumental71037c32018-03-26 13:51:48 -070095 </developers>
96
97 <build>
98 <pluginManagement>
99 <plugins>
100 <plugin>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-compiler-plugin</artifactId>
103 <version>2.3.2</version>
104 <configuration>
105 <source>1.8</source>
106 <target>1.8</target>
107 </configuration>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-deploy-plugin</artifactId>
112 <version>2.6</version>
113 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500114 <skip>false</skip>
Instrumental71037c32018-03-26 13:51:48 -0700115 </configuration>
116 </plugin>
117
118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-surefire-plugin</artifactId>
121 <version>2.17</version>
122 <configuration>
Instrumental67bac2c2018-04-02 17:41:10 -0500123 <skipTests>false</skipTests>
Instrumental17ca7442018-03-29 16:54:19 -0500124
Instrumental71037c32018-03-26 13:51:48 -0700125 <includes>
126 <include>**/JU*.java</include>
127 </includes>
128 <excludes>
129 </excludes>
130
131 </configuration>
132 </plugin>
133
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-failsafe-plugin</artifactId>
137 <version>2.17</version>
138 <configuration>
Instrumental924b18d2018-04-05 20:17:18 -0500139 <skipTests>false</skipTests>
Instrumental71037c32018-03-26 13:51:48 -0700140 </configuration>
141 <executions>
142 <execution>
143 <id>integration-test</id>
144 <goals>
145 <goal>integration-test</goal>
146 <goal>verify</goal>
147 </goals>
148 </execution>
149 </executions>
150 </plugin>
151
152 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
153 <plugin>
154 <groupId>org.codehaus.mojo</groupId>
155 <artifactId>appassembler-maven-plugin</artifactId>
156 <version>1.10</version>
157 <executions>
158 <execution>
159 <goals>
160 <goal>assemble</goal>
161 </goals>
162 <phase>install</phase>
163 </execution>
164 </executions>
165 <configuration>
166 <programs/> <!-- this set in projects that have programs -->
167 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
Instrumental924b18d2018-04-05 20:17:18 -0500168 <copyConfigurationDirectory>true</copyConfigurationDirectory>
Instrumental71037c32018-03-26 13:51:48 -0700169 <configurationDirectory>etc</configurationDirectory>
170 <repositoryName>lib</repositoryName>
Instrumental924b18d2018-04-05 20:17:18 -0500171 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
Instrumental71037c32018-03-26 13:51:48 -0700172 <repositoryLayout>flat</repositoryLayout>
173 </configuration>
174 </plugin>
175
176 <!-- Build Docker Image -->
177 <plugin>
178 <groupId>com.spotify</groupId>
179 <artifactId>docker-maven-plugin</artifactId>
180 <version>1.0.0</version>
181 <configuration>
182 <imageName>onap/osaaf/${project.artifactId}</imageName>
183 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
184 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
185 <imageTags>
186 <imageTag>latest</imageTag>
187 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
188 <imageTag>${project.docker.latesttag.version}</imageTag>
189 </imageTags>
190 <forceTags>true</forceTags>
191 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
192 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
193 </resource> </resources> -->
194 <resources>
195 <resource>
196 <targetPath>/</targetPath>
197 <directory>${project.build.directory}/opt</directory>
198 <include>${project.build.finalName}.jar</include>
199 </resource>
200 <resource>
201 <targetPath>/</targetPath>
202 <directory>${project.build.directory}</directory>
203 <include>**/**</include>
204 </resource>
205 </resources>
206 </configuration>
207 <executions>
208 <execution>
209 <id>build-image</id>
210 <phase>package</phase>
211 <goals>
212 <goal>build</goal>
213 </goals>
214 <configuration>
215 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
216 </configuration>
217 </execution>
218
219 <execution>
220 <id>tag-image-project-version</id>
221 <phase>package</phase>
222 <goals>
223 <goal>tag</goal>
224 </goals>
225 <configuration>
226 <image>onap/osaaf/${project.artifactId}</image>
227 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
228 <skipDockerTag>${skip.docker.push}</skipDockerTag>
229 </configuration>
230 </execution>
231
232 <execution>
233 <id>tag-image-latest</id>
234 <phase>package</phase>
235 <goals>
236 <goal>tag</goal>
237 </goals>
238 <configuration>
239 <image>onap/aaf/authz-service</image>
240 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
241 <skipDockerTag>${skip.docker.push}</skipDockerTag>
242 </configuration>
243 </execution>
244
245 <execution>
246 <id>push-image-latest</id>
247 <phase>deploy</phase>
248 <goals>
249 <goal>push</goal>
250 </goals>
251 <configuration>
252 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
253 <skipDockerPush>${skip.docker.push}</skipDockerPush>
254 </configuration>
255 </execution>
256
257 <execution>
258 <id>push-image</id>
259 <phase>deploy</phase>
260 <goals>
261 <goal>push</goal>
262 </goals>
263 <configuration>
264 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
265 <skipDockerPush>${skip.docker.push}</skipDockerPush>
266 </configuration>
267 </execution>
268 </executions>
269 </plugin>
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000270 <plugin>
271 <groupId>org.sonatype.plugins</groupId>
272 <artifactId>nexus-staging-maven-plugin</artifactId>
273 <version>1.6.7</version>
274 <extensions>true</extensions>
275 <configuration>
276 <nexusUrl>${nexusproxy}</nexusUrl>
277 <stagingProfileId>176c31dfe190a</stagingProfileId>
278 <serverId>ecomp-staging</serverId>
279 </configuration>
280 </plugin>
281 <plugin>
282 <groupId>org.jacoco</groupId>
283 <artifactId>jacoco-maven-plugin</artifactId>
284 <version>0.7.7.201606060606</version>
285 <configuration>
286 <dumpOnExit>true</dumpOnExit>
287 <includes>
288 <include>org.onap.aaf.*</include>
289 </includes>
290 </configuration>
291 <executions>
292 <execution>
293 <id>pre-unit-test</id>
294 <goals>
295 <goal>prepare-agent</goal>
296 </goals>
297 <configuration>
298 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
299 <!-- <append>true</append> -->
300 </configuration>
301 </execution>
302 <execution>
303 <id>pre-integration-test</id>
304 <phase>pre-integration-test</phase>
305 <goals>
306 <goal>prepare-agent</goal>
307 </goals>
308 <configuration>
309 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
310 <!-- <append>true</append> -->
311 </configuration>
312 </execution>
313 <execution>
314 <goals>
315 <goal>merge</goal>
316 </goals>
317 <phase>post-integration-test</phase>
318 <configuration>
319 <fileSets>
320 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
321 <directory>${project.build.directory}/coverage-reports</directory>
322 <includes>
323 <include>*.exec</include>
324 </includes>
325 </fileSet>
326 </fileSets>
327 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
328 </configuration>
329 </execution>
330 </executions>
331 </plugin>
Instrumental71037c32018-03-26 13:51:48 -0700332 </plugins>
333 </pluginManagement>
334 </build>
335
336 <dependencies>
337 <dependency>
338 <groupId>org.mockito</groupId>
339 <artifactId>mockito-all</artifactId>
340 <version>1.9.5</version>
341 <scope>test</scope>
342 </dependency>
343 <dependency>
344 <groupId>org.powermock</groupId>
345 <artifactId>powermock-module-junit4</artifactId>
346 <version>${powermock.version}</version>
347 <scope>test</scope>
348 </dependency>
349 <dependency>
350 <groupId>org.powermock</groupId>
351 <artifactId>powermock-api-mockito</artifactId>
352 <version>${powermock.version}</version>
353 <scope>test</scope>
354 </dependency>
355 <dependency>
356 <groupId>junit</groupId>
357 <artifactId>junit</artifactId>
358 <version>4.10</version>
359 <scope>test</scope>
360 </dependency>
361
362 </dependencies>
363
364 <modules>
365 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
366 <module>auth-core</module>
367 <module>auth-cass</module>
368 <module>auth-deforg</module>
369
370 <module>auth-service</module>
371 <module>auth-cmd</module>
372 <module>auth-batch</module>
373
374 <module>auth-gui</module>
375 <module>auth-locate</module>
376 <module>auth-oauth</module>
377 <module>auth-certman</module>
378 <module>auth-fs</module>
379 <module>auth-hello</module>
380 </modules>
381
382 <dependencyManagement>
383 <dependencies>
384 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000385 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700386 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400387 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700388 </dependency>
389
390 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000391 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700392 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400393 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700394 </dependency>
395
396 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000397 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700398 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400399 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700400 </dependency>
401
402 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000403 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700404 <artifactId>aaf-misc-xgen</artifactId>
su622b40077be2018-04-08 13:50:31 -0400405 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700406 </dependency>
407
408 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000409 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700410 <artifactId>aaf-cadi-core</artifactId>
su622b40077be2018-04-08 13:50:31 -0400411 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700412 </dependency>
413
414 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000415 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700416 <artifactId>aaf-cadi-client</artifactId>
su622b40077be2018-04-08 13:50:31 -0400417 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700418 </dependency>
419
420 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000421 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700422 <artifactId>aaf-cadi-aaf</artifactId>
su622b40077be2018-04-08 13:50:31 -0400423 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700424 <exclusions>
425 <exclusion>
426 <groupId>org.apache.cassandra</groupId>
427 <artifactId>cassandra-all</artifactId>
428 </exclusion>
429 </exclusions>
430 </dependency>
431
432 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000433 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700434 <artifactId>aaf-auth-client</artifactId>
su622b40077be2018-04-08 13:50:31 -0400435 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700436 </dependency>
437
438 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000439 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700440 <artifactId>aaf-auth-core</artifactId>
441 <version>${project.version}</version>
442 </dependency>
443
444 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000445 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700446 <artifactId>aaf-auth-cass</artifactId>
447 <version>${project.version}</version>
448 </dependency>
449
450 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000451 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700452 <artifactId>aaf-auth-cmd</artifactId>
453 <version>${project.version}</version>
454 </dependency>
455
456 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000457 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700458 <artifactId>aaf-auth-oauth</artifactId>
459 <version>${project.version}</version>
460 </dependency>
461
462 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000463 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700464 <artifactId>aaf-auth-deforg</artifactId>
465 <version>${project.version}</version>
466 </dependency>
467
468 <dependency>
469 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500470 <artifactId>javax.servlet-api</artifactId>
471 <version>3.0.1</version>
Instrumental71037c32018-03-26 13:51:48 -0700472 </dependency>
473
474 <dependency>
475 <groupId>org.eclipse.jetty</groupId>
476 <artifactId>jetty-servlet</artifactId>
477 <version>${project.jettyVersion}</version>
478 </dependency>
479
480 <dependency>
481 <groupId>org.eclipse.jetty</groupId>
482 <artifactId>jetty-server</artifactId>
483 <version>${project.jettyVersion}</version>
484 </dependency>
485
486 <dependency>
Instrumental71037c32018-03-26 13:51:48 -0700487 <groupId>com.datastax.cassandra</groupId>
488 <artifactId>cassandra-all</artifactId>
489 <version>3.3.0</version>
490 <exclusions>
491 <exclusion>
492 <groupId>org.slf4j</groupId>
493 <artifactId>slf4j-log4j12</artifactId>
494 </exclusion>
495 <exclusion>
496 <groupId>log4j</groupId>
497 <artifactId>log4j</artifactId>
498 </exclusion>
499 </exclusions>
500 </dependency>
Instrumental67bac2c2018-04-02 17:41:10 -0500501
Instrumental71037c32018-03-26 13:51:48 -0700502 <dependency>
503 <groupId>com.datastax.cassandra</groupId>
504 <artifactId>cassandra-driver-core</artifactId>
Instrumental71037c32018-03-26 13:51:48 -0700505 <version>3.3.0</version>
506 <exclusions>
507 <exclusion>
508 <groupId>org.slf4j</groupId>
509 <artifactId>slf4j-log4j12</artifactId>
510 </exclusion>
511 <exclusion>
512 <groupId>log4j</groupId>
513 <artifactId>log4j</artifactId>
514 </exclusion>
515 </exclusions>
516 </dependency>
517
518 <dependency>
519 <groupId>org.slf4j</groupId>
520 <artifactId>slf4j-log4j12</artifactId>
521 <version>1.7.5</version>
522 </dependency>
523
524 <dependency>
525 <groupId>javax.mail</groupId>
526 <artifactId>mail</artifactId>
527 <version>1.4.5</version>
528 </dependency>
529 </dependencies>
530 </dependencyManagement>
531
532
Sai Gandhame01703c2018-03-26 22:57:09 +0000533
Instrumental71037c32018-03-26 13:51:48 -0700534
535</project>