blob: b6b4b2fabfb51254a959aee9ae90ec38987a264e [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>
143
144 <build>
145 <plugins>
sg481ndc5fcf12017-09-15 13:06:30 -0400146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-resources-plugin</artifactId>
149 <version>2.7</version>
150 <executions>
151 <execution>
152 <id>copy-docker-file</id>
153 <phase>package</phase>
154 <goals>
155 <goal>copy-resources</goal>
156 </goals>
157 <configuration>
158 <outputDirectory>${dockerLocation}</outputDirectory>
159 <overwrite>true</overwrite>
160 <resources>
161 <resource>
162 <directory>${basedir}/src/main/resources/docker</directory>
163 <filtering>true</filtering>
164 <includes>
165 <include>**/*</include>
166 </includes>
167 </resource>
168 </resources>
169 </configuration>
170 </execution>
171 </executions>
172 </plugin>
173 <plugin>
174 <groupId>com.spotify</groupId>
175 <artifactId>docker-maven-plugin</artifactId>
176 <version>0.4.11</version>
177 <configuration>
178 <imageName>onap/aaf/authz-service</imageName>
179 <dockerDirectory>${dockerLocation}</dockerDirectory>
180 <serverId>docker-hub</serverId>
181 <registryUrl>https://${docker.registry}</registryUrl>
182 <imageTags>
183 <imageTag>${project.version}</imageTag>
184 <imageTag>latest</imageTag>
185 </imageTags>
186 <resources>
187 <resource>
188 <targetPath>/</targetPath>
189 <directory>/${basedir}/target/opt</directory>
190 <filtering>true</filtering>
191 <includes>
192 <include>**/*</include>
193 </includes>
194 </resource>
195 </resources>
196 <forceTags>true</forceTags>
197 </configuration>
198 </plugin>
199 <plugin>
200 <artifactId>maven-resources-plugin</artifactId>
201 <version>2.7</version>
202 <executions>
203 <execution>
204 <id>copy-resources-1</id>
205 <phase>validate</phase>
206 <goals>
207 <goal>copy-resources</goal>
208 </goals>
209 <configuration>
210 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
211 <resources>
212 <resource>
213 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
214 <includes>
215 <include>**/*.txt</include>
216 </includes>
217 </resource>
218 </resources>
219 </configuration>
220 </execution>
221 <execution>
222 <id>copy-resources-2</id>
223 <phase>validate</phase>
224 <goals>
225 <goal>copy-resources</goal>
226 </goals>
227 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400228 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400229 <resources>
230 <resource>
231 <directory>${project.basedir}/src/main/resources/etc</directory>
232 <includes>
233 <include>**/**</include>
234 </includes>
235 </resource>
236 </resources>
237 </configuration>
238 </execution>
239
240 <execution>
241 <id>copy-resources-3</id>
242 <phase>validate</phase>
243 <goals>
244 <goal>copy-resources</goal>
245 </goals>
246 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400247 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400248 <resources>
249 <resource>
250 <directory>${project.basedir}/../authz-cmd/target</directory>
251 <includes>
sg481na2ac6782017-09-18 16:35:50 -0400252 <include>**/*.jar</include>
sg481ndc5fcf12017-09-15 13:06:30 -0400253 </includes>
254 </resource>
255 </resources>
256 </configuration>
257 </execution>
258 <execution>
259 <id>copy-resources-4</id>
260 <phase>validate</phase>
261 <goals>
262 <goal>copy-resources</goal>
263 </goals>
264 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400265 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400266 <resources>
267 <resource>
268 <directory>${project.basedir}/../authz-cmd</directory>
269 <includes>
270 <include>**/aafcli.sh</include>
271 </includes>
272 </resource>
273 </resources>
274 </configuration>
275 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400276 <execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400277 <id>copy-resources-5</id>
278 <phase>validate</phase>
279 <goals>
280 <goal>copy-resources</goal>
281 </goals>
282 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400283 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400284 <resources>
285 <resource>
sg481na2ac6782017-09-18 16:35:50 -0400286 <directory>${project.basedir}/src/main/config</directory>
sg481ndc5fcf12017-09-15 13:06:30 -0400287 <includes>
288 <include>**/**</include>
289 </includes>
290 </resource>
291 </resources>
292 </configuration>
293 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400294 <execution>
295 <id>copy-resources-6</id>
296 <phase>validate</phase>
297 <goals>
298 <goal>copy-resources</goal>
299 </goals>
300 <configuration>
301 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
302 <resources>
303 <resource>
304 <directory>${project.basedir}/../opt/app/aaf/data</directory>
305 <includes>
306 <include>**/**</include>
307 </includes>
308 </resource>
309 </resources>
310 </configuration>
311 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400312 </executions>
313 </plugin>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-dependency-plugin</artifactId>
317 <version>2.10</version>
318 <executions>
319 <execution>
320 <id>copy-dependencies</id>
321 <phase>package</phase>
322 <goals>
323 <goal>copy-dependencies</goal>
324 </goals>
325 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400326 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400327 <overWriteReleases>false</overWriteReleases>
328 <overWriteSnapshots>false</overWriteSnapshots>
329 <overWriteIfNewer>true</overWriteIfNewer>
330 </configuration>
331 </execution>
332 </executions>
333 </plugin>
334
sg481nbd890c52017-08-28 12:11:35 -0400335 <plugin>
336 <groupId>org.codehaus.mojo</groupId>
337 <artifactId>exec-maven-plugin</artifactId>
338 <version>1.5.0</version>
339 <configuration>
340 <executable>java</executable>
341 <arguments>
342 <argument>-DAFT_LATITUDE=33</argument>
343 <argument>-DAFT_LONGITUDE=-84</argument>
344 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
345
346 <argument>-XX:NewRatio=3</argument>
347 <argument>-XX:+PrintGCTimeStamps</argument>
348 <argument>-XX:+PrintGCDetails</argument>
349 <argument>-Xloggc:gc.log</argument>
350 <argument>-classpath</argument>
351
352 <classpath>
353
354 </classpath>
355 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
356
357 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
358 </arguments>
359 </configuration>
360 </plugin>
361
362 <plugin>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-jar-plugin</artifactId>
365 <configuration>
366 <excludes>
367 <exclude>*.properties</exclude>
368 </excludes>
369 </configuration>
370 <version>2.3.1</version>
371 </plugin>
sg481na2ac6782017-09-18 16:35:50 -0400372
sg481nbd890c52017-08-28 12:11:35 -0400373
374 <plugin>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-javadoc-plugin</artifactId>
377 <configuration>
378 <failOnError>false</failOnError>
379 </configuration>
380 <executions>
381 <execution>
382 <id>attach-javadocs</id>
383 <goals>
384 <goal>jar</goal>
385 </goals>
386 </execution>
387 </executions>
388 </plugin>
389
390
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-source-plugin</artifactId>
394 <version>2.2.1</version>
395 <executions>
396 <execution>
397 <id>attach-sources</id>
398 <goals>
399 <goal>jar-no-fork</goal>
400 </goals>
401 </execution>
402 </executions>
403 </plugin>
404
405<plugin>
406 <groupId>org.sonatype.plugins</groupId>
407 <artifactId>nexus-staging-maven-plugin</artifactId>
408 <version>1.6.7</version>
409 <extensions>true</extensions>
410 <configuration>
411 <nexusUrl>${nexusproxy}</nexusUrl>
412 <stagingProfileId>176c31dfe190a</stagingProfileId>
413 <serverId>ecomp-staging</serverId>
414 </configuration>
sg481n40cd3562017-09-01 13:12:31 -0400415 </plugin>
416 <plugin>
417 <groupId>org.jacoco</groupId>
418 <artifactId>jacoco-maven-plugin</artifactId>
419 <version>0.7.7.201606060606</version>
420 <configuration>
421 <dumpOnExit>true</dumpOnExit>
422 <includes>
423 <include>org.onap.aaf.*</include>
424 </includes>
425 </configuration>
426 <executions>
427 <execution>
428 <id>pre-unit-test</id>
429 <goals>
430 <goal>prepare-agent</goal>
431 </goals>
432 <configuration>
433 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
434 <!-- <append>true</append> -->
435 </configuration>
436 </execution>
437 <execution>
438 <id>pre-integration-test</id>
439 <phase>pre-integration-test</phase>
440 <goals>
441 <goal>prepare-agent</goal>
442 </goals>
443 <configuration>
444 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
445 <!-- <append>true</append> -->
446 </configuration>
447 </execution>
448 <execution>
449 <goals>
450 <goal>merge</goal>
451 </goals>
452 <phase>post-integration-test</phase>
453 <configuration>
454 <fileSets>
455 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
456 <directory>${project.build.directory}/coverage-reports</directory>
457 <includes>
458 <include>*.exec</include>
459 </includes>
460 </fileSet>
461 </fileSets>
462 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
463 </configuration>
464 </execution>
465 </executions>
466 </plugin>
sg481nbd890c52017-08-28 12:11:35 -0400467
468 </plugins>
469
470 </build>
471
472 <distributionManagement>
473 <repository>
474 <id>ecomp-releases</id>
475 <name>AAF Release Repository</name>
476 <url>${nexusproxy}${releaseNexusPath}</url>
477 </repository>
478 <snapshotRepository>
479 <id>ecomp-snapshots</id>
480 <name>AAF Snapshot Repository</name>
481 <url>${nexusproxy}${snapshotNexusPath}</url>
482 </snapshotRepository>
483 <site>
484 <id>ecomp-site</id>
485 <url>dav:${nexusproxy}${sitePath}</url>
486 </site>
487 </distributionManagement>
488<pluginRepositories>
489 <pluginRepository>
490 <id>onap-plugin-snapshots</id>
491 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
492 </pluginRepository>
493 </pluginRepositories>
494
495 <repositories>
496 <repository>
497 <id>central</id>
498 <name>Maven 2 repository 2</name>
499 <url>http://repo2.maven.org/maven2/</url>
500 </repository>
501 <repository>
502 <id>onap-jar-snapshots</id>
503 <url>https://nexus.onap.org/content/repositories/snapshots</url>
504 </repository>
505 <repository>
506 <id>spring-repo</id>
507 <name>Spring repo</name>
508 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
509 </repository>
510 <repository>
511 <id>repository.jboss.org-public</id>
512 <name>JBoss.org Maven repository</name>
513 <url>https://repository.jboss.org/nexus/content/groups/public</url>
514 </repository>
515 </repositories>
516</project>