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.skip>true</sonar.skip>
\r
63 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
64 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
65 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
66 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
67 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
68 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
69 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
70 <docker.push.registry>localhost:5000</docker.push.registry>
\r
71 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
72 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
73 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
74 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
\r
75 <skip.docker.build>true</skip.docker.build>
\r
76 <skip.docker.push>true</skip.docker.push>
\r
77 <skip.staging.artifacts>false</skip.staging.artifacts>
\r
83 <groupId>org.onap.aaf.authz</groupId>
\r
84 <artifactId>authz-client</artifactId>
\r
85 <version>${project.version}</version>
\r
89 <groupId>org.onap.aaf.authz</groupId>
\r
90 <artifactId>authz-cmd</artifactId>
\r
91 <version>${project.version}</version>
\r
94 <groupId>org.onap.aaf.authz</groupId>
\r
95 <artifactId>authz-core</artifactId>
\r
96 <version>${project.version}</version>
\r
99 <groupId>javax.servlet</groupId>
\r
100 <artifactId>servlet-api</artifactId>
\r
106 <groupId>org.onap.aaf.authz</groupId>
\r
107 <artifactId>authz-cass</artifactId>
\r
108 <version>${project.version}</version>
\r
112 <groupId>org.onap.aaf.authz</groupId>
\r
113 <artifactId>authz-defOrg</artifactId>
\r
114 <version>${project.version}</version>
\r
120 <groupId>org.onap.aaf.inno</groupId>
\r
121 <artifactId>env</artifactId>
\r
122 <version>${project.innoVersion}</version>
\r
127 <groupId>org.onap.aaf.cadi</groupId>
\r
128 <artifactId>cadi-core</artifactId>
\r
129 <version>${project.cadiVersion}</version>
\r
133 <groupId>com.att.aft</groupId>
\r
134 <artifactId>dme2</artifactId>
\r
138 <groupId>org.onap.aaf.inno</groupId>
\r
139 <artifactId>rosetta</artifactId>
\r
140 <version>${project.innoVersion}</version>
\r
143 <groupId>org.onap.aaf.cadi</groupId>
\r
144 <artifactId>cadi-aaf</artifactId>
\r
145 <version>${project.cadiVersion}</version>
\r
151 <finalName>authz-service</finalName>
\r
156 <groupId>com.spotify</groupId>
\r
157 <artifactId>docker-maven-plugin</artifactId>
\r
158 <version>1.0.0</version>
\r
160 <imageName>onap/aaf/authz-service</imageName>
\r
161 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
\r
162 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
\r
164 <imageTag>latest</imageTag>
\r
165 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
\r
166 <imageTag>${project.docker.latesttag.version}</imageTag>
\r
168 <forceTags>true</forceTags>
\r
171 <targetPath>/</targetPath>
\r
172 <directory>${project.build.directory}/opt</directory>
\r
173 <filtering>true</filtering>
\r
175 <include>**/**</include>
\r
181 <targetPath>/</targetPath>
\r
182 <directory>${project.build.directory}/opt</directory>
\r
183 <include>${project.build.finalName}.jar</include>
\r
186 <targetPath>/</targetPath>
\r
187 <directory>${project.build.directory}</directory>
\r
188 <include>**/**</include>
\r
194 <id>build-image</id>
\r
195 <phase>package</phase>
\r
200 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
\r
205 <id>tag-image-project-version</id>
\r
206 <phase>package</phase>
\r
211 <image>onap/aaf/authz-service</image>
\r
212 <newName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</newName>
\r
213 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
218 <id>tag-image-latest</id>
\r
219 <phase>package</phase>
\r
224 <image>onap/aaf/authz-service</image>
\r
225 <newName>${docker.push.registry}/onap/aaf/authz-service:latest</newName>
\r
226 <skipDockerTag>${skip.docker.push}</skipDockerTag>
\r
231 <id>push-image-latest</id>
\r
232 <phase>deploy</phase>
\r
237 <imageName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</imageName>
\r
238 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
243 <id>push-image</id>
\r
244 <phase>deploy</phase>
\r
249 <imageName>${docker.push.registry}/onap/aaf/authz-service:latest</imageName>
\r
250 <skipDockerPush>${skip.docker.push}</skipDockerPush>
\r
257 <artifactId>maven-resources-plugin</artifactId>
\r
258 <version>2.7</version>
\r
261 <id>copy-docker-file</id>
\r
262 <phase>package</phase>
\r
264 <goal>copy-resources</goal>
\r
267 <outputDirectory>${dockerLocation}</outputDirectory>
\r
268 <overwrite>true</overwrite>
\r
271 <directory>${basedir}/src/main/resources/docker</directory>
\r
272 <filtering>true</filtering>
\r
274 <include>**/*</include>
\r
281 <id>copy-resources-1</id>
\r
282 <phase>validate</phase>
\r
284 <goal>copy-resources</goal>
\r
287 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
\r
290 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
\r
292 <include>**/*.txt</include>
\r
299 <id>copy-resources-2</id>
\r
300 <phase>validate</phase>
\r
302 <goal>copy-resources</goal>
\r
305 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
\r
308 <directory>${project.basedir}/src/main/resources/etc</directory>
\r
310 <include>**/**</include>
\r
318 <id>copy-resources-3</id>
\r
319 <phase>validate</phase>
\r
321 <goal>copy-resources</goal>
\r
324 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
327 <directory>${project.basedir}/../authz-cmd/target</directory>
\r
329 <include>**/*.jar</include>
\r
336 <id>copy-resources-4</id>
\r
337 <phase>validate</phase>
\r
339 <goal>copy-resources</goal>
\r
342 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
\r
345 <directory>${project.basedir}/../authz-cmd</directory>
\r
347 <include>**/aafcli.sh</include>
\r
354 <id>copy-resources-5</id>
\r
355 <phase>validate</phase>
\r
357 <goal>copy-resources</goal>
\r
360 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
\r
363 <directory>${project.basedir}/src/main/config</directory>
\r
365 <include>**/**</include>
\r
372 <id>copy-resources-6</id>
\r
373 <phase>validate</phase>
\r
375 <goal>copy-resources</goal>
\r
378 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
\r
381 <directory>${project.basedir}/../opt/app/aaf/data</directory>
\r
383 <include>**/**</include>
\r
392 <groupId>org.apache.maven.plugins</groupId>
\r
393 <artifactId>maven-dependency-plugin</artifactId>
\r
394 <version>2.10</version>
\r
397 <id>copy-dependencies</id>
\r
398 <phase>package</phase>
\r
400 <goal>copy-dependencies</goal>
\r
403 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
\r
404 <overWriteReleases>false</overWriteReleases>
\r
405 <overWriteSnapshots>false</overWriteSnapshots>
\r
406 <overWriteIfNewer>true</overWriteIfNewer>
\r
413 <groupId>org.codehaus.mojo</groupId>
\r
414 <artifactId>exec-maven-plugin</artifactId>
\r
415 <version>1.5.0</version>
\r
417 <executable>java</executable>
\r
419 <argument>-DAFT_LATITUDE=33</argument>
\r
420 <argument>-DAFT_LONGITUDE=-84</argument>
\r
421 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
\r
423 <argument>-XX:NewRatio=3</argument>
\r
424 <argument>-XX:+PrintGCTimeStamps</argument>
\r
425 <argument>-XX:+PrintGCDetails</argument>
\r
426 <argument>-Xloggc:gc.log</argument>
\r
427 <argument>-classpath</argument>
\r
432 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
\r
434 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
\r
440 <groupId>org.apache.maven.plugins</groupId>
\r
441 <artifactId>maven-jar-plugin</artifactId>
\r
444 <exclude>*.properties</exclude>
\r
447 <version>2.3.1</version>
\r
452 <groupId>org.apache.maven.plugins</groupId>
\r
453 <artifactId>maven-javadoc-plugin</artifactId>
\r
454 <version>2.10.4</version>
\r
456 <failOnError>false</failOnError>
\r
460 <id>attach-javadocs</id>
\r
470 <groupId>org.apache.maven.plugins</groupId>
\r
471 <artifactId>maven-source-plugin</artifactId>
\r
472 <version>2.2.1</version>
\r
475 <id>attach-sources</id>
\r
477 <goal>jar-no-fork</goal>
\r
484 <groupId>org.sonatype.plugins</groupId>
\r
485 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
486 <version>1.6.7</version>
\r
487 <extensions>true</extensions>
\r
489 <nexusUrl>${nexusproxy}</nexusUrl>
\r
490 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
491 <serverId>ecomp-staging</serverId>
\r
495 <groupId>org.jacoco</groupId>
\r
496 <artifactId>jacoco-maven-plugin</artifactId>
\r
497 <version>0.7.7.201606060606</version>
\r
499 <dumpOnExit>true</dumpOnExit>
\r
501 <include>org.onap.aaf.*</include>
\r
506 <id>pre-unit-test</id>
\r
508 <goal>prepare-agent</goal>
\r
511 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
\r
512 <!-- <append>true</append> -->
\r
516 <id>pre-integration-test</id>
\r
517 <phase>pre-integration-test</phase>
\r
519 <goal>prepare-agent</goal>
\r
522 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
\r
523 <!-- <append>true</append> -->
\r
530 <phase>post-integration-test</phase>
\r
533 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
\r
534 <directory>${project.build.directory}/coverage-reports</directory>
\r
536 <include>*.exec</include>
\r
540 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
\r
552 <distributionManagement>
\r
554 <id>ecomp-releases</id>
\r
555 <name>AAF Release Repository</name>
\r
556 <url>${nexusproxy}${releaseNexusPath}</url>
\r
558 <snapshotRepository>
\r
559 <id>ecomp-snapshots</id>
\r
560 <name>AAF Snapshot Repository</name>
\r
561 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
562 </snapshotRepository>
\r
564 <id>ecomp-site</id>
\r
565 <url>dav:${nexusproxy}${sitePath}</url>
\r
567 </distributionManagement>
\r
572 <skip.staging.artifacts>true</skip.staging.artifacts>
\r
573 <skip.docker.build>false</skip.docker.build>
\r
574 <skip.docker.tag>false</skip.docker.tag>
\r
575 <skip.docker.push>false</skip.docker.push>
\r