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.23-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>
147 <!-- Build Docker Image -->
149 <groupId>com.spotify</groupId>
150 <artifactId>docker-maven-plugin</artifactId>
151 <version>1.0.0</version>
153 <imageName>onap/osaaf/${project.artifactId}</imageName>
154 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
155 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
157 <imageTag>latest</imageTag>
158 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
159 <imageTag>${project.docker.latesttag.version}</imageTag>
161 <forceTags>true</forceTags>
162 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
163 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
164 </resource> </resources> -->
167 <targetPath>/</targetPath>
168 <directory>${project.build.directory}/opt</directory>
169 <include>${project.build.finalName}.jar</include>
172 <targetPath>/</targetPath>
173 <directory>${project.build.directory}</directory>
174 <include>**/**</include>
181 <phase>package</phase>
186 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
191 <id>tag-image-project-version</id>
192 <phase>package</phase>
197 <image>onap/osaaf/${project.artifactId}</image>
198 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
199 <skipDockerTag>${skip.docker.push}</skipDockerTag>
204 <id>tag-image-latest</id>
205 <phase>package</phase>
210 <image>onap/aaf/authz-service</image>
211 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
212 <skipDockerTag>${skip.docker.push}</skipDockerTag>
217 <id>push-image-latest</id>
218 <phase>deploy</phase>
223 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
224 <skipDockerPush>${skip.docker.push}</skipDockerPush>
230 <phase>deploy</phase>
235 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
236 <skipDockerPush>${skip.docker.push}</skipDockerPush>
242 <groupId>org.jacoco</groupId>
243 <artifactId>jacoco-maven-plugin</artifactId>
244 <version>0.7.7.201606060606</version>
246 <dumpOnExit>true</dumpOnExit>
248 <include>org.onap.aaf.*</include>
253 <id>pre-unit-test</id>
255 <goal>prepare-agent</goal>
258 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
259 <!-- <append>true</append> -->
263 <id>pre-integration-test</id>
264 <phase>pre-integration-test</phase>
266 <goal>prepare-agent</goal>
269 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
270 <!-- <append>true</append> -->
277 <phase>post-integration-test</phase>
280 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
281 <directory>${project.build.directory}/coverage-reports</directory>
283 <include>*.exec</include>
287 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
298 <groupId>org.mockito</groupId>
299 <artifactId>mockito-all</artifactId>
303 <groupId>org.powermock</groupId>
304 <artifactId>powermock-module-junit4</artifactId>
308 <groupId>org.powermock</groupId>
309 <artifactId>powermock-api-mockito</artifactId>
313 <groupId>junit</groupId>
314 <artifactId>junit</artifactId>
321 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
322 <module>auth-core</module>
323 <module>auth-cass</module>
324 <module>auth-deforg</module>
326 <module>auth-service</module>
327 <module>auth-cmd</module>
328 <module>auth-batch</module>
330 <module>auth-gui</module>
331 <module>auth-locate</module>
332 <module>auth-oauth</module>
333 <module>auth-certman</module>
334 <module>auth-fs</module>
335 <module>auth-hello</module>