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.16-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.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
40 <jacoco.version>0.7.7.201606060606</jacoco.version>
41 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43 <!-- Default Sonar configuration -->
44 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
45 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
50 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
51 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
52 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
53 <!-- We have to up these versions from the original to avoid Security Errors -->
54 <project.nettyVersion>4.1.22.Final</project.nettyVersion>
55 <project.project.ext_root_dir>/opt/app/osaaf</project.project.ext_root_dir>
60 <name>Jonathan Gathman</name>
61 <email>jonathan.gathman@att.com</email>
62 <organization>ATT</organization>
64 <role>Architect</role>
65 <role>Lead Developer</role>
69 <name>Gabe Maurer</name>
70 <email>gabe.maurer@att.com</email>
71 <organization>ATT</organization>
73 <role>Developer</role>
77 <name>Ian Howell</name>
78 <email>ian.howell@att.com</email>
79 <organization>ATT</organization>
81 <role>Developer</role>
85 <name>Sai Gandham</name>
86 <email>sai.gandham@att.com</email>
87 <organization>ATT</organization>
89 <role>Developer</role>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-compiler-plugin</artifactId>
100 <version>2.3.2</version>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-surefire-plugin</artifactId>
109 <version>2.17</version>
111 <skipTests>false</skipTests>
114 <include>**/JU*.java</include>
118 <useSystemClassLoader>false</useSystemClassLoader>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-failsafe-plugin</artifactId>
125 <version>2.17</version>
127 <skipTests>false</skipTests>
131 <id>integration-test</id>
133 <goal>integration-test</goal>
140 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
142 <groupId>org.codehaus.mojo</groupId>
143 <artifactId>appassembler-maven-plugin</artifactId>
144 <version>1.10</version>
148 <goal>assemble</goal>
150 <phase>install</phase>
154 <programs/> <!-- this set in projects that have programs -->
155 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
156 <copyConfigurationDirectory>true</copyConfigurationDirectory>
157 <configurationDirectory>etc</configurationDirectory>
158 <repositoryName>lib</repositoryName>
159 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
160 <repositoryLayout>flat</repositoryLayout>
164 <!-- Build Docker Image -->
166 <groupId>com.spotify</groupId>
167 <artifactId>docker-maven-plugin</artifactId>
168 <version>1.0.0</version>
170 <imageName>onap/osaaf/${project.artifactId}</imageName>
171 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
172 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
174 <imageTag>latest</imageTag>
175 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
176 <imageTag>${project.docker.latesttag.version}</imageTag>
178 <forceTags>true</forceTags>
179 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
180 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
181 </resource> </resources> -->
184 <targetPath>/</targetPath>
185 <directory>${project.build.directory}/opt</directory>
186 <include>${project.build.finalName}.jar</include>
189 <targetPath>/</targetPath>
190 <directory>${project.build.directory}</directory>
191 <include>**/**</include>
198 <phase>package</phase>
203 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
208 <id>tag-image-project-version</id>
209 <phase>package</phase>
214 <image>onap/osaaf/${project.artifactId}</image>
215 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
216 <skipDockerTag>${skip.docker.push}</skipDockerTag>
221 <id>tag-image-latest</id>
222 <phase>package</phase>
227 <image>onap/aaf/authz-service</image>
228 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
229 <skipDockerTag>${skip.docker.push}</skipDockerTag>
234 <id>push-image-latest</id>
235 <phase>deploy</phase>
240 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
241 <skipDockerPush>${skip.docker.push}</skipDockerPush>
247 <phase>deploy</phase>
252 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
253 <skipDockerPush>${skip.docker.push}</skipDockerPush>
259 <groupId>org.jacoco</groupId>
260 <artifactId>jacoco-maven-plugin</artifactId>
261 <version>0.7.7.201606060606</version>
263 <dumpOnExit>true</dumpOnExit>
265 <include>org.onap.aaf.*</include>
270 <id>pre-unit-test</id>
272 <goal>prepare-agent</goal>
275 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
276 <!-- <append>true</append> -->
280 <id>pre-integration-test</id>
281 <phase>pre-integration-test</phase>
283 <goal>prepare-agent</goal>
286 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
287 <!-- <append>true</append> -->
294 <phase>post-integration-test</phase>
297 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
298 <directory>${project.build.directory}/coverage-reports</directory>
300 <include>*.exec</include>
304 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
315 <groupId>org.mockito</groupId>
316 <artifactId>mockito-all</artifactId>
320 <groupId>org.powermock</groupId>
321 <artifactId>powermock-module-junit4</artifactId>
325 <groupId>org.powermock</groupId>
326 <artifactId>powermock-api-mockito</artifactId>
330 <groupId>junit</groupId>
331 <artifactId>junit</artifactId>
338 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
339 <module>auth-core</module>
340 <module>auth-cass</module>
341 <module>auth-deforg</module>
343 <module>auth-service</module>
344 <module>auth-cmd</module>
345 <module>auth-batch</module>
347 <module>auth-gui</module>
348 <module>auth-locate</module>
349 <module>auth-oauth</module>
350 <module>auth-certman</module>
351 <module>auth-fs</module>
352 <module>auth-hello</module>