blob: c3726b5d052d347dad90e32bf650a578a583f748 [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 Gandham3a70e912018-04-12 22:16:21 +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 Gandham3a70e912018-04-12 22:16:21 +000030 </parent>
Sai Gandham83fc0252018-04-09 16:28:48 +000031 <artifactId>authparent</artifactId>
Instrumental71037c32018-03-26 13:51:48 -070032 <name>AAF Auth Parent</name>
33 <packaging>pom</packaging>
Sai Gandham99f14fb2018-04-08 10:13:10 -050034
Sai Gandhama3ee2292018-04-07 22:38:08 -050035
Instrumental71037c32018-03-26 13:51:48 -070036 <properties>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Sai Gandham34e9cfe2018-04-09 20:43:47 +000038 <project.interfaceVersion>2.1.0-SNAPSHOT</project.interfaceVersion>
Instrumental71037c32018-03-26 13:51:48 -070039 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
40 <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
41 <powermock.version>1.5.1</powermock.version>
Instrumental924b18d2018-04-05 20:17:18 -050042 <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
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>
IanHowellc1e85932018-05-18 09:29:09 -050057 <!-- We have to up these versions from the original to avoid Security Errors -->
58 <project.cassVersion>3.4.0</project.cassVersion>
59 <project.nettyVersion>4.1.22.Final</project.nettyVersion>
60 <!--
61 <project.cassVersion>3.3.0</project.cassVersion>
62 <project.nettyVersion>4.0.47.Final</project.nettyVersion> -->
Instrumental71037c32018-03-26 13:51:48 -070063 </properties>
64
65 <developers>
66 <developer>
67 <name>Jonathan Gathman</name>
68 <email>jonathan.gathman@att.com</email>
69 <organization>ATT</organization>
70 <roles>
71 <role>Architect</role>
72 <role>Lead Developer</role>
73 </roles>
74 </developer>
75 <developer>
76 <name>Gabe Maurer</name>
77 <email>gabe.maurer@att.com</email>
78 <organization>ATT</organization>
79 <roles>
80 <role>Developer</role>
81 </roles>
82 </developer>
83 <developer>
84 <name>Ian Howell</name>
85 <email>ian.howell@att.com</email>
86 <organization>ATT</organization>
87 <roles>
88 <role>Developer</role>
89 </roles>
90 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000091 <developer>
92 <name>Sai Gandham</name>
93 <email>sai.gandham@att.com</email>
94 <organization>ATT</organization>
95 <roles>
96 <role>Developer</role>
97 </roles>
98 </developer>
Instrumental71037c32018-03-26 13:51:48 -070099 </developers>
100
101 <build>
102 <pluginManagement>
103 <plugins>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-compiler-plugin</artifactId>
107 <version>2.3.2</version>
108 <configuration>
109 <source>1.8</source>
110 <target>1.8</target>
111 </configuration>
112 </plugin>
113 <plugin>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-deploy-plugin</artifactId>
116 <version>2.6</version>
117 <configuration>
Sai Gandhamd97041c2018-04-03 01:57:59 -0500118 <skip>false</skip>
Instrumental71037c32018-03-26 13:51:48 -0700119 </configuration>
120 </plugin>
121
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-surefire-plugin</artifactId>
125 <version>2.17</version>
126 <configuration>
Instrumental67bac2c2018-04-02 17:41:10 -0500127 <skipTests>false</skipTests>
Instrumental17ca7442018-03-29 16:54:19 -0500128
Instrumental71037c32018-03-26 13:51:48 -0700129 <includes>
130 <include>**/JU*.java</include>
131 </includes>
132 <excludes>
133 </excludes>
134
135 </configuration>
136 </plugin>
137
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-failsafe-plugin</artifactId>
141 <version>2.17</version>
142 <configuration>
Instrumental924b18d2018-04-05 20:17:18 -0500143 <skipTests>false</skipTests>
Instrumental71037c32018-03-26 13:51:48 -0700144 </configuration>
145 <executions>
146 <execution>
147 <id>integration-test</id>
148 <goals>
149 <goal>integration-test</goal>
150 <goal>verify</goal>
151 </goals>
152 </execution>
153 </executions>
154 </plugin>
155
156 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
157 <plugin>
158 <groupId>org.codehaus.mojo</groupId>
159 <artifactId>appassembler-maven-plugin</artifactId>
160 <version>1.10</version>
161 <executions>
162 <execution>
163 <goals>
164 <goal>assemble</goal>
165 </goals>
166 <phase>install</phase>
167 </execution>
168 </executions>
169 <configuration>
170 <programs/> <!-- this set in projects that have programs -->
171 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
Instrumental924b18d2018-04-05 20:17:18 -0500172 <copyConfigurationDirectory>true</copyConfigurationDirectory>
Instrumental71037c32018-03-26 13:51:48 -0700173 <configurationDirectory>etc</configurationDirectory>
174 <repositoryName>lib</repositoryName>
Instrumental924b18d2018-04-05 20:17:18 -0500175 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
Instrumental71037c32018-03-26 13:51:48 -0700176 <repositoryLayout>flat</repositoryLayout>
177 </configuration>
178 </plugin>
179
180 <!-- Build Docker Image -->
181 <plugin>
182 <groupId>com.spotify</groupId>
183 <artifactId>docker-maven-plugin</artifactId>
184 <version>1.0.0</version>
185 <configuration>
186 <imageName>onap/osaaf/${project.artifactId}</imageName>
187 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
188 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
189 <imageTags>
190 <imageTag>latest</imageTag>
191 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
192 <imageTag>${project.docker.latesttag.version}</imageTag>
193 </imageTags>
194 <forceTags>true</forceTags>
195 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
196 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
197 </resource> </resources> -->
198 <resources>
199 <resource>
200 <targetPath>/</targetPath>
201 <directory>${project.build.directory}/opt</directory>
202 <include>${project.build.finalName}.jar</include>
203 </resource>
204 <resource>
205 <targetPath>/</targetPath>
206 <directory>${project.build.directory}</directory>
207 <include>**/**</include>
208 </resource>
209 </resources>
210 </configuration>
211 <executions>
212 <execution>
213 <id>build-image</id>
214 <phase>package</phase>
215 <goals>
216 <goal>build</goal>
217 </goals>
218 <configuration>
219 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
220 </configuration>
221 </execution>
222
223 <execution>
224 <id>tag-image-project-version</id>
225 <phase>package</phase>
226 <goals>
227 <goal>tag</goal>
228 </goals>
229 <configuration>
230 <image>onap/osaaf/${project.artifactId}</image>
231 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
232 <skipDockerTag>${skip.docker.push}</skipDockerTag>
233 </configuration>
234 </execution>
235
236 <execution>
237 <id>tag-image-latest</id>
238 <phase>package</phase>
239 <goals>
240 <goal>tag</goal>
241 </goals>
242 <configuration>
243 <image>onap/aaf/authz-service</image>
244 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
245 <skipDockerTag>${skip.docker.push}</skipDockerTag>
246 </configuration>
247 </execution>
248
249 <execution>
250 <id>push-image-latest</id>
251 <phase>deploy</phase>
252 <goals>
253 <goal>push</goal>
254 </goals>
255 <configuration>
256 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
257 <skipDockerPush>${skip.docker.push}</skipDockerPush>
258 </configuration>
259 </execution>
260
261 <execution>
262 <id>push-image</id>
263 <phase>deploy</phase>
264 <goals>
265 <goal>push</goal>
266 </goals>
267 <configuration>
268 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
269 <skipDockerPush>${skip.docker.push}</skipDockerPush>
270 </configuration>
271 </execution>
272 </executions>
273 </plugin>
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000274 <plugin>
275 <groupId>org.sonatype.plugins</groupId>
276 <artifactId>nexus-staging-maven-plugin</artifactId>
277 <version>1.6.7</version>
278 <extensions>true</extensions>
279 <configuration>
280 <nexusUrl>${nexusproxy}</nexusUrl>
281 <stagingProfileId>176c31dfe190a</stagingProfileId>
282 <serverId>ecomp-staging</serverId>
283 </configuration>
284 </plugin>
285 <plugin>
286 <groupId>org.jacoco</groupId>
287 <artifactId>jacoco-maven-plugin</artifactId>
288 <version>0.7.7.201606060606</version>
289 <configuration>
290 <dumpOnExit>true</dumpOnExit>
291 <includes>
292 <include>org.onap.aaf.*</include>
293 </includes>
294 </configuration>
295 <executions>
296 <execution>
297 <id>pre-unit-test</id>
298 <goals>
299 <goal>prepare-agent</goal>
300 </goals>
301 <configuration>
302 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
303 <!-- <append>true</append> -->
304 </configuration>
305 </execution>
306 <execution>
307 <id>pre-integration-test</id>
308 <phase>pre-integration-test</phase>
309 <goals>
310 <goal>prepare-agent</goal>
311 </goals>
312 <configuration>
313 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
314 <!-- <append>true</append> -->
315 </configuration>
316 </execution>
317 <execution>
318 <goals>
319 <goal>merge</goal>
320 </goals>
321 <phase>post-integration-test</phase>
322 <configuration>
323 <fileSets>
324 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
325 <directory>${project.build.directory}/coverage-reports</directory>
326 <includes>
327 <include>*.exec</include>
328 </includes>
329 </fileSet>
330 </fileSets>
331 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
332 </configuration>
333 </execution>
334 </executions>
335 </plugin>
Instrumental71037c32018-03-26 13:51:48 -0700336 </plugins>
337 </pluginManagement>
338 </build>
339
340 <dependencies>
341 <dependency>
342 <groupId>org.mockito</groupId>
343 <artifactId>mockito-all</artifactId>
344 <version>1.9.5</version>
345 <scope>test</scope>
346 </dependency>
347 <dependency>
348 <groupId>org.powermock</groupId>
349 <artifactId>powermock-module-junit4</artifactId>
350 <version>${powermock.version}</version>
351 <scope>test</scope>
352 </dependency>
353 <dependency>
354 <groupId>org.powermock</groupId>
355 <artifactId>powermock-api-mockito</artifactId>
356 <version>${powermock.version}</version>
357 <scope>test</scope>
358 </dependency>
359 <dependency>
360 <groupId>junit</groupId>
361 <artifactId>junit</artifactId>
362 <version>4.10</version>
363 <scope>test</scope>
364 </dependency>
365
366 </dependencies>
367
368 <modules>
369 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
370 <module>auth-core</module>
371 <module>auth-cass</module>
372 <module>auth-deforg</module>
373
374 <module>auth-service</module>
375 <module>auth-cmd</module>
376 <module>auth-batch</module>
377
378 <module>auth-gui</module>
379 <module>auth-locate</module>
380 <module>auth-oauth</module>
381 <module>auth-certman</module>
382 <module>auth-fs</module>
383 <module>auth-hello</module>
384 </modules>
385
386 <dependencyManagement>
387 <dependencies>
388 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000389 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700390 <artifactId>aaf-misc-env</artifactId>
su622b40077be2018-04-08 13:50:31 -0400391 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700392 </dependency>
393
394 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000395 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700396 <artifactId>aaf-misc-log4j</artifactId>
su622b40077be2018-04-08 13:50:31 -0400397 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700398 </dependency>
399
400 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000401 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700402 <artifactId>aaf-misc-rosetta</artifactId>
su622b40077be2018-04-08 13:50:31 -0400403 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700404 </dependency>
405
406 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000407 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700408 <artifactId>aaf-misc-xgen</artifactId>
su622b40077be2018-04-08 13:50:31 -0400409 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700410 </dependency>
411
412 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000413 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700414 <artifactId>aaf-cadi-core</artifactId>
su622b40077be2018-04-08 13:50:31 -0400415 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700416 </dependency>
417
418 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000419 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700420 <artifactId>aaf-cadi-client</artifactId>
su622b40077be2018-04-08 13:50:31 -0400421 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700422 </dependency>
423
424 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000425 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700426 <artifactId>aaf-cadi-aaf</artifactId>
su622b40077be2018-04-08 13:50:31 -0400427 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700428 <exclusions>
429 <exclusion>
430 <groupId>org.apache.cassandra</groupId>
431 <artifactId>cassandra-all</artifactId>
432 </exclusion>
433 </exclusions>
434 </dependency>
435
436 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000437 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700438 <artifactId>aaf-auth-client</artifactId>
su622b40077be2018-04-08 13:50:31 -0400439 <version>${project.version}</version>
Instrumental71037c32018-03-26 13:51:48 -0700440 </dependency>
441
442 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000443 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700444 <artifactId>aaf-auth-core</artifactId>
445 <version>${project.version}</version>
446 </dependency>
447
448 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000449 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700450 <artifactId>aaf-auth-cass</artifactId>
451 <version>${project.version}</version>
452 </dependency>
453
454 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000455 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700456 <artifactId>aaf-auth-cmd</artifactId>
457 <version>${project.version}</version>
458 </dependency>
459
460 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000461 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700462 <artifactId>aaf-auth-oauth</artifactId>
463 <version>${project.version}</version>
464 </dependency>
465
466 <dependency>
Sai Gandham83fc0252018-04-09 16:28:48 +0000467 <groupId>org.onap.aaf.authz</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700468 <artifactId>aaf-auth-deforg</artifactId>
469 <version>${project.version}</version>
470 </dependency>
471
472 <dependency>
473 <groupId>javax.servlet</groupId>
Instrumental924b18d2018-04-05 20:17:18 -0500474 <artifactId>javax.servlet-api</artifactId>
475 <version>3.0.1</version>
Instrumental71037c32018-03-26 13:51:48 -0700476 </dependency>
477
478 <dependency>
479 <groupId>org.eclipse.jetty</groupId>
480 <artifactId>jetty-servlet</artifactId>
481 <version>${project.jettyVersion}</version>
482 </dependency>
483
484 <dependency>
485 <groupId>org.eclipse.jetty</groupId>
486 <artifactId>jetty-server</artifactId>
487 <version>${project.jettyVersion}</version>
488 </dependency>
489
490 <dependency>
Instrumental71037c32018-03-26 13:51:48 -0700491 <groupId>com.datastax.cassandra</groupId>
492 <artifactId>cassandra-all</artifactId>
IanHowellc1e85932018-05-18 09:29:09 -0500493 <version>${project.cassVersion}</version>
Instrumental71037c32018-03-26 13:51:48 -0700494 <exclusions>
495 <exclusion>
496 <groupId>org.slf4j</groupId>
497 <artifactId>slf4j-log4j12</artifactId>
498 </exclusion>
499 <exclusion>
500 <groupId>log4j</groupId>
501 <artifactId>log4j</artifactId>
502 </exclusion>
503 </exclusions>
504 </dependency>
Instrumental67bac2c2018-04-02 17:41:10 -0500505
Instrumental71037c32018-03-26 13:51:48 -0700506 <dependency>
507 <groupId>com.datastax.cassandra</groupId>
508 <artifactId>cassandra-driver-core</artifactId>
IanHowellc1e85932018-05-18 09:29:09 -0500509 <version>${project.cassVersion}</version>
Instrumental71037c32018-03-26 13:51:48 -0700510 <exclusions>
511 <exclusion>
512 <groupId>org.slf4j</groupId>
513 <artifactId>slf4j-log4j12</artifactId>
514 </exclusion>
515 <exclusion>
516 <groupId>log4j</groupId>
517 <artifactId>log4j</artifactId>
518 </exclusion>
519 </exclusions>
520 </dependency>
Instrumental23a1c2e2018-04-11 14:13:46 -0500521
522 <!-- Note: Ensure DataStax uses more up-to-date netty handler -->
523 <dependency>
524 <groupId>io.netty</groupId>
525 <artifactId>netty-handler</artifactId>
IanHowellc1e85932018-05-18 09:29:09 -0500526 <version>${project.nettyVersion}</version>
Instrumental23a1c2e2018-04-11 14:13:46 -0500527 </dependency>
528
529
Instrumental71037c32018-03-26 13:51:48 -0700530
531 <dependency>
532 <groupId>org.slf4j</groupId>
533 <artifactId>slf4j-log4j12</artifactId>
534 <version>1.7.5</version>
535 </dependency>
536
537 <dependency>
538 <groupId>javax.mail</groupId>
539 <artifactId>mail</artifactId>
540 <version>1.4.5</version>
541 </dependency>
542 </dependencies>
543 </dependencyManagement>
544
545
Sai Gandhame01703c2018-03-26 22:57:09 +0000546
Instrumental71037c32018-03-26 13:51:48 -0700547
548</project>