blob: 607f161e5e69502efe53506045ab67e719aa9c8d [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>
sg481na9d21082017-09-23 14:26:06 +000072 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
sg481n1e538f72017-09-24 02:12:15 +000073 <skip.docker.build>false</skip.docker.build>
74 <skip.docker.tag>false</skip.docker.tag>
75 <skip.docker.push>false</skip.docker.push>
sg481nbd890c52017-08-28 12:11:35 -040076 </properties>
77
78
79 <dependencies>
80 <dependency>
81 <groupId>org.onap.aaf.authz</groupId>
82 <artifactId>authz-client</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040083 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040084 </dependency>
sg481ndc5fcf12017-09-15 13:06:30 -040085
86 <dependency>
87 <groupId>org.onap.aaf.authz</groupId>
88 <artifactId>authz-cmd</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040089 <version>${project.version}</version>
sg481ndc5fcf12017-09-15 13:06:30 -040090 </dependency>
sg481nbd890c52017-08-28 12:11:35 -040091 <dependency>
92 <groupId>org.onap.aaf.authz</groupId>
93 <artifactId>authz-core</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040094 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040095 <exclusions>
96 <exclusion>
97 <groupId>javax.servlet</groupId>
98 <artifactId>servlet-api</artifactId>
99 </exclusion>
100 </exclusions>
101 </dependency>
102
103 <dependency>
104 <groupId>org.onap.aaf.authz</groupId>
105 <artifactId>authz-cass</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400106 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400107 </dependency>
108
109 <dependency>
110 <groupId>org.onap.aaf.authz</groupId>
111 <artifactId>authz-defOrg</artifactId>
112 <version>${project.version}</version>
113 </dependency>
114
115
116
117 <dependency >
118 <groupId>org.onap.aaf.inno</groupId>
119 <artifactId>env</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400120 <version>${project.innoVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400121 </dependency>
122
123
124 <dependency>
125 <groupId>org.onap.aaf.cadi</groupId>
126 <artifactId>cadi-core</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400127 <version>${project.cadiVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400128 </dependency>
129
130 <dependency>
131 <groupId>com.att.aft</groupId>
132 <artifactId>dme2</artifactId>
133 </dependency>
134
135 <dependency>
136 <groupId>org.onap.aaf.inno</groupId>
137 <artifactId>rosetta</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400138 <version>${project.innoVersion}</version>
sg481nbd890c52017-08-28 12:11:35 -0400139 </dependency>
140 <dependency>
141 <groupId>org.onap.aaf.cadi</groupId>
142 <artifactId>cadi-aaf</artifactId>
sg481na2ac6782017-09-18 16:35:50 -0400143 <version>${project.cadiVersion}</version>
sg481ndc5fcf12017-09-15 13:06:30 -0400144 </dependency>
sg481nbd890c52017-08-28 12:11:35 -0400145 </dependencies>
sg481n2bc35382017-09-23 15:50:15 +0000146
sg481n1e538f72017-09-24 02:12:15 +0000147 <profiles>
148 <profile>
149
sg481nbd890c52017-08-28 12:11:35 -0400150 <build>
151 <plugins>
sg481na9d21082017-09-23 14:26:06 +0000152
sg481n1e538f72017-09-24 02:12:15 +0000153 <plugin>
sg481ndc5fcf12017-09-15 13:06:30 -0400154 <groupId>com.spotify</groupId>
155 <artifactId>docker-maven-plugin</artifactId>
156 <version>0.4.11</version>
157 <configuration>
158 <imageName>onap/aaf/authz-service</imageName>
159 <dockerDirectory>${dockerLocation}</dockerDirectory>
sg481n1e538f72017-09-24 02:12:15 +0000160 <serverId>docker-hub</serverId>
sg481ndc5fcf12017-09-15 13:06:30 -0400161 <imageTags>
162 <imageTag>${project.version}</imageTag>
163 <imageTag>latest</imageTag>
164 </imageTags>
sg481n1e538f72017-09-24 02:12:15 +0000165 <forceTags>true</forceTags>
sg481ndc5fcf12017-09-15 13:06:30 -0400166 <resources>
167 <resource>
168 <targetPath>/</targetPath>
169 <directory>/${basedir}/target/opt</directory>
170 <filtering>true</filtering>
171 <includes>
172 <include>**/*</include>
173 </includes>
174 </resource>
sg481n1e538f72017-09-24 02:12:15 +0000175 </resources>
sg481ndc5fcf12017-09-15 13:06:30 -0400176 </configuration>
sg481n1e538f72017-09-24 02:12:15 +0000177 <executions>
178 <execution>
179 <id>build-image</id>
180 <phase>package</phase>
181 <goals>
182 <goal>build</goal>
183 </goals>
184 <configuration>
185 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
186 <buildArgs>
187 <http_proxy>${env.HTTP_PROXY}</http_proxy>
188 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
189 </buildArgs>
190 </configuration>
191 </execution>
192 <execution>
193 <id>docker</id>
194 <phase>deploy</phase>
195 <goals>
196 <goal>push</goal>
197 </goals>
198 <configuration>
199 <imageName>onap/aaf/authz-service</imageName>
200 <skipDockerPush>${skip.docker.push}</skipDockerPush>
201 </configuration>
202 </execution>
203
204 </executions>
sg481ndc5fcf12017-09-15 13:06:30 -0400205 </plugin>
sg481n1e538f72017-09-24 02:12:15 +0000206
207
sg481ndc5fcf12017-09-15 13:06:30 -0400208 <plugin>
sg481n1e538f72017-09-24 02:12:15 +0000209 <artifactId>maven-resources-plugin</artifactId>
210 <version>2.7</version>
211 <executions>
212 <execution>
sg481na9d21082017-09-23 14:26:06 +0000213 <id>copy-docker-file</id>
214 <phase>package</phase>
215 <goals>
216 <goal>copy-resources</goal>
217 </goals>
218 <configuration>
219 <outputDirectory>${dockerLocation}</outputDirectory>
220 <overwrite>true</overwrite>
221 <resources>
222 <resource>
223 <directory>${basedir}/src/main/resources/docker</directory>
224 <filtering>true</filtering>
225 <includes>
226 <include>**/*</include>
227 </includes>
228 </resource>
229 </resources>
230 </configuration>
231 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400232 <execution>
233 <id>copy-resources-1</id>
234 <phase>validate</phase>
235 <goals>
236 <goal>copy-resources</goal>
237 </goals>
238 <configuration>
239 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
240 <resources>
241 <resource>
242 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
243 <includes>
244 <include>**/*.txt</include>
245 </includes>
246 </resource>
247 </resources>
248 </configuration>
249 </execution>
250 <execution>
251 <id>copy-resources-2</id>
252 <phase>validate</phase>
253 <goals>
254 <goal>copy-resources</goal>
255 </goals>
256 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400257 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400258 <resources>
259 <resource>
260 <directory>${project.basedir}/src/main/resources/etc</directory>
261 <includes>
262 <include>**/**</include>
263 </includes>
264 </resource>
265 </resources>
266 </configuration>
267 </execution>
268
269 <execution>
270 <id>copy-resources-3</id>
271 <phase>validate</phase>
272 <goals>
273 <goal>copy-resources</goal>
274 </goals>
275 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400276 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400277 <resources>
278 <resource>
279 <directory>${project.basedir}/../authz-cmd/target</directory>
280 <includes>
sg481na2ac6782017-09-18 16:35:50 -0400281 <include>**/*.jar</include>
sg481ndc5fcf12017-09-15 13:06:30 -0400282 </includes>
283 </resource>
284 </resources>
285 </configuration>
286 </execution>
287 <execution>
288 <id>copy-resources-4</id>
289 <phase>validate</phase>
290 <goals>
291 <goal>copy-resources</goal>
292 </goals>
293 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400294 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400295 <resources>
296 <resource>
297 <directory>${project.basedir}/../authz-cmd</directory>
298 <includes>
299 <include>**/aafcli.sh</include>
300 </includes>
301 </resource>
302 </resources>
303 </configuration>
304 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400305 <execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400306 <id>copy-resources-5</id>
307 <phase>validate</phase>
308 <goals>
309 <goal>copy-resources</goal>
310 </goals>
311 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400312 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400313 <resources>
314 <resource>
sg481na2ac6782017-09-18 16:35:50 -0400315 <directory>${project.basedir}/src/main/config</directory>
sg481ndc5fcf12017-09-15 13:06:30 -0400316 <includes>
317 <include>**/**</include>
318 </includes>
319 </resource>
320 </resources>
321 </configuration>
322 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400323 <execution>
324 <id>copy-resources-6</id>
325 <phase>validate</phase>
326 <goals>
327 <goal>copy-resources</goal>
328 </goals>
329 <configuration>
330 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
331 <resources>
332 <resource>
333 <directory>${project.basedir}/../opt/app/aaf/data</directory>
334 <includes>
335 <include>**/**</include>
336 </includes>
337 </resource>
338 </resources>
339 </configuration>
340 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400341 </executions>
342 </plugin>
343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-dependency-plugin</artifactId>
346 <version>2.10</version>
347 <executions>
348 <execution>
349 <id>copy-dependencies</id>
350 <phase>package</phase>
351 <goals>
352 <goal>copy-dependencies</goal>
353 </goals>
354 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400355 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400356 <overWriteReleases>false</overWriteReleases>
357 <overWriteSnapshots>false</overWriteSnapshots>
358 <overWriteIfNewer>true</overWriteIfNewer>
359 </configuration>
360 </execution>
361 </executions>
362 </plugin>
363
sg481nbd890c52017-08-28 12:11:35 -0400364 <plugin>
365 <groupId>org.codehaus.mojo</groupId>
366 <artifactId>exec-maven-plugin</artifactId>
367 <version>1.5.0</version>
368 <configuration>
369 <executable>java</executable>
370 <arguments>
371 <argument>-DAFT_LATITUDE=33</argument>
372 <argument>-DAFT_LONGITUDE=-84</argument>
373 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
374
375 <argument>-XX:NewRatio=3</argument>
376 <argument>-XX:+PrintGCTimeStamps</argument>
377 <argument>-XX:+PrintGCDetails</argument>
378 <argument>-Xloggc:gc.log</argument>
379 <argument>-classpath</argument>
380
381 <classpath>
382
383 </classpath>
384 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
385
386 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
387 </arguments>
388 </configuration>
389 </plugin>
390
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-jar-plugin</artifactId>
394 <configuration>
395 <excludes>
396 <exclude>*.properties</exclude>
397 </excludes>
398 </configuration>
399 <version>2.3.1</version>
400 </plugin>
sg481na2ac6782017-09-18 16:35:50 -0400401
sg481nbd890c52017-08-28 12:11:35 -0400402
403 <plugin>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-javadoc-plugin</artifactId>
sg481na9d21082017-09-23 14:26:06 +0000406 <version>2.10.4</version>
sg481nbd890c52017-08-28 12:11:35 -0400407 <configuration>
408 <failOnError>false</failOnError>
409 </configuration>
410 <executions>
411 <execution>
412 <id>attach-javadocs</id>
413 <goals>
414 <goal>jar</goal>
415 </goals>
416 </execution>
417 </executions>
418 </plugin>
419
420
421 <plugin>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-source-plugin</artifactId>
424 <version>2.2.1</version>
425 <executions>
426 <execution>
427 <id>attach-sources</id>
428 <goals>
429 <goal>jar-no-fork</goal>
430 </goals>
431 </execution>
432 </executions>
433 </plugin>
434
435<plugin>
436 <groupId>org.sonatype.plugins</groupId>
437 <artifactId>nexus-staging-maven-plugin</artifactId>
438 <version>1.6.7</version>
439 <extensions>true</extensions>
440 <configuration>
441 <nexusUrl>${nexusproxy}</nexusUrl>
442 <stagingProfileId>176c31dfe190a</stagingProfileId>
443 <serverId>ecomp-staging</serverId>
444 </configuration>
sg481n40cd3562017-09-01 13:12:31 -0400445 </plugin>
446 <plugin>
447 <groupId>org.jacoco</groupId>
448 <artifactId>jacoco-maven-plugin</artifactId>
449 <version>0.7.7.201606060606</version>
450 <configuration>
451 <dumpOnExit>true</dumpOnExit>
452 <includes>
453 <include>org.onap.aaf.*</include>
454 </includes>
455 </configuration>
456 <executions>
457 <execution>
458 <id>pre-unit-test</id>
459 <goals>
460 <goal>prepare-agent</goal>
461 </goals>
462 <configuration>
463 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
464 <!-- <append>true</append> -->
465 </configuration>
466 </execution>
467 <execution>
468 <id>pre-integration-test</id>
469 <phase>pre-integration-test</phase>
470 <goals>
471 <goal>prepare-agent</goal>
472 </goals>
473 <configuration>
474 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
475 <!-- <append>true</append> -->
476 </configuration>
477 </execution>
478 <execution>
479 <goals>
480 <goal>merge</goal>
481 </goals>
482 <phase>post-integration-test</phase>
483 <configuration>
484 <fileSets>
485 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
486 <directory>${project.build.directory}/coverage-reports</directory>
487 <includes>
488 <include>*.exec</include>
489 </includes>
490 </fileSet>
491 </fileSets>
492 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
493 </configuration>
494 </execution>
495 </executions>
496 </plugin>
sg481nbd890c52017-08-28 12:11:35 -0400497
498 </plugins>
499
500 </build>
sg481n2bc35382017-09-23 15:50:15 +0000501 </profile>
502 </profiles>
503
sg481nbd890c52017-08-28 12:11:35 -0400504 <distributionManagement>
505 <repository>
506 <id>ecomp-releases</id>
507 <name>AAF Release Repository</name>
508 <url>${nexusproxy}${releaseNexusPath}</url>
509 </repository>
510 <snapshotRepository>
511 <id>ecomp-snapshots</id>
512 <name>AAF Snapshot Repository</name>
513 <url>${nexusproxy}${snapshotNexusPath}</url>
514 </snapshotRepository>
515 <site>
516 <id>ecomp-site</id>
517 <url>dav:${nexusproxy}${sitePath}</url>
518 </site>
519 </distributionManagement>
sg481na9d21082017-09-23 14:26:06 +0000520
sg481nbd890c52017-08-28 12:11:35 -0400521</project>