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
41 <name>Jonathan Gathman</name>
\r
43 <organization>ATT</organization>
\r
44 <organizationUrl></organizationUrl>
\r
49 <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>
\r
50 <maven.test.failure.ignore>true</maven.test.failure.ignore>
\r
51 <project.swmVersion>1</project.swmVersion>
\r
52 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
\r
53 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
\r
54 <dockerLocation>${basedir}/target/</dockerLocation>
\r
55 <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
\r
56 <sonar.language>java</sonar.language>
\r
57 <sonar.skip>true</sonar.skip>
\r
58 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
59 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
60 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
61 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
62 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
63 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
64 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
65 <docker.push.registry>localhost:5000</docker.push.registry>
\r
66 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
67 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
68 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
69 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
\r
70 <skip.docker.build>true</skip.docker.build>
\r
71 <skip.docker.push>true</skip.docker.push>
\r
72 <skip.staging.artifacts>false</skip.staging.artifacts>
\r
78 <groupId>org.onap.aaf.authz</groupId>
\r
79 <artifactId>authz-client</artifactId>
\r
80 <version>${project.version}</version>
\r
84 <groupId>org.onap.aaf.authz</groupId>
\r
85 <artifactId>authz-cmd</artifactId>
\r
86 <version>${project.version}</version>
\r
89 <groupId>org.onap.aaf.authz</groupId>
\r
90 <artifactId>authz-core</artifactId>
\r
91 <version>${project.version}</version>
\r
94 <groupId>javax.servlet</groupId>
\r
95 <artifactId>servlet-api</artifactId>
\r
101 <groupId>org.onap.aaf.authz</groupId>
\r
102 <artifactId>authz-cass</artifactId>
\r
103 <version>${project.version}</version>
\r
107 <groupId>org.onap.aaf.authz</groupId>
\r
108 <artifactId>authz-defOrg</artifactId>
\r
109 <version>${project.version}</version>
\r
115 <groupId>org.onap.aaf.inno</groupId>
\r
116 <artifactId>env</artifactId>
\r
117 <version>${project.innoVersion}</version>
\r
122 <groupId>org.onap.aaf.cadi</groupId>
\r
123 <artifactId>cadi-core</artifactId>
\r
124 <version>${project.cadiVersion}</version>
\r
128 <groupId>com.att.aft</groupId>
\r
129 <artifactId>dme2</artifactId>
\r
133 <groupId>org.onap.aaf.inno</groupId>
\r
134 <artifactId>rosetta</artifactId>
\r
135 <version>${project.innoVersion}</version>
\r
138 <groupId>org.onap.aaf.cadi</groupId>
\r
139 <artifactId>cadi-aaf</artifactId>
\r
140 <version>${project.cadiVersion}</version>
\r
146 <finalName>authz-service</finalName>
\r
151 <groupId>com.spotify</groupId>
\r
152 <artifactId>docker-maven-plugin</artifactId>
\r
153 <version>1.0.0</version>
\r
155 <imageName>onap/aaf/authz-service</imageName>
\r
156 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
\r
157 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
\r
159 <imageTag>latest</imageTag>
\r
160 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
\r
161 <imageTag>${project.docker.latesttag.version}</imageTag>
\r
163 <forceTags>true</forceTags>
\r
166 <targetPath>/</targetPath>
\r
167 <directory>${project.build.directory}/opt</directory>
\r
168 <filtering>true</filtering>
\r
170 <include>**/**</include>
\r
176 <targetPath>/</targetPath>
\r
177 <directory>${project.build.directory}/opt</directory>
\r
178 <include>${project.build.finalName}.jar</include>
\r
181 <targetPath>/</targetPath>
\r
182 <directory>${project.build.directory}</directory>
\r
183 <include>**/**</include>
\r
189 <id>build-image</id>
\r
190 <phase>package</phase>
\r
195 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
\r
200 <id>tag-image-project-version</id>
\r
201 <phase>package</phase>
\r
206 <image>onap/aaf/authz-service</image>
\r
207 <newName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</newName>
\r
208 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
213 <id>tag-image-latest</id>
\r
214 <phase>package</phase>
\r
219 <image>onap/aaf/authz-service</image>
\r
220 <newName>${docker.push.registry}/onap/aaf/authz-service:latest</newName>
\r
221 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
226 <id>push-image-latest</id>
\r
227 <phase>deploy</phase>
\r
232 <imageName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</imageName>
\r
233 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
238 <id>push-image</id>
\r
239 <phase>deploy</phase>
\r
244 <imageName>${docker.push.registry}/onap/aaf/authz-service:latest</imageName>
\r
245 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
252 <artifactId>maven-resources-plugin</artifactId>
\r
253 <version>2.7</version>
\r
256 <id>copy-docker-file</id>
\r
257 <phase>package</phase>
\r
259 <goal>copy-resources</goal>
\r
262 <outputDirectory>${dockerLocation}</outputDirectory>
\r
263 <overwrite>true</overwrite>
\r
266 <directory>${basedir}/src/main/resources/docker</directory>
\r
267 <filtering>true</filtering>
\r
269 <include>**/*</include>
\r
276 <id>copy-resources-1</id>
\r
277 <phase>validate</phase>
\r
279 <goal>copy-resources</goal>
\r
282 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
\r
285 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
\r
287 <include>**/*.txt</include>
\r
294 <id>copy-resources-2</id>
\r
295 <phase>validate</phase>
\r
297 <goal>copy-resources</goal>
\r
300 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
\r
303 <directory>${project.basedir}/src/main/resources/etc</directory>
\r
305 <include>**/**</include>
\r
313 <id>copy-resources-3</id>
\r
314 <phase>validate</phase>
\r
316 <goal>copy-resources</goal>
\r
319 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
322 <directory>${project.basedir}/../authz-cmd/target</directory>
\r
324 <include>**/*.jar</include>
\r
331 <id>copy-resources-4</id>
\r
332 <phase>validate</phase>
\r
334 <goal>copy-resources</goal>
\r
337 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
\r
340 <directory>${project.basedir}/../authz-cmd</directory>
\r
342 <include>**/aafcli.sh</include>
\r
349 <id>copy-resources-5</id>
\r
350 <phase>validate</phase>
\r
352 <goal>copy-resources</goal>
\r
355 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
\r
358 <directory>${project.basedir}/src/main/config</directory>
\r
360 <include>**/**</include>
\r
367 <id>copy-resources-6</id>
\r
368 <phase>validate</phase>
\r
370 <goal>copy-resources</goal>
\r
373 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
\r
376 <directory>${project.basedir}/../opt/app/aaf/data</directory>
\r
378 <include>**/**</include>
\r
387 <groupId>org.apache.maven.plugins</groupId>
\r
388 <artifactId>maven-dependency-plugin</artifactId>
\r
389 <version>2.10</version>
\r
392 <id>copy-dependencies</id>
\r
393 <phase>package</phase>
\r
395 <goal>copy-dependencies</goal>
\r
398 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
399 <overWriteReleases>false</overWriteReleases>
\r
400 <overWriteSnapshots>false</overWriteSnapshots>
\r
401 <overWriteIfNewer>true</overWriteIfNewer>
\r
408 <groupId>org.codehaus.mojo</groupId>
\r
409 <artifactId>exec-maven-plugin</artifactId>
\r
410 <version>1.5.0</version>
\r
412 <executable>java</executable>
\r
414 <argument>-DAFT_LATITUDE=33</argument>
\r
415 <argument>-DAFT_LONGITUDE=-84</argument>
\r
416 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
\r
418 <argument>-XX:NewRatio=3</argument>
\r
419 <argument>-XX:+PrintGCTimeStamps</argument>
\r
420 <argument>-XX:+PrintGCDetails</argument>
\r
421 <argument>-Xloggc:gc.log</argument>
\r
422 <argument>-classpath</argument>
\r
427 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
\r
429 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
\r
435 <groupId>org.apache.maven.plugins</groupId>
\r
436 <artifactId>maven-jar-plugin</artifactId>
\r
439 <exclude>*.properties</exclude>
\r
442 <version>2.3.1</version>
\r
447 <groupId>org.apache.maven.plugins</groupId>
\r
448 <artifactId>maven-javadoc-plugin</artifactId>
\r
449 <version>2.10.4</version>
\r
451 <failOnError>false</failOnError>
\r
455 <id>attach-javadocs</id>
\r
465 <groupId>org.apache.maven.plugins</groupId>
\r
466 <artifactId>maven-source-plugin</artifactId>
\r
467 <version>2.2.1</version>
\r
470 <id>attach-sources</id>
\r
472 <goal>jar-no-fork</goal>
\r
479 <groupId>org.sonatype.plugins</groupId>
\r
480 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
481 <version>1.6.7</version>
\r
482 <extensions>true</extensions>
\r
484 <nexusUrl>${nexusproxy}</nexusUrl>
\r
485 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
486 <serverId>ecomp-staging</serverId>
\r
490 <groupId>org.jacoco</groupId>
\r
491 <artifactId>jacoco-maven-plugin</artifactId>
\r
492 <version>0.7.7.201606060606</version>
\r
494 <dumpOnExit>true</dumpOnExit>
\r
496 <include>org.onap.aaf.*</include>
\r
501 <id>pre-unit-test</id>
\r
503 <goal>prepare-agent</goal>
\r
506 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
\r
507 <!-- <append>true</append> -->
\r
511 <id>pre-integration-test</id>
\r
512 <phase>pre-integration-test</phase>
\r
514 <goal>prepare-agent</goal>
\r
517 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
\r
518 <!-- <append>true</append> -->
\r
525 <phase>post-integration-test</phase>
\r
528 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
\r
529 <directory>${project.build.directory}/coverage-reports</directory>
\r
531 <include>*.exec</include>
\r
535 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
\r
547 <distributionManagement>
\r
549 <id>ecomp-releases</id>
\r
550 <name>AAF Release Repository</name>
\r
551 <url>${nexusproxy}${releaseNexusPath}</url>
\r
553 <snapshotRepository>
\r
554 <id>ecomp-snapshots</id>
\r
555 <name>AAF Snapshot Repository</name>
\r
556 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
557 </snapshotRepository>
\r
559 <id>ecomp-site</id>
\r
560 <url>dav:${nexusproxy}${sitePath}</url>
\r
562 </distributionManagement>
\r
567 <skip.staging.artifacts>true</skip.staging.artifacts>
\r
568 <skip.docker.build>false</skip.docker.build>
\r
569 <skip.docker.tag>false</skip.docker.tag>
\r
570 <skip.docker.push>false</skip.docker.push>
\r