1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 ============LICENSE_START====================================================
\r
5 * ===========================================================================
\r
6 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
\r
7 * ===========================================================================
\r
8 * Licensed under the Apache License, Version 2.0 (the "License");
\r
9 * you may not use this file except in compliance with the License.
\r
10 * You may obtain a copy of the License at
\r
12 * http://www.apache.org/licenses/LICENSE-2.0
\r
14 * Unless required by applicable law or agreed to in writing, software
\r
15 * distributed under the License is distributed on an "AS IS" BASIS,
\r
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
17 * See the License for the specific language governing permissions and
\r
18 * limitations under the License.
\r
19 * ============LICENSE_END====================================================
\r
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
\r
26 <modelVersion>4.0.0</modelVersion>
\r
28 <groupId>org.onap.aaf.authz</groupId>
\r
29 <artifactId>parent</artifactId>
\r
30 <version>1.0.1-SNAPSHOT</version>
\r
31 <relativePath>../pom.xml</relativePath>
\r
34 <artifactId>authz-service</artifactId>
\r
35 <name>Authz Service</name>
\r
36 <description>API for Authorization and Authentication</description>
\r
37 <url>https://github.com/att/AAF</url>
\r
40 <name>BSD License</name>
\r
46 <name>Jonathan Gathman</name>
\r
48 <organization>ATT</organization>
\r
49 <organizationUrl></organizationUrl>
\r
54 <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>
\r
55 <maven.test.failure.ignore>true</maven.test.failure.ignore>
\r
56 <project.swmVersion>1</project.swmVersion>
\r
57 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
\r
58 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
\r
59 <dockerLocation>${basedir}/target/</dockerLocation>
\r
60 <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
\r
61 <sonar.language>java</sonar.language>
\r
62 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
63 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
64 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
65 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
66 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
67 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
68 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
69 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
70 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
71 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
72 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
\r
73 <skip.docker.build>true</skip.docker.build>
\r
74 <skip.docker.push>true</skip.docker.push>
\r
75 <skip.staging.artifacts>false</skip.staging.artifacts>
\r
81 <groupId>org.onap.aaf.authz</groupId>
\r
82 <artifactId>authz-client</artifactId>
\r
83 <version>${project.version}</version>
\r
87 <groupId>org.onap.aaf.authz</groupId>
\r
88 <artifactId>authz-cmd</artifactId>
\r
89 <version>${project.version}</version>
\r
92 <groupId>org.onap.aaf.authz</groupId>
\r
93 <artifactId>authz-core</artifactId>
\r
94 <version>${project.version}</version>
\r
97 <groupId>javax.servlet</groupId>
\r
98 <artifactId>servlet-api</artifactId>
\r
104 <groupId>org.onap.aaf.authz</groupId>
\r
105 <artifactId>authz-cass</artifactId>
\r
106 <version>${project.version}</version>
\r
110 <groupId>org.onap.aaf.authz</groupId>
\r
111 <artifactId>authz-defOrg</artifactId>
\r
112 <version>${project.version}</version>
\r
118 <groupId>org.onap.aaf.inno</groupId>
\r
119 <artifactId>env</artifactId>
\r
120 <version>${project.innoVersion}</version>
\r
125 <groupId>org.onap.aaf.cadi</groupId>
\r
126 <artifactId>cadi-core</artifactId>
\r
127 <version>${project.cadiVersion}</version>
\r
131 <groupId>com.att.aft</groupId>
\r
132 <artifactId>dme2</artifactId>
\r
136 <groupId>org.onap.aaf.inno</groupId>
\r
137 <artifactId>rosetta</artifactId>
\r
138 <version>${project.innoVersion}</version>
\r
141 <groupId>org.onap.aaf.cadi</groupId>
\r
142 <artifactId>cadi-aaf</artifactId>
\r
143 <version>${project.cadiVersion}</version>
\r
153 <groupId>com.spotify</groupId>
\r
154 <artifactId>docker-maven-plugin</artifactId>
\r
155 <version>1.0.0</version>
\r
157 <imageName>onap/aaf/authz-service</imageName>
\r
158 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
\r
159 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
\r
161 <imageTag>latest</imageTag>
\r
162 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
\r
163 <imageTag>${project.docker.latesttag.version}</imageTag>
\r
165 <forceTags>true</forceTags>
\r
168 <targetPath>/</targetPath>
\r
169 <directory>${project.build.directory}/opt</directory>
\r
170 <filtering>true</filtering>
\r
172 <include>**/**</include>
\r
178 <targetPath>/</targetPath>
\r
179 <directory>${project.build.directory}/opt</directory>
\r
180 <include>${project.build.finalName}.jar</include>
\r
183 <targetPath>/</targetPath>
\r
184 <directory>${project.build.directory}</directory>
\r
185 <include>**/**</include>
\r
191 <id>build-image</id>
\r
192 <phase>package</phase>
\r
197 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
\r
202 <id>tag-image-project-version</id>
\r
203 <phase>package</phase>
\r
208 <image>onap/aaf/authz-service</image>
\r
209 <newName>onap/aaf/authz-service:${project.version}</newName>
\r
210 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
215 <id>tag-image-latest</id>
\r
216 <phase>package</phase>
\r
221 <image>onap/aaf/authz-service</image>
\r
222 <newName>onap/aaf/authz-service:latest</newName>
\r
223 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
228 <id>push-image-latest</id>
\r
229 <phase>deploy</phase>
\r
234 <imageName>onap/aaf/authz-service:${project.version}</imageName>
\r
235 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
240 <id>push-image</id>
\r
241 <phase>deploy</phase>
\r
246 <imageName>onap/aaf/authz-service:latest</imageName>
\r
247 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
254 <artifactId>maven-resources-plugin</artifactId>
\r
255 <version>2.7</version>
\r
258 <id>copy-docker-file</id>
\r
259 <phase>package</phase>
\r
261 <goal>copy-resources</goal>
\r
264 <outputDirectory>${dockerLocation}</outputDirectory>
\r
265 <overwrite>true</overwrite>
\r
268 <directory>${basedir}/src/main/resources/docker</directory>
\r
269 <filtering>true</filtering>
\r
271 <include>**/*</include>
\r
278 <id>copy-resources-1</id>
\r
279 <phase>validate</phase>
\r
281 <goal>copy-resources</goal>
\r
284 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
\r
287 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
\r
289 <include>**/*.txt</include>
\r
296 <id>copy-resources-2</id>
\r
297 <phase>validate</phase>
\r
299 <goal>copy-resources</goal>
\r
302 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
\r
305 <directory>${project.basedir}/src/main/resources/etc</directory>
\r
307 <include>**/**</include>
\r
315 <id>copy-resources-3</id>
\r
316 <phase>validate</phase>
\r
318 <goal>copy-resources</goal>
\r
321 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
324 <directory>${project.basedir}/../authz-cmd/target</directory>
\r
326 <include>**/*.jar</include>
\r
333 <id>copy-resources-4</id>
\r
334 <phase>validate</phase>
\r
336 <goal>copy-resources</goal>
\r
339 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
\r
342 <directory>${project.basedir}/../authz-cmd</directory>
\r
344 <include>**/aafcli.sh</include>
\r
351 <id>copy-resources-5</id>
\r
352 <phase>validate</phase>
\r
354 <goal>copy-resources</goal>
\r
357 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
\r
360 <directory>${project.basedir}/src/main/config</directory>
\r
362 <include>**/**</include>
\r
369 <id>copy-resources-6</id>
\r
370 <phase>validate</phase>
\r
372 <goal>copy-resources</goal>
\r
375 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
\r
378 <directory>${project.basedir}/../opt/app/aaf/data</directory>
\r
380 <include>**/**</include>
\r
389 <groupId>org.apache.maven.plugins</groupId>
\r
390 <artifactId>maven-dependency-plugin</artifactId>
\r
391 <version>2.10</version>
\r
394 <id>copy-dependencies</id>
\r
395 <phase>package</phase>
\r
397 <goal>copy-dependencies</goal>
\r
400 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
401 <overWriteReleases>false</overWriteReleases>
\r
402 <overWriteSnapshots>false</overWriteSnapshots>
\r
403 <overWriteIfNewer>true</overWriteIfNewer>
\r
410 <groupId>org.codehaus.mojo</groupId>
\r
411 <artifactId>exec-maven-plugin</artifactId>
\r
412 <version>1.5.0</version>
\r
414 <executable>java</executable>
\r
416 <argument>-DAFT_LATITUDE=33</argument>
\r
417 <argument>-DAFT_LONGITUDE=-84</argument>
\r
418 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
\r
420 <argument>-XX:NewRatio=3</argument>
\r
421 <argument>-XX:+PrintGCTimeStamps</argument>
\r
422 <argument>-XX:+PrintGCDetails</argument>
\r
423 <argument>-Xloggc:gc.log</argument>
\r
424 <argument>-classpath</argument>
\r
429 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
\r
431 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
\r
437 <groupId>org.apache.maven.plugins</groupId>
\r
438 <artifactId>maven-jar-plugin</artifactId>
\r
441 <exclude>*.properties</exclude>
\r
444 <version>2.3.1</version>
\r
449 <groupId>org.apache.maven.plugins</groupId>
\r
450 <artifactId>maven-javadoc-plugin</artifactId>
\r
451 <version>2.10.4</version>
\r
453 <failOnError>false</failOnError>
\r
457 <id>attach-javadocs</id>
\r
467 <groupId>org.apache.maven.plugins</groupId>
\r
468 <artifactId>maven-source-plugin</artifactId>
\r
469 <version>2.2.1</version>
\r
472 <id>attach-sources</id>
\r
474 <goal>jar-no-fork</goal>
\r
481 <groupId>org.sonatype.plugins</groupId>
\r
482 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
483 <version>1.6.7</version>
\r
484 <extensions>true</extensions>
\r
486 <nexusUrl>${nexusproxy}</nexusUrl>
\r
487 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
488 <serverId>ecomp-staging</serverId>
\r
492 <groupId>org.jacoco</groupId>
\r
493 <artifactId>jacoco-maven-plugin</artifactId>
\r
494 <version>0.7.7.201606060606</version>
\r
496 <dumpOnExit>true</dumpOnExit>
\r
498 <include>org.onap.aaf.*</include>
\r
503 <id>pre-unit-test</id>
\r
505 <goal>prepare-agent</goal>
\r
508 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
\r
509 <!-- <append>true</append> -->
\r
513 <id>pre-integration-test</id>
\r
514 <phase>pre-integration-test</phase>
\r
516 <goal>prepare-agent</goal>
\r
519 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
\r
520 <!-- <append>true</append> -->
\r
527 <phase>post-integration-test</phase>
\r
530 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
\r
531 <directory>${project.build.directory}/coverage-reports</directory>
\r
533 <include>*.exec</include>
\r
537 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
\r
548 <distributionManagement>
\r
550 <id>ecomp-releases</id>
\r
551 <name>AAF Release Repository</name>
\r
552 <url>${nexusproxy}${releaseNexusPath}</url>
\r
554 <snapshotRepository>
\r
555 <id>ecomp-snapshots</id>
\r
556 <name>AAF Snapshot Repository</name>
\r
557 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
558 </snapshotRepository>
\r
560 <id>ecomp-site</id>
\r
561 <url>dav:${nexusproxy}${sitePath}</url>
\r
563 </distributionManagement>
\r
568 <skip.staging.artifacts>true</skip.staging.artifacts>
\r
569 <skip.docker.build>false</skip.docker.build>
\r
570 <skip.docker.tag>false</skip.docker.tag>
\r
571 <skip.docker.push>false</skip.docker.push>
\r