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