blob: f850e5d556c5490e5d148a0abe27a8da7a9e0145 [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>
30 <version>1.0.0-SNAPSHOT</version>
31 <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>
56 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
sg481ndc5fcf12017-09-15 13:06:30 -040057 <dockerLocation>${basedir}/target/</dockerLocation>
sg481na9f4fe12017-09-16 23:16:53 -040058 <docker.registry>nexus3.onap.org</docker.registry>
sg481ndc5fcf12017-09-15 13:06:30 -040059 <distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>
sg481n40cd3562017-09-01 13:12:31 -040060 <sonar.language>java</sonar.language>
61 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
62 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
63 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
64 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
65 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
66 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sg481nbd890c52017-08-28 12:11:35 -040067 <nexusproxy>https://nexus.onap.org</nexusproxy>
68 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
69 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
70 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
71 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
72 </properties>
73
74
75 <dependencies>
76 <dependency>
77 <groupId>org.onap.aaf.authz</groupId>
78 <artifactId>authz-client</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040079 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040080 </dependency>
sg481ndc5fcf12017-09-15 13:06:30 -040081
82 <dependency>
83 <groupId>org.onap.aaf.authz</groupId>
84 <artifactId>authz-cmd</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040085 <version>${project.version}</version>
sg481ndc5fcf12017-09-15 13:06:30 -040086 </dependency>
sg481nbd890c52017-08-28 12:11:35 -040087 <dependency>
88 <groupId>org.onap.aaf.authz</groupId>
89 <artifactId>authz-core</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -040090 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -040091 <exclusions>
92 <exclusion>
93 <groupId>javax.servlet</groupId>
94 <artifactId>servlet-api</artifactId>
95 </exclusion>
96 </exclusions>
97 </dependency>
98
99 <dependency>
100 <groupId>org.onap.aaf.authz</groupId>
101 <artifactId>authz-cass</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400102 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400103 </dependency>
104
105 <dependency>
106 <groupId>org.onap.aaf.authz</groupId>
107 <artifactId>authz-defOrg</artifactId>
108 <version>${project.version}</version>
109 </dependency>
110
111
112
113 <dependency >
114 <groupId>org.onap.aaf.inno</groupId>
115 <artifactId>env</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400116 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400117 </dependency>
118
119
120 <dependency>
121 <groupId>org.onap.aaf.cadi</groupId>
122 <artifactId>cadi-core</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400123 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400124 </dependency>
125
126 <dependency>
127 <groupId>com.att.aft</groupId>
128 <artifactId>dme2</artifactId>
129 </dependency>
130
131 <dependency>
132 <groupId>org.onap.aaf.inno</groupId>
133 <artifactId>rosetta</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400134 <version>${project.version}</version>
sg481nbd890c52017-08-28 12:11:35 -0400135 </dependency>
136 <dependency>
137 <groupId>org.onap.aaf.cadi</groupId>
138 <artifactId>cadi-aaf</artifactId>
sg481n5c30b7f2017-09-17 11:37:00 -0400139 <version>${project.version}</version>
sg481ndc5fcf12017-09-15 13:06:30 -0400140 </dependency>
sg481nbd890c52017-08-28 12:11:35 -0400141 </dependencies>
142
143 <build>
144 <plugins>
sg481ndc5fcf12017-09-15 13:06:30 -0400145 <plugin>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-resources-plugin</artifactId>
148 <version>2.7</version>
149 <executions>
150 <execution>
151 <id>copy-docker-file</id>
152 <phase>package</phase>
153 <goals>
154 <goal>copy-resources</goal>
155 </goals>
156 <configuration>
157 <outputDirectory>${dockerLocation}</outputDirectory>
158 <overwrite>true</overwrite>
159 <resources>
160 <resource>
161 <directory>${basedir}/src/main/resources/docker</directory>
162 <filtering>true</filtering>
163 <includes>
164 <include>**/*</include>
165 </includes>
166 </resource>
167 </resources>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 <plugin>
173 <groupId>com.spotify</groupId>
174 <artifactId>docker-maven-plugin</artifactId>
175 <version>0.4.11</version>
176 <configuration>
177 <imageName>onap/aaf/authz-service</imageName>
178 <dockerDirectory>${dockerLocation}</dockerDirectory>
179 <serverId>docker-hub</serverId>
180 <registryUrl>https://${docker.registry}</registryUrl>
181 <imageTags>
182 <imageTag>${project.version}</imageTag>
183 <imageTag>latest</imageTag>
184 </imageTags>
185 <resources>
186 <resource>
187 <targetPath>/</targetPath>
188 <directory>/${basedir}/target/opt</directory>
189 <filtering>true</filtering>
190 <includes>
191 <include>**/*</include>
192 </includes>
193 </resource>
194 </resources>
195 <forceTags>true</forceTags>
196 </configuration>
197 </plugin>
198 <plugin>
199 <artifactId>maven-resources-plugin</artifactId>
200 <version>2.7</version>
201 <executions>
202 <execution>
203 <id>copy-resources-1</id>
204 <phase>validate</phase>
205 <goals>
206 <goal>copy-resources</goal>
207 </goals>
208 <configuration>
209 <outputDirectory>${project.build.directory}/opt/dme2reg/</outputDirectory>
210 <resources>
211 <resource>
212 <directory>${project.basedir}/src/main/resources/dme2reg/</directory>
213 <includes>
214 <include>**/*.txt</include>
215 </includes>
216 </resource>
217 </resources>
218 </configuration>
219 </execution>
220 <execution>
221 <id>copy-resources-2</id>
222 <phase>validate</phase>
223 <goals>
224 <goal>copy-resources</goal>
225 </goals>
226 <configuration>
227 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
228 <resources>
229 <resource>
230 <directory>${project.basedir}/src/main/resources/etc</directory>
231 <includes>
232 <include>**/**</include>
233 </includes>
234 </resource>
235 </resources>
236 </configuration>
237 </execution>
238
239 <execution>
240 <id>copy-resources-3</id>
241 <phase>validate</phase>
242 <goals>
243 <goal>copy-resources</goal>
244 </goals>
245 <configuration>
246 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
247 <resources>
248 <resource>
249 <directory>${project.basedir}/../authz-cmd/target</directory>
250 <includes>
251 <include>**/authz-cmd-1.0.0-SNAPSHOT-jar-with-dependencies.jar</include>
252 </includes>
253 </resource>
254 </resources>
255 </configuration>
256 </execution>
257 <execution>
258 <id>copy-resources-4</id>
259 <phase>validate</phase>
260 <goals>
261 <goal>copy-resources</goal>
262 </goals>
263 <configuration>
264 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}</outputDirectory>
265 <resources>
266 <resource>
267 <directory>${project.basedir}/../authz-cmd</directory>
268 <includes>
269 <include>**/aafcli.sh</include>
270 </includes>
271 </resource>
272 </resources>
273 </configuration>
274 </execution>
275 <execution>
276 <id>copy-resources-5</id>
277 <phase>validate</phase>
278 <goals>
279 <goal>copy-resources</goal>
280 </goals>
281 <configuration>
282 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/etc</outputDirectory>
283 <resources>
284 <resource>
285 <directory>${project.basedir}/../authz-cmd/etc</directory>
286 <includes>
287 <include>**/**</include>
288 </includes>
289 </resource>
290 </resources>
291 </configuration>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-dependency-plugin</artifactId>
298 <version>2.10</version>
299 <executions>
300 <execution>
301 <id>copy-dependencies</id>
302 <phase>package</phase>
303 <goals>
304 <goal>copy-dependencies</goal>
305 </goals>
306 <configuration>
307 <outputDirectory>${project.build.directory}/opt/app/aaf/authz-service/${project.version}/lib</outputDirectory>
308 <overWriteReleases>false</overWriteReleases>
309 <overWriteSnapshots>false</overWriteSnapshots>
310 <overWriteIfNewer>true</overWriteIfNewer>
311 </configuration>
312 </execution>
313 </executions>
314 </plugin>
315
sg481nbd890c52017-08-28 12:11:35 -0400316 <plugin>
317 <groupId>org.codehaus.mojo</groupId>
318 <artifactId>exec-maven-plugin</artifactId>
319 <version>1.5.0</version>
320 <configuration>
321 <executable>java</executable>
322 <arguments>
323 <argument>-DAFT_LATITUDE=33</argument>
324 <argument>-DAFT_LONGITUDE=-84</argument>
325 <argument>-DAFT_ENVIRONMENT=AFTUAT</argument>
326
327 <argument>-XX:NewRatio=3</argument>
328 <argument>-XX:+PrintGCTimeStamps</argument>
329 <argument>-XX:+PrintGCDetails</argument>
330 <argument>-Xloggc:gc.log</argument>
331 <argument>-classpath</argument>
332
333 <classpath>
334
335 </classpath>
336 <argument>org.onap.aaf.authz.service.AuthAPI</argument>
337
338 <argument>service=org.onap.aaf.authz.AuthorizationService/version=2.0/envContext=DEV/routeOffer=Dev</argument>
339 </arguments>
340 </configuration>
341 </plugin>
342
343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-jar-plugin</artifactId>
346 <configuration>
347 <excludes>
348 <exclude>*.properties</exclude>
349 </excludes>
350 </configuration>
351 <version>2.3.1</version>
352 </plugin>
353
354 <plugin>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-deploy-plugin</artifactId>
357 <configuration>
358 <skip>true</skip>
359 </configuration>
360 </plugin>
361
362 <plugin>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-javadoc-plugin</artifactId>
365 <configuration>
366 <failOnError>false</failOnError>
367 </configuration>
368 <executions>
369 <execution>
370 <id>attach-javadocs</id>
371 <goals>
372 <goal>jar</goal>
373 </goals>
374 </execution>
375 </executions>
376 </plugin>
377
378
379 <plugin>
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-source-plugin</artifactId>
382 <version>2.2.1</version>
383 <executions>
384 <execution>
385 <id>attach-sources</id>
386 <goals>
387 <goal>jar-no-fork</goal>
388 </goals>
389 </execution>
390 </executions>
391 </plugin>
392
393<plugin>
394 <groupId>org.sonatype.plugins</groupId>
395 <artifactId>nexus-staging-maven-plugin</artifactId>
396 <version>1.6.7</version>
397 <extensions>true</extensions>
398 <configuration>
399 <nexusUrl>${nexusproxy}</nexusUrl>
400 <stagingProfileId>176c31dfe190a</stagingProfileId>
401 <serverId>ecomp-staging</serverId>
402 </configuration>
sg481n40cd3562017-09-01 13:12:31 -0400403 </plugin>
404 <plugin>
405 <groupId>org.jacoco</groupId>
406 <artifactId>jacoco-maven-plugin</artifactId>
407 <version>0.7.7.201606060606</version>
408 <configuration>
409 <dumpOnExit>true</dumpOnExit>
410 <includes>
411 <include>org.onap.aaf.*</include>
412 </includes>
413 </configuration>
414 <executions>
415 <execution>
416 <id>pre-unit-test</id>
417 <goals>
418 <goal>prepare-agent</goal>
419 </goals>
420 <configuration>
421 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
422 <!-- <append>true</append> -->
423 </configuration>
424 </execution>
425 <execution>
426 <id>pre-integration-test</id>
427 <phase>pre-integration-test</phase>
428 <goals>
429 <goal>prepare-agent</goal>
430 </goals>
431 <configuration>
432 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
433 <!-- <append>true</append> -->
434 </configuration>
435 </execution>
436 <execution>
437 <goals>
438 <goal>merge</goal>
439 </goals>
440 <phase>post-integration-test</phase>
441 <configuration>
442 <fileSets>
443 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
444 <directory>${project.build.directory}/coverage-reports</directory>
445 <includes>
446 <include>*.exec</include>
447 </includes>
448 </fileSet>
449 </fileSets>
450 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
451 </configuration>
452 </execution>
453 </executions>
454 </plugin>
sg481nbd890c52017-08-28 12:11:35 -0400455
456 </plugins>
457
458 </build>
459
460 <distributionManagement>
461 <repository>
462 <id>ecomp-releases</id>
463 <name>AAF Release Repository</name>
464 <url>${nexusproxy}${releaseNexusPath}</url>
465 </repository>
466 <snapshotRepository>
467 <id>ecomp-snapshots</id>
468 <name>AAF Snapshot Repository</name>
469 <url>${nexusproxy}${snapshotNexusPath}</url>
470 </snapshotRepository>
471 <site>
472 <id>ecomp-site</id>
473 <url>dav:${nexusproxy}${sitePath}</url>
474 </site>
475 </distributionManagement>
476<pluginRepositories>
477 <pluginRepository>
478 <id>onap-plugin-snapshots</id>
479 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
480 </pluginRepository>
481 </pluginRepositories>
482
483 <repositories>
484 <repository>
485 <id>central</id>
486 <name>Maven 2 repository 2</name>
487 <url>http://repo2.maven.org/maven2/</url>
488 </repository>
489 <repository>
490 <id>onap-jar-snapshots</id>
491 <url>https://nexus.onap.org/content/repositories/snapshots</url>
492 </repository>
493 <repository>
494 <id>spring-repo</id>
495 <name>Spring repo</name>
496 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
497 </repository>
498 <repository>
499 <id>repository.jboss.org-public</id>
500 <name>JBoss.org Maven repository</name>
501 <url>https://repository.jboss.org/nexus/content/groups/public</url>
502 </repository>
503 </repositories>
504</project>