blob: d589b815f23aaf3a34f7bd11f0fdfc25958cf325 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START====================================================
4 * org.onap.aaf
5 * ===========================================================================
6 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7 * ===========================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END====================================================
20 *
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 *
23-->
24<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.aaf.authz</groupId>
29 <artifactId>parent</artifactId>
sg481na2ac6782017-09-18 16:35:50 -040030 <version>1.0.1-SNAPSHOT</version>
sg481nbd890c52017-08-28 12:11:35 -040031 <relativePath>../pom.xml</relativePath>
32 </parent>
33
34 <artifactId>authz-service</artifactId>
35 <name>Authz Service</name>
36 <description>API for Authorization and Authentication</description>
37 <url>https://github.com/att/AAF</url>
38 <licenses>
39 <license>
40 <name>BSD License</name>
41 <url> </url>
42 </license>
43 </licenses>
44 <developers>
45 <developer>
46 <name>Jonathan Gathman</name>
47 <email></email>
48 <organization>ATT</organization>
49 <organizationUrl></organizationUrl>
50 </developer>
51 </developers>
52
53 <properties>
54 <maven.test.failure.ignore>true</maven.test.failure.ignore>
55 <project.swmVersion>1</project.swmVersion>
sg481na2ac6782017-09-18 16:35:50 -040056 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
57 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
sg481ndc5fcf12017-09-15 13:06:30 -040058 <dockerLocation>${basedir}/target/</dockerLocation>
sg481na9f4fe12017-09-16 23:16:53 -040059 <docker.registry>nexus3.onap.org</docker.registry>
sg481ndc5fcf12017-09-15 13:06:30 -040060 <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
sg481n40cd3562017-09-01 13:12:31 -040061 <sonar.language>java</sonar.language>
62 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
63 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
64 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
65 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
66 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
67 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sg481nbd890c52017-08-28 12:11:35 -040068 <nexusproxy>https://nexus.onap.org</nexusproxy>
69 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
70 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
71 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
72 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
73 </properties>
74
75
76 <dependencies>
77 <dependency>
78 <groupId>org.onap.aaf.authz</groupId>
79 <artifactId>authz-client</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040080 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040081 </dependency>
sg481ndc5fcf12017-09-15 13:06:30 -040082
83 <dependency>
84 <groupId>org.onap.aaf.authz</groupId>
85 <artifactId>authz-cmd</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040086 <version>${project.version}</version>
sg481ndc5fcf12017-09-15 13:06:30 -040087 </dependency>
sg481nbd890c52017-08-28 12:11:35 -040088 <dependency>
89 <groupId>org.onap.aaf.authz</groupId>
90 <artifactId>authz-core</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040091 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040092 <exclusions>
93 <exclusion>
94 <groupId>javax.servlet</groupId>
95 <artifactId>servlet-api</artifactId>
96 </exclusion>
97 </exclusions>
98 </dependency>
99
100 <dependency>
101 <groupId>org.onap.aaf.authz</groupId>
102 <artifactId>authz-cass</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400103 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400104 </dependency>
105
106 <dependency>
107 <groupId>org.onap.aaf.authz</groupId>
108 <artifactId>authz-defOrg</artifactId>
109 <version>${project.version}</version>
110 </dependency>
111
112
113
114 <dependency >
115 <groupId>org.onap.aaf.inno</groupId>
116 <artifactId>env</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400117 <version>${project.innoVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400118 </dependency>
119
120
121 <dependency>
122 <groupId>org.onap.aaf.cadi</groupId>
123 <artifactId>cadi-core</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400124 <version>${project.cadiVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400125 </dependency>
126
127 <dependency>
128 <groupId>com.att.aft</groupId>
129 <artifactId>dme2</artifactId>
130 </dependency>
131
132 <dependency>
133 <groupId>org.onap.aaf.inno</groupId>
134 <artifactId>rosetta</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400135 <version>${project.innoVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400136 </dependency>
137 <dependency>
138 <groupId>org.onap.aaf.cadi</groupId>
139 <artifactId>cadi-aaf</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400140 <version>${project.cadiVersion}</version>
sg481ndc5fcf12017-09-15 13:06:30 -0400141 </dependency>
sg481nbd890c52017-08-28 12:11:35 -0400142 </dependencies>
sg481n70529ba2017-09-21 13:29:12 +0000143<profiles>
144 <profile>
sg481nbd890c52017-08-28 12:11:35 -0400145 <build>
146 <plugins>
sg481ndc5fcf12017-09-15 13:06:30 -0400147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-resources-plugin</artifactId>
150 <version>2.7</version>
151 <executions>
152 <execution>
153 <id>copy-docker-file</id>
154 <phase>package</phase>
155 <goals>
156 <goal>copy-resources</goal>
157 </goals>
158 <configuration>
159 <outputDirectory>${dockerLocation}</outputDirectory>
160 <overwrite>true</overwrite>
161 <resources>
162 <resource>
163 <directory>${basedir}/src/main/resources/docker</directory>
164 <filtering>true</filtering>
165 <includes>
166 <include>**/*</include>
167 </includes>
168 </resource>
169 </resources>
170 </configuration>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>com.spotify</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>0.4.11</version>
178 <configuration>
179 <imageName>onap/aaf/authz-service</imageName>
180 <dockerDirectory>${dockerLocation}</dockerDirectory>
181 <serverId>docker-hub</serverId>
182 <registryUrl>https://${docker.registry}</registryUrl>
183 <imageTags>
184 <imageTag>${project.version}</imageTag>
185 <imageTag>latest</imageTag>
186 </imageTags>
187 <resources>
188 <resource>
189 <targetPath>/</targetPath>
190 <directory>/${basedir}/target/opt</directory>
191 <filtering>true</filtering>
192 <includes>
193 <include>**/*</include>
194 </includes>
195 </resource>
196 </resources>
197 <forceTags>true</forceTags>
198 </configuration>
199 </plugin>
200 <plugin>
201 <artifactId>maven-resources-plugin</artifactId>
202 <version>2.7</version>
203 <executions>
204 <execution>
205 <id>copy-resources-1</id>
206 <phase>validate</phase>
207 <goals>
208 <goal>copy-resources</goal>
209 </goals>
210 <configuration>
211 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
212 <resources>
213 <resource>
214 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
215 <includes>
216 <include>**/*.txt</include>
217 </includes>
218 </resource>
219 </resources>
220 </configuration>
221 </execution>
222 <execution>
223 <id>copy-resources-2</id>
224 <phase>validate</phase>
225 <goals>
226 <goal>copy-resources</goal>
227 </goals>
228 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400229 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400230 <resources>
231 <resource>
232 <directory>${project.basedir}/src/main/resources/etc</directory>
233 <includes>
234 <include>**/**</include>
235 </includes>
236 </resource>
237 </resources>
238 </configuration>
239 </execution>
240
241 <execution>
242 <id>copy-resources-3</id>
243 <phase>validate</phase>
244 <goals>
245 <goal>copy-resources</goal>
246 </goals>
247 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400248 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400249 <resources>
250 <resource>
251 <directory>${project.basedir}/../authz-cmd/target</directory>
252 <includes>
sg481na2ac6782017-09-18 16:35:50 -0400253 <include>**/*.jar</include>
sg481ndc5fcf12017-09-15 13:06:30 -0400254 </includes>
255 </resource>
256 </resources>
257 </configuration>
258 </execution>
259 <execution>
260 <id>copy-resources-4</id>
261 <phase>validate</phase>
262 <goals>
263 <goal>copy-resources</goal>
264 </goals>
265 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400266 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400267 <resources>
268 <resource>
269 <directory>${project.basedir}/../authz-cmd</directory>
270 <includes>
271 <include>**/aafcli.sh</include>
272 </includes>
273 </resource>
274 </resources>
275 </configuration>
276 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400277 <execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400278 <id>copy-resources-5</id>
279 <phase>validate</phase>
280 <goals>
281 <goal>copy-resources</goal>
282 </goals>
283 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400284 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400285 <resources>
286 <resource>
sg481na2ac6782017-09-18 16:35:50 -0400287 <directory>${project.basedir}/src/main/config</directory>
sg481ndc5fcf12017-09-15 13:06:30 -0400288 <includes>
289 <include>**/**</include>
290 </includes>
291 </resource>
292 </resources>
293 </configuration>
294 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400295 <execution>
296 <id>copy-resources-6</id>
297 <phase>validate</phase>
298 <goals>
299 <goal>copy-resources</goal>
300 </goals>
301 <configuration>
302 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
303 <resources>
304 <resource>
305 <directory>${project.basedir}/../opt/app/aaf/data</directory>
306 <includes>
307 <include>**/**</include>
308 </includes>
309 </resource>
310 </resources>
311 </configuration>
312 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400313 </executions>
314 </plugin>
315 <plugin>
316 <groupId>org.apache.maven.plugins</groupId>
317 <artifactId>maven-dependency-plugin</artifactId>
318 <version>2.10</version>
319 <executions>
320 <execution>
321 <id>copy-dependencies</id>
322 <phase>package</phase>
323 <goals>
324 <goal>copy-dependencies</goal>
325 </goals>
326 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400327 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400328 <overWriteReleases>false</overWriteReleases>
329 <overWriteSnapshots>false</overWriteSnapshots>
330 <overWriteIfNewer>true</overWriteIfNewer>
331 </configuration>
332 </execution>
333 </executions>
334 </plugin>
335
sg481nbd890c52017-08-28 12:11:35 -0400336 <plugin>
337 <groupId>org.codehaus.mojo</groupId>
338 <artifactId>exec-maven-plugin</artifactId>
339 <version>1.5.0</version>
340 <configuration>
341 <executable>java</executable>
342 <arguments>
343 <argument>-DAFT_LATITUDE=33</argument>
344 <argument>-DAFT_LONGITUDE=-84</argument>
345 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
346
347 <argument>-XX:NewRatio=3</argument>
348 <argument>-XX:+PrintGCTimeStamps</argument>
349 <argument>-XX:+PrintGCDetails</argument>
350 <argument>-Xloggc:gc.log</argument>
351 <argument>-classpath</argument>
352
353 <classpath>
354
355 </classpath>
356 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
357
358 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
359 </arguments>
360 </configuration>
361 </plugin>
362
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-jar-plugin</artifactId>
366 <configuration>
367 <excludes>
368 <exclude>*.properties</exclude>
369 </excludes>
370 </configuration>
371 <version>2.3.1</version>
372 </plugin>
sg481na2ac6782017-09-18 16:35:50 -0400373
sg481nbd890c52017-08-28 12:11:35 -0400374
375 <plugin>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-javadoc-plugin</artifactId>
378 <configuration>
379 <failOnError>false</failOnError>
380 </configuration>
381 <executions>
382 <execution>
383 <id>attach-javadocs</id>
384 <goals>
385 <goal>jar</goal>
386 </goals>
387 </execution>
388 </executions>
389 </plugin>
390
391
392 <plugin>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-source-plugin</artifactId>
395 <version>2.2.1</version>
396 <executions>
397 <execution>
398 <id>attach-sources</id>
399 <goals>
400 <goal>jar-no-fork</goal>
401 </goals>
402 </execution>
403 </executions>
404 </plugin>
405
406<plugin>
407 <groupId>org.sonatype.plugins</groupId>
408 <artifactId>nexus-staging-maven-plugin</artifactId>
409 <version>1.6.7</version>
410 <extensions>true</extensions>
411 <configuration>
412 <nexusUrl>${nexusproxy}</nexusUrl>
413 <stagingProfileId>176c31dfe190a</stagingProfileId>
414 <serverId>ecomp-staging</serverId>
415 </configuration>
sg481n40cd3562017-09-01 13:12:31 -0400416 </plugin>
417 <plugin>
418 <groupId>org.jacoco</groupId>
419 <artifactId>jacoco-maven-plugin</artifactId>
420 <version>0.7.7.201606060606</version>
421 <configuration>
422 <dumpOnExit>true</dumpOnExit>
423 <includes>
424 <include>org.onap.aaf.*</include>
425 </includes>
426 </configuration>
427 <executions>
428 <execution>
429 <id>pre-unit-test</id>
430 <goals>
431 <goal>prepare-agent</goal>
432 </goals>
433 <configuration>
434 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
435 <!-- <append>true</append> -->
436 </configuration>
437 </execution>
438 <execution>
439 <id>pre-integration-test</id>
440 <phase>pre-integration-test</phase>
441 <goals>
442 <goal>prepare-agent</goal>
443 </goals>
444 <configuration>
445 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
446 <!-- <append>true</append> -->
447 </configuration>
448 </execution>
449 <execution>
450 <goals>
451 <goal>merge</goal>
452 </goals>
453 <phase>post-integration-test</phase>
454 <configuration>
455 <fileSets>
456 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
457 <directory>${project.build.directory}/coverage-reports</directory>
458 <includes>
459 <include>*.exec</include>
460 </includes>
461 </fileSet>
462 </fileSets>
463 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
464 </configuration>
465 </execution>
466 </executions>
467 </plugin>
sg481nbd890c52017-08-28 12:11:35 -0400468
469 </plugins>
470
471 </build>
sg481n70529ba2017-09-21 13:29:12 +0000472</profile>
473</profiles>
sg481nbd890c52017-08-28 12:11:35 -0400474 <distributionManagement>
475 <repository>
476 <id>ecomp-releases</id>
477 <name>AAF Release Repository</name>
478 <url>${nexusproxy}${releaseNexusPath}</url>
479 </repository>
480 <snapshotRepository>
481 <id>ecomp-snapshots</id>
482 <name>AAF Snapshot Repository</name>
483 <url>${nexusproxy}${snapshotNexusPath}</url>
484 </snapshotRepository>
485 <site>
486 <id>ecomp-site</id>
487 <url>dav:${nexusproxy}${sitePath}</url>
488 </site>
489 </distributionManagement>
490<pluginRepositories>
491 <pluginRepository>
492 <id>onap-plugin-snapshots</id>
493 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
494 </pluginRepository>
495 </pluginRepositories>
496
497 <repositories>
498 <repository>
499 <id>central</id>
500 <name>Maven 2 repository 2</name>
501 <url>http://repo2.maven.org/maven2/</url>
502 </repository>
503 <repository>
504 <id>onap-jar-snapshots</id>
505 <url>https://nexus.onap.org/content/repositories/snapshots</url>
506 </repository>
507 <repository>
508 <id>spring-repo</id>
509 <name>Spring repo</name>
510 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
511 </repository>
512 <repository>
513 <id>repository.jboss.org-public</id>
514 <name>JBoss.org Maven repository</name>
515 <url>https://repository.jboss.org/nexus/content/groups/public</url>
516 </repository>
517 </repositories>
518</project>