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