blob: 674f41011557219cf0d5347eed08a4aedbdf936d [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>
sg481nbd890c52017-08-28 12:11:35 -040073 </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>
sg481n2bc35382017-09-23 15:50:15 +0000143
144
sg481nbd890c52017-08-28 12:11:35 -0400145 <build>
146 <plugins>
sg481na9d21082017-09-23 14:26:06 +0000147
sg481ndc5fcf12017-09-15 13:06:30 -0400148 <plugin>
149 <groupId>com.spotify</groupId>
150 <artifactId>docker-maven-plugin</artifactId>
151 <version>0.4.11</version>
152 <configuration>
153 <imageName>onap/aaf/authz-service</imageName>
154 <dockerDirectory>${dockerLocation}</dockerDirectory>
155 <serverId>docker-hub</serverId>
156 <registryUrl>https://${docker.registry}</registryUrl>
157 <imageTags>
158 <imageTag>${project.version}</imageTag>
159 <imageTag>latest</imageTag>
160 </imageTags>
161 <resources>
162 <resource>
163 <targetPath>/</targetPath>
164 <directory>/${basedir}/target/opt</directory>
165 <filtering>true</filtering>
166 <includes>
167 <include>**/*</include>
168 </includes>
169 </resource>
170 </resources>
171 <forceTags>true</forceTags>
172 </configuration>
173 </plugin>
174 <plugin>
175 <artifactId>maven-resources-plugin</artifactId>
176 <version>2.7</version>
177 <executions>
sg481na9d21082017-09-23 14:26:06 +0000178 <execution>
179 <id>copy-docker-file</id>
180 <phase>package</phase>
181 <goals>
182 <goal>copy-resources</goal>
183 </goals>
184 <configuration>
185 <outputDirectory>${dockerLocation}</outputDirectory>
186 <overwrite>true</overwrite>
187 <resources>
188 <resource>
189 <directory>${basedir}/src/main/resources/docker</directory>
190 <filtering>true</filtering>
191 <includes>
192 <include>**/*</include>
193 </includes>
194 </resource>
195 </resources>
196 </configuration>
197 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400198 <execution>
199 <id>copy-resources-1</id>
200 <phase>validate</phase>
201 <goals>
202 <goal>copy-resources</goal>
203 </goals>
204 <configuration>
205 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
206 <resources>
207 <resource>
208 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
209 <includes>
210 <include>**/*.txt</include>
211 </includes>
212 </resource>
213 </resources>
214 </configuration>
215 </execution>
216 <execution>
217 <id>copy-resources-2</id>
218 <phase>validate</phase>
219 <goals>
220 <goal>copy-resources</goal>
221 </goals>
222 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400223 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400224 <resources>
225 <resource>
226 <directory>${project.basedir}/src/main/resources/etc</directory>
227 <includes>
228 <include>**/**</include>
229 </includes>
230 </resource>
231 </resources>
232 </configuration>
233 </execution>
234
235 <execution>
236 <id>copy-resources-3</id>
237 <phase>validate</phase>
238 <goals>
239 <goal>copy-resources</goal>
240 </goals>
241 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400242 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400243 <resources>
244 <resource>
245 <directory>${project.basedir}/../authz-cmd/target</directory>
246 <includes>
sg481na2ac6782017-09-18 16:35:50 -0400247 <include>**/*.jar</include>
sg481ndc5fcf12017-09-15 13:06:30 -0400248 </includes>
249 </resource>
250 </resources>
251 </configuration>
252 </execution>
253 <execution>
254 <id>copy-resources-4</id>
255 <phase>validate</phase>
256 <goals>
257 <goal>copy-resources</goal>
258 </goals>
259 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400260 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400261 <resources>
262 <resource>
263 <directory>${project.basedir}/../authz-cmd</directory>
264 <includes>
265 <include>**/aafcli.sh</include>
266 </includes>
267 </resource>
268 </resources>
269 </configuration>
270 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400271 <execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400272 <id>copy-resources-5</id>
273 <phase>validate</phase>
274 <goals>
275 <goal>copy-resources</goal>
276 </goals>
277 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400278 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400279 <resources>
280 <resource>
sg481na2ac6782017-09-18 16:35:50 -0400281 <directory>${project.basedir}/src/main/config</directory>
sg481ndc5fcf12017-09-15 13:06:30 -0400282 <includes>
283 <include>**/**</include>
284 </includes>
285 </resource>
286 </resources>
287 </configuration>
288 </execution>
sg481na2ac6782017-09-18 16:35:50 -0400289 <execution>
290 <id>copy-resources-6</id>
291 <phase>validate</phase>
292 <goals>
293 <goal>copy-resources</goal>
294 </goals>
295 <configuration>
296 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/etc/data</outputDirectory>
297 <resources>
298 <resource>
299 <directory>${project.basedir}/../opt/app/aaf/data</directory>
300 <includes>
301 <include>**/**</include>
302 </includes>
303 </resource>
304 </resources>
305 </configuration>
306 </execution>
sg481ndc5fcf12017-09-15 13:06:30 -0400307 </executions>
308 </plugin>
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-dependency-plugin</artifactId>
312 <version>2.10</version>
313 <executions>
314 <execution>
315 <id>copy-dependencies</id>
316 <phase>package</phase>
317 <goals>
318 <goal>copy-dependencies</goal>
319 </goals>
320 <configuration>
sg481na2ac6782017-09-18 16:35:50 -0400321 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/lib</outputDirectory>
sg481ndc5fcf12017-09-15 13:06:30 -0400322 <overWriteReleases>false</overWriteReleases>
323 <overWriteSnapshots>false</overWriteSnapshots>
324 <overWriteIfNewer>true</overWriteIfNewer>
325 </configuration>
326 </execution>
327 </executions>
328 </plugin>
329
sg481nbd890c52017-08-28 12:11:35 -0400330 <plugin>
331 <groupId>org.codehaus.mojo</groupId>
332 <artifactId>exec-maven-plugin</artifactId>
333 <version>1.5.0</version>
334 <configuration>
335 <executable>java</executable>
336 <arguments>
337 <argument>-DAFT_LATITUDE=33</argument>
338 <argument>-DAFT_LONGITUDE=-84</argument>
339 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
340
341 <argument>-XX:NewRatio=3</argument>
342 <argument>-XX:+PrintGCTimeStamps</argument>
343 <argument>-XX:+PrintGCDetails</argument>
344 <argument>-Xloggc:gc.log</argument>
345 <argument>-classpath</argument>
346
347 <classpath>
348
349 </classpath>
350 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
351
352 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
353 </arguments>
354 </configuration>
355 </plugin>
356
357 <plugin>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-jar-plugin</artifactId>
360 <configuration>
361 <excludes>
362 <exclude>*.properties</exclude>
363 </excludes>
364 </configuration>
365 <version>2.3.1</version>
366 </plugin>
sg481na2ac6782017-09-18 16:35:50 -0400367
sg481nbd890c52017-08-28 12:11:35 -0400368
369 <plugin>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-javadoc-plugin</artifactId>
sg481na9d21082017-09-23 14:26:06 +0000372 <version>2.10.4</version>
sg481nbd890c52017-08-28 12:11:35 -0400373 <configuration>
374 <failOnError>false</failOnError>
375 </configuration>
376 <executions>
377 <execution>
378 <id>attach-javadocs</id>
379 <goals>
380 <goal>jar</goal>
381 </goals>
382 </execution>
383 </executions>
384 </plugin>
385
386
387 <plugin>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-source-plugin</artifactId>
390 <version>2.2.1</version>
391 <executions>
392 <execution>
393 <id>attach-sources</id>
394 <goals>
395 <goal>jar-no-fork</goal>
396 </goals>
397 </execution>
398 </executions>
399 </plugin>
400
401<plugin>
402 <groupId>org.sonatype.plugins</groupId>
403 <artifactId>nexus-staging-maven-plugin</artifactId>
404 <version>1.6.7</version>
405 <extensions>true</extensions>
406 <configuration>
407 <nexusUrl>${nexusproxy}</nexusUrl>
408 <stagingProfileId>176c31dfe190a</stagingProfileId>
409 <serverId>ecomp-staging</serverId>
410 </configuration>
sg481n40cd3562017-09-01 13:12:31 -0400411 </plugin>
412 <plugin>
413 <groupId>org.jacoco</groupId>
414 <artifactId>jacoco-maven-plugin</artifactId>
415 <version>0.7.7.201606060606</version>
416 <configuration>
417 <dumpOnExit>true</dumpOnExit>
418 <includes>
419 <include>org.onap.aaf.*</include>
420 </includes>
421 </configuration>
422 <executions>
423 <execution>
424 <id>pre-unit-test</id>
425 <goals>
426 <goal>prepare-agent</goal>
427 </goals>
428 <configuration>
429 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
430 <!-- <append>true</append> -->
431 </configuration>
432 </execution>
433 <execution>
434 <id>pre-integration-test</id>
435 <phase>pre-integration-test</phase>
436 <goals>
437 <goal>prepare-agent</goal>
438 </goals>
439 <configuration>
440 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
441 <!-- <append>true</append> -->
442 </configuration>
443 </execution>
444 <execution>
445 <goals>
446 <goal>merge</goal>
447 </goals>
448 <phase>post-integration-test</phase>
449 <configuration>
450 <fileSets>
451 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
452 <directory>${project.build.directory}/coverage-reports</directory>
453 <includes>
454 <include>*.exec</include>
455 </includes>
456 </fileSet>
457 </fileSets>
458 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
459 </configuration>
460 </execution>
461 </executions>
462 </plugin>
sg481nbd890c52017-08-28 12:11:35 -0400463
464 </plugins>
465
466 </build>
sg481n2bc35382017-09-23 15:50:15 +0000467 <profiles>
468 <profile>
469 <id>docker</id>
470 <properties>
471 <skip.staging.artifacts>true</skip.staging.artifacts>
472 <skip.docker.build>false</skip.docker.build>
473 <skip.docker.tag>false</skip.docker.tag>
474 <skip.docker.push>false</skip.docker.push>
475 </properties>
476 </profile>
477 </profiles>
478
sg481nbd890c52017-08-28 12:11:35 -0400479 <distributionManagement>
480 <repository>
481 <id>ecomp-releases</id>
482 <name>AAF Release Repository</name>
483 <url>${nexusproxy}${releaseNexusPath}</url>
484 </repository>
485 <snapshotRepository>
486 <id>ecomp-snapshots</id>
487 <name>AAF Snapshot Repository</name>
488 <url>${nexusproxy}${snapshotNexusPath}</url>
489 </snapshotRepository>
490 <site>
491 <id>ecomp-site</id>
492 <url>dav:${nexusproxy}${sitePath}</url>
493 </site>
494 </distributionManagement>
sg481na9d21082017-09-23 14:26:06 +0000495
sg481nbd890c52017-08-28 12:11:35 -0400496</project>