sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ============LICENSE_START====================================================
|
| 4 | * org.onap.aaf
|
| 5 | * ===========================================================================
|
| 6 | * Copyright © 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 | * ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 22 | *
|
| 23 | -->
|
| 24 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
| 26 | <modelVersion>4.0.0</modelVersion>
|
| 27 | <parent>
|
| 28 | <groupId>org.onap.aaf.authz</groupId>
|
| 29 | <artifactId>parent</artifactId>
|
| 30 | <version>1.0.0-SNAPSHOT</version>
|
| 31 | <relativePath>../pom.xml</relativePath>
|
| 32 | </parent>
|
| 33 |
|
| 34 | <artifactId>authz-service</artifactId>
|
| 35 | <name>Authz Service</name>
|
| 36 | <description>API for Authorization and Authentication</description>
|
| 37 | <url>https://github.com/att/AAF</url>
|
| 38 | <licenses>
|
| 39 | <license>
|
| 40 | <name>BSD License</name>
|
| 41 | <url> </url>
|
| 42 | </license>
|
| 43 | </licenses>
|
| 44 | <developers>
|
| 45 | <developer>
|
| 46 | <name>Jonathan Gathman</name>
|
| 47 | <email></email>
|
| 48 | <organization>ATT</organization>
|
| 49 | <organizationUrl></organizationUrl>
|
| 50 | </developer>
|
| 51 | </developers>
|
| 52 |
|
| 53 | <properties>
|
| 54 | <maven.test.failure.ignore>true</maven.test.failure.ignore>
|
| 55 | <project.swmVersion>1</project.swmVersion>
|
| 56 | <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 57 | <dockerLocation>${basedir}/target/</dockerLocation>
|
sg481n | a9f4fe1 | 2017-09-16 23:16:53 -0400 | [diff] [blame^] | 58 | <docker.registry>nexus3.onap.org</docker.registry>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 59 | <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
|
sg481n | 40cd356 | 2017-09-01 13:12:31 -0400 | [diff] [blame] | 60 | <sonar.language>java</sonar.language>
|
| 61 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
|
| 62 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
|
| 63 | <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
|
| 64 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
|
| 65 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
|
| 66 | <sonar.projectVersion>${project.version}</sonar.projectVersion>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 67 | <nexusproxy>https://nexus.onap.org</nexusproxy>
|
| 68 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
|
| 69 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
|
| 70 | <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
|
| 71 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
|
| 72 | </properties>
|
| 73 |
|
| 74 |
|
| 75 | <dependencies>
|
| 76 | <dependency>
|
| 77 | <groupId>org.onap.aaf.authz</groupId>
|
| 78 | <artifactId>authz-client</artifactId>
|
| 79 | </dependency>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 80 |
|
| 81 | <dependency>
|
| 82 | <groupId>org.onap.aaf.authz</groupId>
|
| 83 | <artifactId>authz-cmd</artifactId>
|
| 84 | </dependency>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 85 | <dependency>
|
| 86 | <groupId>org.onap.aaf.authz</groupId>
|
| 87 | <artifactId>authz-core</artifactId>
|
| 88 | <exclusions>
|
| 89 | <exclusion>
|
| 90 | <groupId>javax.servlet</groupId>
|
| 91 | <artifactId>servlet-api</artifactId>
|
| 92 | </exclusion>
|
| 93 | </exclusions>
|
| 94 | </dependency>
|
| 95 |
|
| 96 | <dependency>
|
| 97 | <groupId>org.onap.aaf.authz</groupId>
|
| 98 | <artifactId>authz-cass</artifactId>
|
| 99 | </dependency>
|
| 100 |
|
| 101 | <dependency>
|
| 102 | <groupId>org.onap.aaf.authz</groupId>
|
| 103 | <artifactId>authz-defOrg</artifactId>
|
| 104 | <version>${project.version}</version>
|
| 105 | </dependency>
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 | <dependency >
|
| 110 | <groupId>org.onap.aaf.inno</groupId>
|
| 111 | <artifactId>env</artifactId>
|
| 112 | </dependency>
|
| 113 |
|
| 114 |
|
| 115 | <dependency>
|
| 116 | <groupId>org.onap.aaf.cadi</groupId>
|
| 117 | <artifactId>cadi-core</artifactId>
|
| 118 | </dependency>
|
| 119 |
|
| 120 | <dependency>
|
| 121 | <groupId>com.att.aft</groupId>
|
| 122 | <artifactId>dme2</artifactId>
|
| 123 | </dependency>
|
| 124 |
|
| 125 | <dependency>
|
| 126 | <groupId>org.onap.aaf.inno</groupId>
|
| 127 | <artifactId>rosetta</artifactId>
|
| 128 | </dependency>
|
| 129 | <dependency>
|
| 130 | <groupId>org.onap.aaf.cadi</groupId>
|
| 131 | <artifactId>cadi-aaf</artifactId>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 132 | </dependency>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 133 | </dependencies>
|
| 134 |
|
| 135 | <build>
|
| 136 | <plugins>
|
sg481n | dc5fcf1 | 2017-09-15 13:06:30 -0400 | [diff] [blame] | 137 | <plugin>
|
| 138 | <groupId>org.apache.maven.plugins</groupId>
|
| 139 | <artifactId>maven-resources-plugin</artifactId>
|
| 140 | <version>2.7</version>
|
| 141 | <executions>
|
| 142 | <execution>
|
| 143 | <id>copy-docker-file</id>
|
| 144 | <phase>package</phase>
|
| 145 | <goals>
|
| 146 | <goal>copy-resources</goal>
|
| 147 | </goals>
|
| 148 | <configuration>
|
| 149 | <outputDirectory>${dockerLocation}</outputDirectory>
|
| 150 | <overwrite>true</overwrite>
|
| 151 | <resources>
|
| 152 | <resource>
|
| 153 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 154 | <filtering>true</filtering>
|
| 155 | <includes>
|
| 156 | <include>**/*</include>
|
| 157 | </includes>
|
| 158 | </resource>
|
| 159 | </resources>
|
| 160 | </configuration>
|
| 161 | </execution>
|
| 162 | </executions>
|
| 163 | </plugin>
|
| 164 | <plugin>
|
| 165 | <groupId>com.spotify</groupId>
|
| 166 | <artifactId>docker-maven-plugin</artifactId>
|
| 167 | <version>0.4.11</version>
|
| 168 | <configuration>
|
| 169 | <imageName>onap/aaf/authz-service</imageName>
|
| 170 | <dockerDirectory>${dockerLocation}</dockerDirectory>
|
| 171 | <serverId>docker-hub</serverId>
|
| 172 | <registryUrl>https://${docker.registry}</registryUrl>
|
| 173 | <imageTags>
|
| 174 | <imageTag>${project.version}</imageTag>
|
| 175 | <imageTag>latest</imageTag>
|
| 176 | </imageTags>
|
| 177 | <resources>
|
| 178 | <resource>
|
| 179 | <targetPath>/</targetPath>
|
| 180 | <directory>/${basedir}/target/opt</directory>
|
| 181 | <filtering>true</filtering>
|
| 182 | <includes>
|
| 183 | <include>**/*</include>
|
| 184 | </includes>
|
| 185 | </resource>
|
| 186 | </resources>
|
| 187 | <forceTags>true</forceTags>
|
| 188 | </configuration>
|
| 189 | </plugin>
|
| 190 | <plugin>
|
| 191 | <artifactId>maven-resources-plugin</artifactId>
|
| 192 | <version>2.7</version>
|
| 193 | <executions>
|
| 194 | <execution>
|
| 195 | <id>copy-resources-1</id>
|
| 196 | <phase>validate</phase>
|
| 197 | <goals>
|
| 198 | <goal>copy-resources</goal>
|
| 199 | </goals>
|
| 200 | <configuration>
|
| 201 | <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
|
| 202 | <resources>
|
| 203 | <resource>
|
| 204 | <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
|
| 205 | <includes>
|
| 206 | <include>**/*.txt</include>
|
| 207 | </includes>
|
| 208 | </resource>
|
| 209 | </resources>
|
| 210 | </configuration>
|
| 211 | </execution>
|
| 212 | <execution>
|
| 213 | <id>copy-resources-2</id>
|
| 214 | <phase>validate</phase>
|
| 215 | <goals>
|
| 216 | <goal>copy-resources</goal>
|
| 217 | </goals>
|
| 218 | <configuration>
|
| 219 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
|
| 220 | <resources>
|
| 221 | <resource>
|
| 222 | <directory>${project.basedir}/src/main/resources/etc</directory>
|
| 223 | <includes>
|
| 224 | <include>**/**</include>
|
| 225 | </includes>
|
| 226 | </resource>
|
| 227 | </resources>
|
| 228 | </configuration>
|
| 229 | </execution>
|
| 230 |
|
| 231 | <execution>
|
| 232 | <id>copy-resources-3</id>
|
| 233 | <phase>validate</phase>
|
| 234 | <goals>
|
| 235 | <goal>copy-resources</goal>
|
| 236 | </goals>
|
| 237 | <configuration>
|
| 238 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
|
| 239 | <resources>
|
| 240 | <resource>
|
| 241 | <directory>${project.basedir}/../authz-cmd/target</directory>
|
| 242 | <includes>
|
| 243 | <include>**/authz-cmd-1.0.0-SNAPSHOT-jar-with-dependencies.jar</include>
|
| 244 | </includes>
|
| 245 | </resource>
|
| 246 | </resources>
|
| 247 | </configuration>
|
| 248 | </execution>
|
| 249 | <execution>
|
| 250 | <id>copy-resources-4</id>
|
| 251 | <phase>validate</phase>
|
| 252 | <goals>
|
| 253 | <goal>copy-resources</goal>
|
| 254 | </goals>
|
| 255 | <configuration>
|
| 256 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}</outputDirectory>
|
| 257 | <resources>
|
| 258 | <resource>
|
| 259 | <directory>${project.basedir}/../authz-cmd</directory>
|
| 260 | <includes>
|
| 261 | <include>**/aafcli.sh</include>
|
| 262 | </includes>
|
| 263 | </resource>
|
| 264 | </resources>
|
| 265 | </configuration>
|
| 266 | </execution>
|
| 267 | <execution>
|
| 268 | <id>copy-resources-5</id>
|
| 269 | <phase>validate</phase>
|
| 270 | <goals>
|
| 271 | <goal>copy-resources</goal>
|
| 272 | </goals>
|
| 273 | <configuration>
|
| 274 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
|
| 275 | <resources>
|
| 276 | <resource>
|
| 277 | <directory>${project.basedir}/../authz-cmd/etc</directory>
|
| 278 | <includes>
|
| 279 | <include>**/**</include>
|
| 280 | </includes>
|
| 281 | </resource>
|
| 282 | </resources>
|
| 283 | </configuration>
|
| 284 | </execution>
|
| 285 | </executions>
|
| 286 | </plugin>
|
| 287 | <plugin>
|
| 288 | <groupId>org.apache.maven.plugins</groupId>
|
| 289 | <artifactId>maven-dependency-plugin</artifactId>
|
| 290 | <version>2.10</version>
|
| 291 | <executions>
|
| 292 | <execution>
|
| 293 | <id>copy-dependencies</id>
|
| 294 | <phase>package</phase>
|
| 295 | <goals>
|
| 296 | <goal>copy-dependencies</goal>
|
| 297 | </goals>
|
| 298 | <configuration>
|
| 299 | <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
|
| 300 | <overWriteReleases>false</overWriteReleases>
|
| 301 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 302 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 303 | </configuration>
|
| 304 | </execution>
|
| 305 | </executions>
|
| 306 | </plugin>
|
| 307 |
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 308 | <plugin>
|
| 309 | <groupId>org.codehaus.mojo</groupId>
|
| 310 | <artifactId>exec-maven-plugin</artifactId>
|
| 311 | <version>1.5.0</version>
|
| 312 | <configuration>
|
| 313 | <executable>java</executable>
|
| 314 | <arguments>
|
| 315 | <argument>-DAFT_LATITUDE=33</argument>
|
| 316 | <argument>-DAFT_LONGITUDE=-84</argument>
|
| 317 | <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
|
| 318 |
|
| 319 | <argument>-XX:NewRatio=3</argument>
|
| 320 | <argument>-XX:+PrintGCTimeStamps</argument>
|
| 321 | <argument>-XX:+PrintGCDetails</argument>
|
| 322 | <argument>-Xloggc:gc.log</argument>
|
| 323 | <argument>-classpath</argument>
|
| 324 |
|
| 325 | <classpath>
|
| 326 |
|
| 327 | </classpath>
|
| 328 | <argument>org.onap.aaf.authz.service.AuthAPI</argument>
|
| 329 |
|
| 330 | <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
|
| 331 | </arguments>
|
| 332 | </configuration>
|
| 333 | </plugin>
|
| 334 |
|
| 335 | <plugin>
|
| 336 | <groupId>org.apache.maven.plugins</groupId>
|
| 337 | <artifactId>maven-jar-plugin</artifactId>
|
| 338 | <configuration>
|
| 339 | <excludes>
|
| 340 | <exclude>*.properties</exclude>
|
| 341 | </excludes>
|
| 342 | </configuration>
|
| 343 | <version>2.3.1</version>
|
| 344 | </plugin>
|
| 345 |
|
| 346 | <plugin>
|
| 347 | <groupId>org.apache.maven.plugins</groupId>
|
| 348 | <artifactId>maven-deploy-plugin</artifactId>
|
| 349 | <configuration>
|
| 350 | <skip>true</skip>
|
| 351 | </configuration>
|
| 352 | </plugin>
|
| 353 |
|
| 354 | <plugin>
|
| 355 | <groupId>org.apache.maven.plugins</groupId>
|
| 356 | <artifactId>maven-javadoc-plugin</artifactId>
|
| 357 | <configuration>
|
| 358 | <failOnError>false</failOnError>
|
| 359 | </configuration>
|
| 360 | <executions>
|
| 361 | <execution>
|
| 362 | <id>attach-javadocs</id>
|
| 363 | <goals>
|
| 364 | <goal>jar</goal>
|
| 365 | </goals>
|
| 366 | </execution>
|
| 367 | </executions>
|
| 368 | </plugin>
|
| 369 |
|
| 370 |
|
| 371 | <plugin>
|
| 372 | <groupId>org.apache.maven.plugins</groupId>
|
| 373 | <artifactId>maven-source-plugin</artifactId>
|
| 374 | <version>2.2.1</version>
|
| 375 | <executions>
|
| 376 | <execution>
|
| 377 | <id>attach-sources</id>
|
| 378 | <goals>
|
| 379 | <goal>jar-no-fork</goal>
|
| 380 | </goals>
|
| 381 | </execution>
|
| 382 | </executions>
|
| 383 | </plugin>
|
| 384 |
|
| 385 | <plugin>
|
| 386 | <groupId>org.sonatype.plugins</groupId>
|
| 387 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
| 388 | <version>1.6.7</version>
|
| 389 | <extensions>true</extensions>
|
| 390 | <configuration>
|
| 391 | <nexusUrl>${nexusproxy}</nexusUrl>
|
| 392 | <stagingProfileId>176c31dfe190a</stagingProfileId>
|
| 393 | <serverId>ecomp-staging</serverId>
|
| 394 | </configuration>
|
sg481n | 40cd356 | 2017-09-01 13:12:31 -0400 | [diff] [blame] | 395 | </plugin>
|
| 396 | <plugin>
|
| 397 | <groupId>org.jacoco</groupId>
|
| 398 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 399 | <version>0.7.7.201606060606</version>
|
| 400 | <configuration>
|
| 401 | <dumpOnExit>true</dumpOnExit>
|
| 402 | <includes>
|
| 403 | <include>org.onap.aaf.*</include>
|
| 404 | </includes>
|
| 405 | </configuration>
|
| 406 | <executions>
|
| 407 | <execution>
|
| 408 | <id>pre-unit-test</id>
|
| 409 | <goals>
|
| 410 | <goal>prepare-agent</goal>
|
| 411 | </goals>
|
| 412 | <configuration>
|
| 413 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
|
| 414 | <!-- <append>true</append> -->
|
| 415 | </configuration>
|
| 416 | </execution>
|
| 417 | <execution>
|
| 418 | <id>pre-integration-test</id>
|
| 419 | <phase>pre-integration-test</phase>
|
| 420 | <goals>
|
| 421 | <goal>prepare-agent</goal>
|
| 422 | </goals>
|
| 423 | <configuration>
|
| 424 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
|
| 425 | <!-- <append>true</append> -->
|
| 426 | </configuration>
|
| 427 | </execution>
|
| 428 | <execution>
|
| 429 | <goals>
|
| 430 | <goal>merge</goal>
|
| 431 | </goals>
|
| 432 | <phase>post-integration-test</phase>
|
| 433 | <configuration>
|
| 434 | <fileSets>
|
| 435 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
|
| 436 | <directory>${project.build.directory}/coverage-reports</directory>
|
| 437 | <includes>
|
| 438 | <include>*.exec</include>
|
| 439 | </includes>
|
| 440 | </fileSet>
|
| 441 | </fileSets>
|
| 442 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
|
| 443 | </configuration>
|
| 444 | </execution>
|
| 445 | </executions>
|
| 446 | </plugin>
|
sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 447 |
|
| 448 | </plugins>
|
| 449 |
|
| 450 | </build>
|
| 451 |
|
| 452 | <distributionManagement>
|
| 453 | <repository>
|
| 454 | <id>ecomp-releases</id>
|
| 455 | <name>AAF Release Repository</name>
|
| 456 | <url>${nexusproxy}${releaseNexusPath}</url>
|
| 457 | </repository>
|
| 458 | <snapshotRepository>
|
| 459 | <id>ecomp-snapshots</id>
|
| 460 | <name>AAF Snapshot Repository</name>
|
| 461 | <url>${nexusproxy}${snapshotNexusPath}</url>
|
| 462 | </snapshotRepository>
|
| 463 | <site>
|
| 464 | <id>ecomp-site</id>
|
| 465 | <url>dav:${nexusproxy}${sitePath}</url>
|
| 466 | </site>
|
| 467 | </distributionManagement>
|
| 468 | <pluginRepositories>
|
| 469 | <pluginRepository>
|
| 470 | <id>onap-plugin-snapshots</id>
|
| 471 | <url>https://nexus.onap.org/content/repositories/snapshots/</url>
|
| 472 | </pluginRepository>
|
| 473 | </pluginRepositories>
|
| 474 |
|
| 475 | <repositories>
|
| 476 | <repository>
|
| 477 | <id>central</id>
|
| 478 | <name>Maven 2 repository 2</name>
|
| 479 | <url>http://repo2.maven.org/maven2/</url>
|
| 480 | </repository>
|
| 481 | <repository>
|
| 482 | <id>onap-jar-snapshots</id>
|
| 483 | <url>https://nexus.onap.org/content/repositories/snapshots</url>
|
| 484 | </repository>
|
| 485 | <repository>
|
| 486 | <id>spring-repo</id>
|
| 487 | <name>Spring repo</name>
|
| 488 | <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
|
| 489 | </repository>
|
| 490 | <repository>
|
| 491 | <id>repository.jboss.org-public</id>
|
| 492 | <name>JBoss.org Maven repository</name>
|
| 493 | <url>https://repository.jboss.org/nexus/content/groups/public</url>
|
| 494 | </repository>
|
| 495 | </repositories>
|
| 496 | </project>
|