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.7.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.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>Sai Gandham</name>
70 <email>sai.gandham@att.com</email>
71 <organization>ATT</organization>
73 <role>Developer</role>
82 <groupId>org.apache.maven.plugins</groupId>
83 <artifactId>maven-compiler-plugin</artifactId>
84 <version>2.3.2</version>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-surefire-plugin</artifactId>
93 <version>2.17</version>
95 <skipTests>false</skipTests>
98 <include>**/JU*.java</include>
102 <useSystemClassLoader>false</useSystemClassLoader>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-failsafe-plugin</artifactId>
109 <version>2.17</version>
111 <skipTests>false</skipTests>
115 <id>integration-test</id>
117 <goal>integration-test</goal>
124 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
126 <groupId>org.codehaus.mojo</groupId>
127 <artifactId>appassembler-maven-plugin</artifactId>
128 <version>1.10</version>
132 <goal>assemble</goal>
134 <phase>install</phase>
138 <programs/> <!-- this set in projects that have programs -->
139 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
140 <copyConfigurationDirectory>true</copyConfigurationDirectory>
141 <configurationDirectory>etc</configurationDirectory>
142 <repositoryName>lib</repositoryName>
143 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
144 <repositoryLayout>flat</repositoryLayout>
148 <!-- Build Docker Image -->
150 <groupId>com.spotify</groupId>
151 <artifactId>docker-maven-plugin</artifactId>
152 <version>1.0.0</version>
154 <imageName>onap/osaaf/${project.artifactId}</imageName>
155 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
156 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
158 <imageTag>latest</imageTag>
159 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
160 <imageTag>${project.docker.latesttag.version}</imageTag>
162 <forceTags>true</forceTags>
163 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
164 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
165 </resource> </resources> -->
168 <targetPath>/</targetPath>
169 <directory>${project.build.directory}/opt</directory>
170 <include>${project.build.finalName}.jar</include>
173 <targetPath>/</targetPath>
174 <directory>${project.build.directory}</directory>
175 <include>**/**</include>
182 <phase>package</phase>
187 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
192 <id>tag-image-project-version</id>
193 <phase>package</phase>
198 <image>onap/osaaf/${project.artifactId}</image>
199 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
200 <skipDockerTag>${skip.docker.push}</skipDockerTag>
205 <id>tag-image-latest</id>
206 <phase>package</phase>
211 <image>onap/aaf/authz-service</image>
212 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
213 <skipDockerTag>${skip.docker.push}</skipDockerTag>
218 <id>push-image-latest</id>
219 <phase>deploy</phase>
224 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
225 <skipDockerPush>${skip.docker.push}</skipDockerPush>
231 <phase>deploy</phase>
236 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
237 <skipDockerPush>${skip.docker.push}</skipDockerPush>
243 <groupId>org.jacoco</groupId>
244 <artifactId>jacoco-maven-plugin</artifactId>
245 <version>0.7.7.201606060606</version>
247 <dumpOnExit>true</dumpOnExit>
249 <include>org.onap.aaf.*</include>
254 <id>pre-unit-test</id>
256 <goal>prepare-agent</goal>
259 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
260 <!-- <append>true</append> -->
264 <id>pre-integration-test</id>
265 <phase>pre-integration-test</phase>
267 <goal>prepare-agent</goal>
270 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
271 <!-- <append>true</append> -->
278 <phase>post-integration-test</phase>
281 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
282 <directory>${project.build.directory}/coverage-reports</directory>
284 <include>*.exec</include>
288 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
299 <groupId>org.mockito</groupId>
300 <artifactId>mockito-all</artifactId>
304 <groupId>org.powermock</groupId>
305 <artifactId>powermock-module-junit4</artifactId>
309 <groupId>org.powermock</groupId>
310 <artifactId>powermock-api-mockito</artifactId>
314 <groupId>junit</groupId>
315 <artifactId>junit</artifactId>
322 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
323 <module>auth-core</module>
324 <module>auth-cass</module>
325 <module>auth-deforg</module>
327 <module>auth-service</module>
328 <module>auth-cmd</module>
329 <module>auth-batch</module>
331 <module>auth-gui</module>
332 <module>auth-locate</module>
333 <module>auth-oauth</module>
334 <module>auth-certman</module>
335 <module>auth-fs</module>
336 <module>auth-hello</module>