Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | * ============LICENSE_START==================================================== |
| 4 | * org.onap.aaf |
| 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 |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 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==================================================== |
| 20 | * |
| 21 | --> |
| 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"> |
| 24 | |
| 25 | <modelVersion>4.0.0</modelVersion> |
Sai Gandham | 3a70e91 | 2018-04-12 22:16:21 +0000 | [diff] [blame] | 26 | <parent> |
Sai Gandham | 83fc025 | 2018-04-09 16:28:48 +0000 | [diff] [blame] | 27 | <groupId>org.onap.aaf.authz</groupId> |
| 28 | <artifactId>parent</artifactId> |
Instrumental | 13b7a3b | 2019-03-14 13:36:18 -0500 | [diff] [blame] | 29 | <version>2.1.11-SNAPSHOT</version> |
Sai Gandham | 3a70e91 | 2018-04-12 22:16:21 +0000 | [diff] [blame] | 30 | </parent> |
Sai Gandham | 83fc025 | 2018-04-09 16:28:48 +0000 | [diff] [blame] | 31 | <artifactId>authparent</artifactId> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 32 | <name>AAF Auth Parent</name> |
| 33 | <packaging>pom</packaging> |
Sai Gandham | 99f14fb | 2018-04-08 10:13:10 -0500 | [diff] [blame] | 34 | |
Sai Gandham | a3ee229 | 2018-04-07 22:38:08 -0500 | [diff] [blame] | 35 | |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 36 | <properties> |
| 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 38 | <project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir> |
Sai Gandham | c434f3c | 2018-03-27 16:29:24 +0000 | [diff] [blame] | 39 | <!-- SONAR --> |
| 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 --> |
Sai Gandham | 61f8fdf | 2018-04-03 12:07:07 -0500 | [diff] [blame] | 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> |
Sai Gandham | c434f3c | 2018-03-27 16:29:24 +0000 | [diff] [blame] | 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> |
Sai Gandham | 30dca6e | 2018-04-09 21:22:48 +0000 | [diff] [blame] | 52 | <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath> |
IanHowell | c1e8593 | 2018-05-18 09:29:09 -0500 | [diff] [blame] | 53 | <!-- We have to up these versions from the original to avoid Security Errors --> |
IanHowell | c1e8593 | 2018-05-18 09:29:09 -0500 | [diff] [blame] | 54 | <project.nettyVersion>4.1.22.Final</project.nettyVersion> |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 55 | <project.project.ext_root_dir>/opt/app/osaaf</project.project.ext_root_dir> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 56 | </properties> |
| 57 | |
| 58 | <developers> |
| 59 | <developer> |
| 60 | <name>Jonathan Gathman</name> |
| 61 | <email>jonathan.gathman@att.com</email> |
| 62 | <organization>ATT</organization> |
| 63 | <roles> |
| 64 | <role>Architect</role> |
| 65 | <role>Lead Developer</role> |
| 66 | </roles> |
| 67 | </developer> |
| 68 | <developer> |
| 69 | <name>Gabe Maurer</name> |
| 70 | <email>gabe.maurer@att.com</email> |
| 71 | <organization>ATT</organization> |
| 72 | <roles> |
| 73 | <role>Developer</role> |
| 74 | </roles> |
| 75 | </developer> |
| 76 | <developer> |
| 77 | <name>Ian Howell</name> |
| 78 | <email>ian.howell@att.com</email> |
| 79 | <organization>ATT</organization> |
| 80 | <roles> |
| 81 | <role>Developer</role> |
| 82 | </roles> |
| 83 | </developer> |
Sai Gandham | e01703c | 2018-03-26 22:57:09 +0000 | [diff] [blame] | 84 | <developer> |
| 85 | <name>Sai Gandham</name> |
| 86 | <email>sai.gandham@att.com</email> |
| 87 | <organization>ATT</organization> |
| 88 | <roles> |
| 89 | <role>Developer</role> |
| 90 | </roles> |
| 91 | </developer> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 92 | </developers> |
| 93 | |
| 94 | <build> |
| 95 | <pluginManagement> |
| 96 | <plugins> |
| 97 | <plugin> |
| 98 | <groupId>org.apache.maven.plugins</groupId> |
| 99 | <artifactId>maven-compiler-plugin</artifactId> |
| 100 | <version>2.3.2</version> |
| 101 | <configuration> |
| 102 | <source>1.8</source> |
| 103 | <target>1.8</target> |
| 104 | </configuration> |
| 105 | </plugin> |
| 106 | <plugin> |
| 107 | <groupId>org.apache.maven.plugins</groupId> |
| 108 | <artifactId>maven-deploy-plugin</artifactId> |
| 109 | <version>2.6</version> |
| 110 | <configuration> |
Sai Gandham | d97041c | 2018-04-03 01:57:59 -0500 | [diff] [blame] | 111 | <skip>false</skip> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 112 | </configuration> |
| 113 | </plugin> |
| 114 | |
| 115 | <plugin> |
| 116 | <groupId>org.apache.maven.plugins</groupId> |
| 117 | <artifactId>maven-surefire-plugin</artifactId> |
| 118 | <version>2.17</version> |
| 119 | <configuration> |
Instrumental | 67bac2c | 2018-04-02 17:41:10 -0500 | [diff] [blame] | 120 | <skipTests>false</skipTests> |
Instrumental | 17ca744 | 2018-03-29 16:54:19 -0500 | [diff] [blame] | 121 | |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 122 | <includes> |
| 123 | <include>**/JU*.java</include> |
| 124 | </includes> |
| 125 | <excludes> |
| 126 | </excludes> |
Paul Vaduva | 10a5f72 | 2018-11-12 16:20:10 +0100 | [diff] [blame] | 127 | <useSystemClassLoader>false</useSystemClassLoader> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 128 | </configuration> |
| 129 | </plugin> |
| 130 | |
| 131 | <plugin> |
| 132 | <groupId>org.apache.maven.plugins</groupId> |
| 133 | <artifactId>maven-failsafe-plugin</artifactId> |
| 134 | <version>2.17</version> |
| 135 | <configuration> |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 136 | <skipTests>false</skipTests> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 137 | </configuration> |
| 138 | <executions> |
| 139 | <execution> |
| 140 | <id>integration-test</id> |
| 141 | <goals> |
| 142 | <goal>integration-test</goal> |
| 143 | <goal>verify</goal> |
| 144 | </goals> |
| 145 | </execution> |
| 146 | </executions> |
| 147 | </plugin> |
| 148 | |
| 149 | <!-- Builds O/S Command line ready jars and scripts, ready to run/zip --> |
| 150 | <plugin> |
| 151 | <groupId>org.codehaus.mojo</groupId> |
| 152 | <artifactId>appassembler-maven-plugin</artifactId> |
| 153 | <version>1.10</version> |
| 154 | <executions> |
| 155 | <execution> |
| 156 | <goals> |
| 157 | <goal>assemble</goal> |
| 158 | </goals> |
| 159 | <phase>install</phase> |
| 160 | </execution> |
| 161 | </executions> |
| 162 | <configuration> |
| 163 | <programs/> <!-- this set in projects that have programs --> |
| 164 | <assembleDirectory>../aaf_${project.version}</assembleDirectory> |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 165 | <copyConfigurationDirectory>true</copyConfigurationDirectory> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 166 | <configurationDirectory>etc</configurationDirectory> |
| 167 | <repositoryName>lib</repositoryName> |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 168 | <includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 169 | <repositoryLayout>flat</repositoryLayout> |
| 170 | </configuration> |
| 171 | </plugin> |
| 172 | |
| 173 | <!-- Build Docker Image --> |
| 174 | <plugin> |
| 175 | <groupId>com.spotify</groupId> |
| 176 | <artifactId>docker-maven-plugin</artifactId> |
| 177 | <version>1.0.0</version> |
| 178 | <configuration> |
| 179 | <imageName>onap/osaaf/${project.artifactId}</imageName> |
| 180 | <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> --> |
| 181 | <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory> |
| 182 | <imageTags> |
| 183 | <imageTag>latest</imageTag> |
| 184 | <imageTag>${project.docker.latesttagtimestamp.version}</imageTag> |
| 185 | <imageTag>${project.docker.latesttag.version}</imageTag> |
| 186 | </imageTags> |
| 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> --> |
| 191 | <resources> |
| 192 | <resource> |
| 193 | <targetPath>/</targetPath> |
| 194 | <directory>${project.build.directory}/opt</directory> |
| 195 | <include>${project.build.finalName}.jar</include> |
| 196 | </resource> |
| 197 | <resource> |
| 198 | <targetPath>/</targetPath> |
| 199 | <directory>${project.build.directory}</directory> |
| 200 | <include>**/**</include> |
| 201 | </resource> |
| 202 | </resources> |
| 203 | </configuration> |
| 204 | <executions> |
| 205 | <execution> |
| 206 | <id>build-image</id> |
| 207 | <phase>package</phase> |
| 208 | <goals> |
| 209 | <goal>build</goal> |
| 210 | </goals> |
| 211 | <configuration> |
| 212 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild> |
| 213 | </configuration> |
| 214 | </execution> |
| 215 | |
| 216 | <execution> |
| 217 | <id>tag-image-project-version</id> |
| 218 | <phase>package</phase> |
| 219 | <goals> |
| 220 | <goal>tag</goal> |
| 221 | </goals> |
| 222 | <configuration> |
| 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> |
| 226 | </configuration> |
| 227 | </execution> |
| 228 | |
| 229 | <execution> |
| 230 | <id>tag-image-latest</id> |
| 231 | <phase>package</phase> |
| 232 | <goals> |
| 233 | <goal>tag</goal> |
| 234 | </goals> |
| 235 | <configuration> |
| 236 | <image>onap/aaf/authz-service</image> |
| 237 | <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName> |
| 238 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 239 | </configuration> |
| 240 | </execution> |
| 241 | |
| 242 | <execution> |
| 243 | <id>push-image-latest</id> |
| 244 | <phase>deploy</phase> |
| 245 | <goals> |
| 246 | <goal>push</goal> |
| 247 | </goals> |
| 248 | <configuration> |
| 249 | <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName> |
| 250 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 251 | </configuration> |
| 252 | </execution> |
| 253 | |
| 254 | <execution> |
| 255 | <id>push-image</id> |
| 256 | <phase>deploy</phase> |
| 257 | <goals> |
| 258 | <goal>push</goal> |
| 259 | </goals> |
| 260 | <configuration> |
| 261 | <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName> |
| 262 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 263 | </configuration> |
| 264 | </execution> |
| 265 | </executions> |
| 266 | </plugin> |
Sai Gandham | c434f3c | 2018-03-27 16:29:24 +0000 | [diff] [blame] | 267 | <plugin> |
| 268 | <groupId>org.sonatype.plugins</groupId> |
| 269 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 270 | <version>1.6.7</version> |
| 271 | <extensions>true</extensions> |
| 272 | <configuration> |
| 273 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 274 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 275 | <serverId>ecomp-staging</serverId> |
| 276 | </configuration> |
| 277 | </plugin> |
| 278 | <plugin> |
| 279 | <groupId>org.jacoco</groupId> |
| 280 | <artifactId>jacoco-maven-plugin</artifactId> |
| 281 | <version>0.7.7.201606060606</version> |
| 282 | <configuration> |
| 283 | <dumpOnExit>true</dumpOnExit> |
| 284 | <includes> |
| 285 | <include>org.onap.aaf.*</include> |
| 286 | </includes> |
| 287 | </configuration> |
| 288 | <executions> |
| 289 | <execution> |
| 290 | <id>pre-unit-test</id> |
| 291 | <goals> |
| 292 | <goal>prepare-agent</goal> |
| 293 | </goals> |
| 294 | <configuration> |
| 295 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 296 | <!-- <append>true</append> --> |
| 297 | </configuration> |
| 298 | </execution> |
| 299 | <execution> |
| 300 | <id>pre-integration-test</id> |
| 301 | <phase>pre-integration-test</phase> |
| 302 | <goals> |
| 303 | <goal>prepare-agent</goal> |
| 304 | </goals> |
| 305 | <configuration> |
| 306 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 307 | <!-- <append>true</append> --> |
| 308 | </configuration> |
| 309 | </execution> |
| 310 | <execution> |
| 311 | <goals> |
| 312 | <goal>merge</goal> |
| 313 | </goals> |
| 314 | <phase>post-integration-test</phase> |
| 315 | <configuration> |
| 316 | <fileSets> |
| 317 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 318 | <directory>${project.build.directory}/coverage-reports</directory> |
| 319 | <includes> |
| 320 | <include>*.exec</include> |
| 321 | </includes> |
| 322 | </fileSet> |
| 323 | </fileSets> |
| 324 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 325 | </configuration> |
| 326 | </execution> |
| 327 | </executions> |
| 328 | </plugin> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 329 | </plugins> |
| 330 | </pluginManagement> |
| 331 | </build> |
| 332 | |
| 333 | <dependencies> |
| 334 | <dependency> |
| 335 | <groupId>org.mockito</groupId> |
| 336 | <artifactId>mockito-all</artifactId> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 337 | <scope>test</scope> |
| 338 | </dependency> |
| 339 | <dependency> |
| 340 | <groupId>org.powermock</groupId> |
| 341 | <artifactId>powermock-module-junit4</artifactId> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 342 | <scope>test</scope> |
| 343 | </dependency> |
| 344 | <dependency> |
| 345 | <groupId>org.powermock</groupId> |
| 346 | <artifactId>powermock-api-mockito</artifactId> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 347 | <scope>test</scope> |
| 348 | </dependency> |
| 349 | <dependency> |
| 350 | <groupId>junit</groupId> |
| 351 | <artifactId>junit</artifactId> |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 352 | <scope>test</scope> |
| 353 | </dependency> |
| 354 | |
| 355 | </dependencies> |
| 356 | |
| 357 | <modules> |
| 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> |
| 362 | |
| 363 | <module>auth-service</module> |
| 364 | <module>auth-cmd</module> |
| 365 | <module>auth-batch</module> |
| 366 | |
| 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> |
| 373 | </modules> |
| 374 | |
Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 375 | |
| 376 | </project> |