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.10-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-deploy-plugin</artifactId>
109 <version>2.6</version>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-surefire-plugin</artifactId>
118 <version>2.17</version>
120 <skipTests>false</skipTests>
123 <include>**/JU*.java</include>
127 <useSystemClassLoader>false</useSystemClassLoader>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-failsafe-plugin</artifactId>
134 <version>2.17</version>
136 <skipTests>false</skipTests>
140 <id>integration-test</id>
142 <goal>integration-test</goal>
149 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
151 <groupId>org.codehaus.mojo</groupId>
152 <artifactId>appassembler-maven-plugin</artifactId>
153 <version>1.10</version>
157 <goal>assemble</goal>
159 <phase>install</phase>
163 <programs/> <!-- this set in projects that have programs -->
164 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
165 <copyConfigurationDirectory>true</copyConfigurationDirectory>
166 <configurationDirectory>etc</configurationDirectory>
167 <repositoryName>lib</repositoryName>
168 <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
169 <repositoryLayout>flat</repositoryLayout>
173 <!-- Build Docker Image -->
175 <groupId>com.spotify</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>1.0.0</version>
179 <imageName>onap/osaaf/${project.artifactId}</imageName>
180 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
181 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
183 <imageTag>latest</imageTag>
184 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
185 <imageTag>${project.docker.latesttag.version}</imageTag>
187 <forceTags>true</forceTags>
188 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
189 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
190 </resource> </resources> -->
193 <targetPath>/</targetPath>
194 <directory>${project.build.directory}/opt</directory>
195 <include>${project.build.finalName}.jar</include>
198 <targetPath>/</targetPath>
199 <directory>${project.build.directory}</directory>
200 <include>**/**</include>
207 <phase>package</phase>
212 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
217 <id>tag-image-project-version</id>
218 <phase>package</phase>
223 <image>onap/osaaf/${project.artifactId}</image>
224 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
225 <skipDockerTag>${skip.docker.push}</skipDockerTag>
230 <id>tag-image-latest</id>
231 <phase>package</phase>
236 <image>onap/aaf/authz-service</image>
237 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
238 <skipDockerTag>${skip.docker.push}</skipDockerTag>
243 <id>push-image-latest</id>
244 <phase>deploy</phase>
249 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
250 <skipDockerPush>${skip.docker.push}</skipDockerPush>
256 <phase>deploy</phase>
261 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
262 <skipDockerPush>${skip.docker.push}</skipDockerPush>
268 <groupId>org.sonatype.plugins</groupId>
269 <artifactId>nexus-staging-maven-plugin</artifactId>
270 <version>1.6.7</version>
271 <extensions>true</extensions>
273 <nexusUrl>${nexusproxy}</nexusUrl>
274 <stagingProfileId>176c31dfe190a</stagingProfileId>
275 <serverId>ecomp-staging</serverId>
279 <groupId>org.jacoco</groupId>
280 <artifactId>jacoco-maven-plugin</artifactId>
281 <version>0.7.7.201606060606</version>
283 <dumpOnExit>true</dumpOnExit>
285 <include>org.onap.aaf.*</include>
290 <id>pre-unit-test</id>
292 <goal>prepare-agent</goal>
295 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
296 <!-- <append>true</append> -->
300 <id>pre-integration-test</id>
301 <phase>pre-integration-test</phase>
303 <goal>prepare-agent</goal>
306 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
307 <!-- <append>true</append> -->
314 <phase>post-integration-test</phase>
317 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
318 <directory>${project.build.directory}/coverage-reports</directory>
320 <include>*.exec</include>
324 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
335 <groupId>org.mockito</groupId>
336 <artifactId>mockito-all</artifactId>
340 <groupId>org.powermock</groupId>
341 <artifactId>powermock-module-junit4</artifactId>
345 <groupId>org.powermock</groupId>
346 <artifactId>powermock-api-mockito</artifactId>
350 <groupId>junit</groupId>
351 <artifactId>junit</artifactId>
358 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
359 <module>auth-core</module>
360 <module>auth-cass</module>
361 <module>auth-deforg</module>
363 <module>auth-service</module>
364 <module>auth-cmd</module>
365 <module>auth-batch</module>
367 <module>auth-gui</module>
368 <module>auth-locate</module>
369 <module>auth-oauth</module>
370 <module>auth-certman</module>
371 <module>auth-fs</module>
372 <module>auth-hello</module>