1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START====================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
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">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.aaf.authz</groupId>
28 <artifactId>parent</artifactId>
29 <version>2.1.0-SNAPSHOT</version>
31 <artifactId>authparent</artifactId>
32 <name>AAF Auth Parent</name>
33 <packaging>pom</packaging>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.interfaceVersion>2.1.0-SNAPSHOT</project.interfaceVersion>
39 <!-- >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>
42 <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
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 -->
48 <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>
50 <!-- 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>
56 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
61 <name>Jonathan Gathman</name>
62 <email>jonathan.gathman@att.com</email>
63 <organization>ATT</organization>
65 <role>Architect</role>
66 <role>Lead Developer</role>
70 <name>Gabe Maurer</name>
71 <email>gabe.maurer@att.com</email>
72 <organization>ATT</organization>
74 <role>Developer</role>
78 <name>Ian Howell</name>
79 <email>ian.howell@att.com</email>
80 <organization>ATT</organization>
82 <role>Developer</role>
86 <name>Sai Gandham</name>
87 <email>sai.gandham@att.com</email>
88 <organization>ATT</organization>
90 <role>Developer</role>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-compiler-plugin</artifactId>
101 <version>2.3.2</version>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-deploy-plugin</artifactId>
110 <version>2.6</version>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-surefire-plugin</artifactId>
119 <version>2.17</version>
121 <skipTests>false</skipTests>
124 <include>**/JU*.java</include>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-failsafe-plugin</artifactId>
135 <version>2.17</version>
137 <skipTests>false</skipTests>
141 <id>integration-test</id>
143 <goal>integration-test</goal>
150 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
152 <groupId>org.codehaus.mojo</groupId>
153 <artifactId>appassembler-maven-plugin</artifactId>
154 <version>1.10</version>
158 <goal>assemble</goal>
160 <phase>install</phase>
164 <programs/> <!-- this set in projects that have programs -->
165 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
166 <copyConfigurationDirectory>true</copyConfigurationDirectory>
167 <configurationDirectory>etc</configurationDirectory>
168 <repositoryName>lib</repositoryName>
169 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
170 <repositoryLayout>flat</repositoryLayout>
174 <!-- Build Docker Image -->
176 <groupId>com.spotify</groupId>
177 <artifactId>docker-maven-plugin</artifactId>
178 <version>1.0.0</version>
180 <imageName>onap/osaaf/${project.artifactId}</imageName>
181 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
182 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
184 <imageTag>latest</imageTag>
185 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
186 <imageTag>${project.docker.latesttag.version}</imageTag>
188 <forceTags>true</forceTags>
189 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
190 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
191 </resource> </resources> -->
194 <targetPath>/</targetPath>
195 <directory>${project.build.directory}/opt</directory>
196 <include>${project.build.finalName}.jar</include>
199 <targetPath>/</targetPath>
200 <directory>${project.build.directory}</directory>
201 <include>**/**</include>
208 <phase>package</phase>
213 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
218 <id>tag-image-project-version</id>
219 <phase>package</phase>
224 <image>onap/osaaf/${project.artifactId}</image>
225 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
226 <skipDockerTag>${skip.docker.push}</skipDockerTag>
231 <id>tag-image-latest</id>
232 <phase>package</phase>
237 <image>onap/aaf/authz-service</image>
238 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
239 <skipDockerTag>${skip.docker.push}</skipDockerTag>
244 <id>push-image-latest</id>
245 <phase>deploy</phase>
250 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
251 <skipDockerPush>${skip.docker.push}</skipDockerPush>
257 <phase>deploy</phase>
262 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
263 <skipDockerPush>${skip.docker.push}</skipDockerPush>
269 <groupId>org.sonatype.plugins</groupId>
270 <artifactId>nexus-staging-maven-plugin</artifactId>
271 <version>1.6.7</version>
272 <extensions>true</extensions>
274 <nexusUrl>${nexusproxy}</nexusUrl>
275 <stagingProfileId>176c31dfe190a</stagingProfileId>
276 <serverId>ecomp-staging</serverId>
280 <groupId>org.jacoco</groupId>
281 <artifactId>jacoco-maven-plugin</artifactId>
282 <version>0.7.7.201606060606</version>
284 <dumpOnExit>true</dumpOnExit>
286 <include>org.onap.aaf.*</include>
291 <id>pre-unit-test</id>
293 <goal>prepare-agent</goal>
296 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
297 <!-- <append>true</append> -->
301 <id>pre-integration-test</id>
302 <phase>pre-integration-test</phase>
304 <goal>prepare-agent</goal>
307 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
308 <!-- <append>true</append> -->
315 <phase>post-integration-test</phase>
318 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
319 <directory>${project.build.directory}/coverage-reports</directory>
321 <include>*.exec</include>
325 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
336 <groupId>org.mockito</groupId>
337 <artifactId>mockito-all</artifactId>
338 <version>1.9.5</version>
342 <groupId>org.powermock</groupId>
343 <artifactId>powermock-module-junit4</artifactId>
344 <version>${powermock.version}</version>
348 <groupId>org.powermock</groupId>
349 <artifactId>powermock-api-mockito</artifactId>
350 <version>${powermock.version}</version>
354 <groupId>junit</groupId>
355 <artifactId>junit</artifactId>
356 <version>4.10</version>
363 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
364 <module>auth-core</module>
365 <module>auth-cass</module>
366 <module>auth-deforg</module>
368 <module>auth-service</module>
369 <module>auth-cmd</module>
370 <module>auth-batch</module>
372 <module>auth-gui</module>
373 <module>auth-locate</module>
374 <module>auth-oauth</module>
375 <module>auth-certman</module>
376 <module>auth-fs</module>
377 <module>auth-hello</module>
380 <dependencyManagement>
383 <groupId>org.onap.aaf.authz</groupId>
384 <artifactId>aaf-misc-env</artifactId>
385 <version>${project.version}</version>
389 <groupId>org.onap.aaf.authz</groupId>
390 <artifactId>aaf-misc-log4j</artifactId>
391 <version>${project.version}</version>
395 <groupId>org.onap.aaf.authz</groupId>
396 <artifactId>aaf-misc-rosetta</artifactId>
397 <version>${project.version}</version>
401 <groupId>org.onap.aaf.authz</groupId>
402 <artifactId>aaf-misc-xgen</artifactId>
403 <version>${project.version}</version>
407 <groupId>org.onap.aaf.authz</groupId>
408 <artifactId>aaf-cadi-core</artifactId>
409 <version>${project.version}</version>
413 <groupId>org.onap.aaf.authz</groupId>
414 <artifactId>aaf-cadi-client</artifactId>
415 <version>${project.version}</version>
419 <groupId>org.onap.aaf.authz</groupId>
420 <artifactId>aaf-cadi-aaf</artifactId>
421 <version>${project.version}</version>
424 <groupId>org.apache.cassandra</groupId>
425 <artifactId>cassandra-all</artifactId>
431 <groupId>org.onap.aaf.authz</groupId>
432 <artifactId>aaf-auth-client</artifactId>
433 <version>${project.version}</version>
437 <groupId>org.onap.aaf.authz</groupId>
438 <artifactId>aaf-auth-core</artifactId>
439 <version>${project.version}</version>
443 <groupId>org.onap.aaf.authz</groupId>
444 <artifactId>aaf-auth-cass</artifactId>
445 <version>${project.version}</version>
449 <groupId>org.onap.aaf.authz</groupId>
450 <artifactId>aaf-auth-cmd</artifactId>
451 <version>${project.version}</version>
455 <groupId>org.onap.aaf.authz</groupId>
456 <artifactId>aaf-auth-oauth</artifactId>
457 <version>${project.version}</version>
461 <groupId>org.onap.aaf.authz</groupId>
462 <artifactId>aaf-auth-deforg</artifactId>
463 <version>${project.version}</version>
467 <groupId>javax.servlet</groupId>
468 <artifactId>javax.servlet-api</artifactId>
469 <version>3.0.1</version>
473 <groupId>org.eclipse.jetty</groupId>
474 <artifactId>jetty-servlet</artifactId>
475 <version>${project.jettyVersion}</version>
479 <groupId>org.eclipse.jetty</groupId>
480 <artifactId>jetty-server</artifactId>
481 <version>${project.jettyVersion}</version>
485 <groupId>com.datastax.cassandra</groupId>
486 <artifactId>cassandra-all</artifactId>
487 <version>3.3.0</version>
490 <groupId>org.slf4j</groupId>
491 <artifactId>slf4j-log4j12</artifactId>
494 <groupId>log4j</groupId>
495 <artifactId>log4j</artifactId>
501 <groupId>com.datastax.cassandra</groupId>
502 <artifactId>cassandra-driver-core</artifactId>
503 <version>3.4.0</version>
506 <groupId>org.slf4j</groupId>
507 <artifactId>slf4j-log4j12</artifactId>
510 <groupId>log4j</groupId>
511 <artifactId>log4j</artifactId>
516 <!-- Note: Ensure DataStax uses more up-to-date netty handler -->
518 <groupId>io.netty</groupId>
519 <artifactId>netty-handler</artifactId>
520 <version>4.1.22.Final</version>
526 <groupId>org.slf4j</groupId>
527 <artifactId>slf4j-log4j12</artifactId>
528 <version>1.7.5</version>
532 <groupId>javax.mail</groupId>
533 <artifactId>mail</artifactId>
534 <version>1.4.5</version>
537 </dependencyManagement>