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.0-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.test.failure.ignore>true</maven.test.failure.ignore>
\r
55 <project.swmVersion>1</project.swmVersion>
\r
56 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
\r
57 <dockerLocation>${basedir}/target/</dockerLocation>
\r
58 <docker.registry>nexus3.onap.org</docker.registry>
\r
59 <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
\r
60 <sonar.language>java</sonar.language>
\r
61 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
62 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
63 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
64 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
65 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
66 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
67 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
68 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
69 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
70 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
71 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
\r
77 <groupId>org.onap.aaf.authz</groupId>
\r
78 <artifactId>authz-client</artifactId>
\r
82 <groupId>org.onap.aaf.authz</groupId>
\r
83 <artifactId>authz-cmd</artifactId>
\r
86 <groupId>org.onap.aaf.authz</groupId>
\r
87 <artifactId>authz-core</artifactId>
\r
90 <groupId>javax.servlet</groupId>
\r
91 <artifactId>servlet-api</artifactId>
\r
97 <groupId>org.onap.aaf.authz</groupId>
\r
98 <artifactId>authz-cass</artifactId>
\r
102 <groupId>org.onap.aaf.authz</groupId>
\r
103 <artifactId>authz-defOrg</artifactId>
\r
104 <version>${project.version}</version>
\r
110 <groupId>org.onap.aaf.inno</groupId>
\r
111 <artifactId>env</artifactId>
\r
116 <groupId>org.onap.aaf.cadi</groupId>
\r
117 <artifactId>cadi-core</artifactId>
\r
121 <groupId>com.att.aft</groupId>
\r
122 <artifactId>dme2</artifactId>
\r
126 <groupId>org.onap.aaf.inno</groupId>
\r
127 <artifactId>rosetta</artifactId>
\r
130 <groupId>org.onap.aaf.cadi</groupId>
\r
131 <artifactId>cadi-aaf</artifactId>
\r
138 <groupId>org.apache.maven.plugins</groupId>
\r
139 <artifactId>maven-resources-plugin</artifactId>
\r
140 <version>2.7</version>
\r
143 <id>copy-docker-file</id>
\r
144 <phase>package</phase>
\r
146 <goal>copy-resources</goal>
\r
149 <outputDirectory>${dockerLocation}</outputDirectory>
\r
150 <overwrite>true</overwrite>
\r
153 <directory>${basedir}/src/main/resources/docker</directory>
\r
154 <filtering>true</filtering>
\r
156 <include>**/*</include>
\r
165 <groupId>com.spotify</groupId>
\r
166 <artifactId>docker-maven-plugin</artifactId>
\r
167 <version>0.4.11</version>
\r
169 <imageName>onap/aaf/authz-service</imageName>
\r
170 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
171 <serverId>docker-hub</serverId>
\r
172 <registryUrl>https://${docker.registry}</registryUrl>
\r
174 <imageTag>${project.version}</imageTag>
\r
175 <imageTag>latest</imageTag>
\r
179 <targetPath>/</targetPath>
\r
180 <directory>/${basedir}/target/opt</directory>
\r
181 <filtering>true</filtering>
\r
183 <include>**/*</include>
\r
187 <forceTags>true</forceTags>
\r
191 <artifactId>maven-resources-plugin</artifactId>
\r
192 <version>2.7</version>
\r
195 <id>copy-resources-1</id>
\r
196 <phase>validate</phase>
\r
198 <goal>copy-resources</goal>
\r
201 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
\r
204 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
\r
206 <include>**/*.txt</include>
\r
213 <id>copy-resources-2</id>
\r
214 <phase>validate</phase>
\r
216 <goal>copy-resources</goal>
\r
219 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
\r
222 <directory>${project.basedir}/src/main/resources/etc</directory>
\r
224 <include>**/**</include>
\r
232 <id>copy-resources-3</id>
\r
233 <phase>validate</phase>
\r
235 <goal>copy-resources</goal>
\r
238 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
\r
241 <directory>${project.basedir}/../authz-cmd/target</directory>
\r
243 <include>**/authz-cmd-1.0.0-SNAPSHOT-jar-with-dependencies.jar</include>
\r
250 <id>copy-resources-4</id>
\r
251 <phase>validate</phase>
\r
253 <goal>copy-resources</goal>
\r
256 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}</outputDirectory>
\r
259 <directory>${project.basedir}/../authz-cmd</directory>
\r
261 <include>**/aafcli.sh</include>
\r
268 <id>copy-resources-5</id>
\r
269 <phase>validate</phase>
\r
271 <goal>copy-resources</goal>
\r
274 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
\r
277 <directory>${project.basedir}/../authz-cmd/etc</directory>
\r
279 <include>**/**</include>
\r
288 <groupId>org.apache.maven.plugins</groupId>
\r
289 <artifactId>maven-dependency-plugin</artifactId>
\r
290 <version>2.10</version>
\r
293 <id>copy-dependencies</id>
\r
294 <phase>package</phase>
\r
296 <goal>copy-dependencies</goal>
\r
299 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
\r
300 <overWriteReleases>false</overWriteReleases>
\r
301 <overWriteSnapshots>false</overWriteSnapshots>
\r
302 <overWriteIfNewer>true</overWriteIfNewer>
\r
309 <groupId>org.codehaus.mojo</groupId>
\r
310 <artifactId>exec-maven-plugin</artifactId>
\r
311 <version>1.5.0</version>
\r
313 <executable>java</executable>
\r
315 <argument>-DAFT_LATITUDE=33</argument>
\r
316 <argument>-DAFT_LONGITUDE=-84</argument>
\r
317 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
\r
319 <argument>-XX:NewRatio=3</argument>
\r
320 <argument>-XX:+PrintGCTimeStamps</argument>
\r
321 <argument>-XX:+PrintGCDetails</argument>
\r
322 <argument>-Xloggc:gc.log</argument>
\r
323 <argument>-classpath</argument>
\r
328 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
\r
330 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
\r
336 <groupId>org.apache.maven.plugins</groupId>
\r
337 <artifactId>maven-jar-plugin</artifactId>
\r
340 <exclude>*.properties</exclude>
\r
343 <version>2.3.1</version>
\r
347 <groupId>org.apache.maven.plugins</groupId>
\r
348 <artifactId>maven-deploy-plugin</artifactId>
\r
355 <groupId>org.apache.maven.plugins</groupId>
\r
356 <artifactId>maven-javadoc-plugin</artifactId>
\r
358 <failOnError>false</failOnError>
\r
362 <id>attach-javadocs</id>
\r
372 <groupId>org.apache.maven.plugins</groupId>
\r
373 <artifactId>maven-source-plugin</artifactId>
\r
374 <version>2.2.1</version>
\r
377 <id>attach-sources</id>
\r
379 <goal>jar-no-fork</goal>
\r
386 <groupId>org.sonatype.plugins</groupId>
\r
387 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
388 <version>1.6.7</version>
\r
389 <extensions>true</extensions>
\r
391 <nexusUrl>${nexusproxy}</nexusUrl>
\r
392 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
393 <serverId>ecomp-staging</serverId>
\r
397 <groupId>org.jacoco</groupId>
\r
398 <artifactId>jacoco-maven-plugin</artifactId>
\r
399 <version>0.7.7.201606060606</version>
\r
401 <dumpOnExit>true</dumpOnExit>
\r
403 <include>org.onap.aaf.*</include>
\r
408 <id>pre-unit-test</id>
\r
410 <goal>prepare-agent</goal>
\r
413 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
\r
414 <!-- <append>true</append> -->
\r
418 <id>pre-integration-test</id>
\r
419 <phase>pre-integration-test</phase>
\r
421 <goal>prepare-agent</goal>
\r
424 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
\r
425 <!-- <append>true</append> -->
\r
432 <phase>post-integration-test</phase>
\r
435 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
\r
436 <directory>${project.build.directory}/coverage-reports</directory>
\r
438 <include>*.exec</include>
\r
442 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
\r
452 <distributionManagement>
\r
454 <id>ecomp-releases</id>
\r
455 <name>AAF Release Repository</name>
\r
456 <url>${nexusproxy}${releaseNexusPath}</url>
\r
458 <snapshotRepository>
\r
459 <id>ecomp-snapshots</id>
\r
460 <name>AAF Snapshot Repository</name>
\r
461 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
462 </snapshotRepository>
\r
464 <id>ecomp-site</id>
\r
465 <url>dav:${nexusproxy}${sitePath}</url>
\r
467 </distributionManagement>
\r
468 <pluginRepositories>
\r
470 <id>onap-plugin-snapshots</id>
\r
471 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
472 </pluginRepository>
\r
473 </pluginRepositories>
\r
478 <name>Maven 2 repository 2</name>
\r
479 <url>http://repo2.maven.org/maven2/</url>
\r
482 <id>onap-jar-snapshots</id>
\r
483 <url>https://nexus.onap.org/content/repositories/snapshots</url>
\r
486 <id>spring-repo</id>
\r
487 <name>Spring repo</name>
\r
488 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
\r
491 <id>repository.jboss.org-public</id>
\r
492 <name>JBoss.org Maven repository</name>
\r
493 <url>https://repository.jboss.org/nexus/content/groups/public</url>
\r