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
79 <version>${project.version}</version>
\r
83 <groupId>org.onap.aaf.authz</groupId>
\r
84 <artifactId>authz-cmd</artifactId>
\r
85 <version>${project.version}</version>
\r
88 <groupId>org.onap.aaf.authz</groupId>
\r
89 <artifactId>authz-core</artifactId>
\r
90 <version>${project.version}</version>
\r
93 <groupId>javax.servlet</groupId>
\r
94 <artifactId>servlet-api</artifactId>
\r
100 <groupId>org.onap.aaf.authz</groupId>
\r
101 <artifactId>authz-cass</artifactId>
\r
102 <version>${project.version}</version>
\r
106 <groupId>org.onap.aaf.authz</groupId>
\r
107 <artifactId>authz-defOrg</artifactId>
\r
108 <version>${project.version}</version>
\r
114 <groupId>org.onap.aaf.inno</groupId>
\r
115 <artifactId>env</artifactId>
\r
116 <version>${project.version}</version>
\r
121 <groupId>org.onap.aaf.cadi</groupId>
\r
122 <artifactId>cadi-core</artifactId>
\r
123 <version>${project.version}</version>
\r
127 <groupId>com.att.aft</groupId>
\r
128 <artifactId>dme2</artifactId>
\r
132 <groupId>org.onap.aaf.inno</groupId>
\r
133 <artifactId>rosetta</artifactId>
\r
134 <version>${project.version}</version>
\r
137 <groupId>org.onap.aaf.cadi</groupId>
\r
138 <artifactId>cadi-aaf</artifactId>
\r
139 <version>${project.version}</version>
\r
146 <groupId>org.apache.maven.plugins</groupId>
\r
147 <artifactId>maven-resources-plugin</artifactId>
\r
148 <version>2.7</version>
\r
151 <id>copy-docker-file</id>
\r
152 <phase>package</phase>
\r
154 <goal>copy-resources</goal>
\r
157 <outputDirectory>${dockerLocation}</outputDirectory>
\r
158 <overwrite>true</overwrite>
\r
161 <directory>${basedir}/src/main/resources/docker</directory>
\r
162 <filtering>true</filtering>
\r
164 <include>**/*</include>
\r
173 <groupId>com.spotify</groupId>
\r
174 <artifactId>docker-maven-plugin</artifactId>
\r
175 <version>0.4.11</version>
\r
177 <imageName>onap/aaf/authz-service</imageName>
\r
178 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
179 <serverId>docker-hub</serverId>
\r
180 <registryUrl>https://${docker.registry}</registryUrl>
\r
182 <imageTag>${project.version}</imageTag>
\r
183 <imageTag>latest</imageTag>
\r
187 <targetPath>/</targetPath>
\r
188 <directory>/${basedir}/target/opt</directory>
\r
189 <filtering>true</filtering>
\r
191 <include>**/*</include>
\r
195 <forceTags>true</forceTags>
\r
199 <artifactId>maven-resources-plugin</artifactId>
\r
200 <version>2.7</version>
\r
203 <id>copy-resources-1</id>
\r
204 <phase>validate</phase>
\r
206 <goal>copy-resources</goal>
\r
209 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
\r
212 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
\r
214 <include>**/*.txt</include>
\r
221 <id>copy-resources-2</id>
\r
222 <phase>validate</phase>
\r
224 <goal>copy-resources</goal>
\r
227 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
\r
230 <directory>${project.basedir}/src/main/resources/etc</directory>
\r
232 <include>**/**</include>
\r
240 <id>copy-resources-3</id>
\r
241 <phase>validate</phase>
\r
243 <goal>copy-resources</goal>
\r
246 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
\r
249 <directory>${project.basedir}/../authz-cmd/target</directory>
\r
251 <include>**/authz-cmd-1.0.0-SNAPSHOT-jar-with-dependencies.jar</include>
\r
258 <id>copy-resources-4</id>
\r
259 <phase>validate</phase>
\r
261 <goal>copy-resources</goal>
\r
264 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}</outputDirectory>
\r
267 <directory>${project.basedir}/../authz-cmd</directory>
\r
269 <include>**/aafcli.sh</include>
\r
276 <id>copy-resources-5</id>
\r
277 <phase>validate</phase>
\r
279 <goal>copy-resources</goal>
\r
282 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
\r
285 <directory>${project.basedir}/../authz-cmd/etc</directory>
\r
287 <include>**/**</include>
\r
296 <groupId>org.apache.maven.plugins</groupId>
\r
297 <artifactId>maven-dependency-plugin</artifactId>
\r
298 <version>2.10</version>
\r
301 <id>copy-dependencies</id>
\r
302 <phase>package</phase>
\r
304 <goal>copy-dependencies</goal>
\r
307 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
\r
308 <overWriteReleases>false</overWriteReleases>
\r
309 <overWriteSnapshots>false</overWriteSnapshots>
\r
310 <overWriteIfNewer>true</overWriteIfNewer>
\r
317 <groupId>org.codehaus.mojo</groupId>
\r
318 <artifactId>exec-maven-plugin</artifactId>
\r
319 <version>1.5.0</version>
\r
321 <executable>java</executable>
\r
323 <argument>-DAFT_LATITUDE=33</argument>
\r
324 <argument>-DAFT_LONGITUDE=-84</argument>
\r
325 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
\r
327 <argument>-XX:NewRatio=3</argument>
\r
328 <argument>-XX:+PrintGCTimeStamps</argument>
\r
329 <argument>-XX:+PrintGCDetails</argument>
\r
330 <argument>-Xloggc:gc.log</argument>
\r
331 <argument>-classpath</argument>
\r
336 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
\r
338 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
\r
344 <groupId>org.apache.maven.plugins</groupId>
\r
345 <artifactId>maven-jar-plugin</artifactId>
\r
348 <exclude>*.properties</exclude>
\r
351 <version>2.3.1</version>
\r
355 <groupId>org.apache.maven.plugins</groupId>
\r
356 <artifactId>maven-deploy-plugin</artifactId>
\r
363 <groupId>org.apache.maven.plugins</groupId>
\r
364 <artifactId>maven-javadoc-plugin</artifactId>
\r
366 <failOnError>false</failOnError>
\r
370 <id>attach-javadocs</id>
\r
380 <groupId>org.apache.maven.plugins</groupId>
\r
381 <artifactId>maven-source-plugin</artifactId>
\r
382 <version>2.2.1</version>
\r
385 <id>attach-sources</id>
\r
387 <goal>jar-no-fork</goal>
\r
394 <groupId>org.sonatype.plugins</groupId>
\r
395 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
396 <version>1.6.7</version>
\r
397 <extensions>true</extensions>
\r
399 <nexusUrl>${nexusproxy}</nexusUrl>
\r
400 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
401 <serverId>ecomp-staging</serverId>
\r
405 <groupId>org.jacoco</groupId>
\r
406 <artifactId>jacoco-maven-plugin</artifactId>
\r
407 <version>0.7.7.201606060606</version>
\r
409 <dumpOnExit>true</dumpOnExit>
\r
411 <include>org.onap.aaf.*</include>
\r
416 <id>pre-unit-test</id>
\r
418 <goal>prepare-agent</goal>
\r
421 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
\r
422 <!-- <append>true</append> -->
\r
426 <id>pre-integration-test</id>
\r
427 <phase>pre-integration-test</phase>
\r
429 <goal>prepare-agent</goal>
\r
432 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
\r
433 <!-- <append>true</append> -->
\r
440 <phase>post-integration-test</phase>
\r
443 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
\r
444 <directory>${project.build.directory}/coverage-reports</directory>
\r
446 <include>*.exec</include>
\r
450 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
\r
460 <distributionManagement>
\r
462 <id>ecomp-releases</id>
\r
463 <name>AAF Release Repository</name>
\r
464 <url>${nexusproxy}${releaseNexusPath}</url>
\r
466 <snapshotRepository>
\r
467 <id>ecomp-snapshots</id>
\r
468 <name>AAF Snapshot Repository</name>
\r
469 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
470 </snapshotRepository>
\r
472 <id>ecomp-site</id>
\r
473 <url>dav:${nexusproxy}${sitePath}</url>
\r
475 </distributionManagement>
\r
476 <pluginRepositories>
\r
478 <id>onap-plugin-snapshots</id>
\r
479 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
480 </pluginRepository>
\r
481 </pluginRepositories>
\r
486 <name>Maven 2 repository 2</name>
\r
487 <url>http://repo2.maven.org/maven2/</url>
\r
490 <id>onap-jar-snapshots</id>
\r
491 <url>https://nexus.onap.org/content/repositories/snapshots</url>
\r
494 <id>spring-repo</id>
\r
495 <name>Spring repo</name>
\r
496 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
\r
499 <id>repository.jboss.org-public</id>
\r
500 <name>JBoss.org Maven repository</name>
\r
501 <url>https://repository.jboss.org/nexus/content/groups/public</url>
\r