Pull in all pom changes, merge, and review
[aaf/authz.git] / auth / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============LICENSE_START====================================================
4  * org.onap.aaf
5  * ===========================================================================
6  * Copyright (c) 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 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25         <modelVersion>4.0.0</modelVersion>
26         <groupId>org.onap.aaf.authz.auth</groupId>
27         <artifactId>parent</artifactId>
28         <version>2.1.0-SNAPSHOT</version>
29         <name>AAF Auth Parent</name>
30         <packaging>pom</packaging>
31         
32         <parent>             
33         <groupId>org.onap.oparent</groupId>
34         <artifactId>oparent</artifactId>
35         <version>1.1.0</version>
36     </parent>
37         <properties>
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39                 <project.interfaceVersion>2.10-SNAPSHOT</project.interfaceVersion>
40                 <project.miscVersion>2.1.0-SNAPSHOT</project.miscVersion>
41                 <project.cadiVersion>2.1.0-SNAPSHOT</project.cadiVersion>
42                 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
43                 <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
44                 <powermock.version>1.5.1</powermock.version>
45                 <project.conf_dir>/opt/app/osaaf/etc</project.conf_dir>
46                 <!--  SONAR  -->
47                  <jacoco.version>0.7.7.201606060606</jacoco.version>
48             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
49             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
50             <!-- Default Sonar configuration -->
51             <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
52             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
53             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
54             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
55                 <nexusproxy>https://nexus.onap.org</nexusproxy>
56                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
57                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
58                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
59                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
60         </properties>
61
62         <developers>
63                 <developer>
64                         <name>Jonathan Gathman</name>
65                         <email>jonathan.gathman@att.com</email>
66                         <organization>ATT</organization>
67                         <roles>
68                                 <role>Architect</role>
69                                 <role>Lead Developer</role>
70                         </roles>
71                 </developer>
72                 <developer>
73                         <name>Gabe Maurer</name>
74                         <email>gabe.maurer@att.com</email>
75                         <organization>ATT</organization>
76                         <roles>
77                                 <role>Developer</role>
78                         </roles>
79                 </developer>
80                 <developer>
81                         <name>Ian Howell</name>
82                         <email>ian.howell@att.com</email>
83                         <organization>ATT</organization>
84                         <roles>
85                                 <role>Developer</role>
86                         </roles>
87                 </developer>
88                 <developer>
89                         <name>Sai Gandham</name>
90                         <email>sai.gandham@att.com</email>
91                         <organization>ATT</organization>
92                         <roles>
93                                 <role>Developer</role>
94                         </roles>
95                 </developer>
96         </developers>
97
98         <build>
99                 <pluginManagement>
100                         <plugins>
101                                 <plugin>
102                                         <groupId>org.apache.maven.plugins</groupId>
103                                         <artifactId>maven-compiler-plugin</artifactId>
104                                         <version>2.3.2</version>
105                                         <configuration>
106                                                 <source>1.8</source>
107                                                 <target>1.8</target>
108                                         </configuration>
109                                 </plugin>
110                                 <plugin>
111                                         <groupId>org.apache.maven.plugins</groupId>
112                                         <artifactId>maven-deploy-plugin</artifactId>
113                                         <version>2.6</version>
114                                         <configuration>
115                                                 <skip>false</skip>
116                                         </configuration>
117                                 </plugin>
118
119                                 <plugin>
120                                         <groupId>org.apache.maven.plugins</groupId>
121                                         <artifactId>maven-surefire-plugin</artifactId>
122                                         <version>2.17</version>
123                                         <configuration>
124                                                 <skipTests>false</skipTests>
125
126                                                 <includes>
127                                                         <include>**/JU*.java</include>
128                                                 </includes>
129                                                 <excludes>
130                                                 </excludes>
131
132                                         </configuration>
133                                 </plugin>
134
135                                 <plugin>
136                                         <groupId>org.apache.maven.plugins</groupId>
137                                         <artifactId>maven-failsafe-plugin</artifactId>
138                                         <version>2.17</version>
139                                         <configuration>
140                                                 <skipTests>flase</skipTests>
141                                         </configuration>
142                                         <executions>
143                                                 <execution>
144                                                         <id>integration-test</id>
145                                                         <goals>
146                                                                 <goal>integration-test</goal>
147                                                                 <goal>verify</goal>
148                                                         </goals>
149                                                 </execution>
150                                         </executions>
151                                 </plugin>
152                                 
153                                 <!--  Builds O/S Command line ready jars and scripts, ready to run/zip -->
154                                 <plugin>
155                                         <groupId>org.codehaus.mojo</groupId>
156                                         <artifactId>appassembler-maven-plugin</artifactId>
157                                         <version>1.10</version>
158                                         <executions>
159                                                 <execution>
160                                                         <goals>
161                                                                 <goal>assemble</goal>
162                                                         </goals>
163                                                         <phase>install</phase>
164                                                 </execution>
165                                         </executions>
166                                         <configuration>
167                                                 <programs/> <!-- this set in projects that have programs -->
168                                                 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
169                                                 <copyConfigurationDirectory>false</copyConfigurationDirectory>
170                                                 <configurationDirectory>etc</configurationDirectory>
171                                                 <repositoryName>lib</repositoryName>
172                                                 <repositoryLayout>flat</repositoryLayout>
173                                         </configuration>
174                                 </plugin>
175                                 
176                                 <!-- Build Docker Image -->
177                                 <plugin>
178                                         <groupId>com.spotify</groupId>
179                                         <artifactId>docker-maven-plugin</artifactId>
180                                         <version>1.0.0</version>
181                                         <configuration>
182                                                 <imageName>onap/osaaf/${project.artifactId}</imageName>
183                                                 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
184                                                 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
185                                                 <imageTags>
186                                                         <imageTag>latest</imageTag>
187                                                         <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
188                                                         <imageTag>${project.docker.latesttag.version}</imageTag>
189                                                 </imageTags>
190                                                 <forceTags>true</forceTags>
191                                                 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory> 
192                                                         <filtering>true</filtering> <includes> <include>**/**</include> </includes> 
193                                                         </resource> </resources> -->
194                                                 <resources>
195                                                         <resource>
196                                                                 <targetPath>/</targetPath>
197                                                                 <directory>${project.build.directory}/opt</directory>
198                                                                 <include>${project.build.finalName}.jar</include>
199                                                         </resource>
200                                                         <resource>
201                                                                 <targetPath>/</targetPath>
202                                                                 <directory>${project.build.directory}</directory>
203                                                                 <include>**/**</include>
204                                                         </resource>
205                                                 </resources>
206                                         </configuration>
207                                         <executions>
208                                                 <execution>
209                                                         <id>build-image</id>
210                                                         <phase>package</phase>
211                                                         <goals>
212                                                                 <goal>build</goal>
213                                                         </goals>
214                                                         <configuration>
215                                                                 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
216                                                         </configuration>
217                                                 </execution>
218                                 
219                                                 <execution>
220                                                         <id>tag-image-project-version</id>
221                                                         <phase>package</phase>
222                                                         <goals>
223                                                                 <goal>tag</goal>
224                                                         </goals>
225                                                         <configuration>
226                                                                 <image>onap/osaaf/${project.artifactId}</image>
227                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
228                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
229                                                         </configuration>
230                                                 </execution>
231                                 
232                                                 <execution>
233                                                         <id>tag-image-latest</id>
234                                                         <phase>package</phase>
235                                                         <goals>
236                                                                 <goal>tag</goal>
237                                                         </goals>
238                                                         <configuration>
239                                                                 <image>onap/aaf/authz-service</image>
240                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
241                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
242                                                         </configuration>
243                                                 </execution>
244                                 
245                                                 <execution>
246                                                         <id>push-image-latest</id>
247                                                         <phase>deploy</phase>
248                                                         <goals>
249                                                                 <goal>push</goal>
250                                                         </goals>
251                                                         <configuration>
252                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
253                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
254                                                         </configuration>
255                                                 </execution>
256                                 
257                                                 <execution>
258                                                         <id>push-image</id>
259                                                         <phase>deploy</phase>
260                                                         <goals>
261                                                                 <goal>push</goal>
262                                                         </goals>
263                                                         <configuration>
264                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
265                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
266                                                         </configuration>
267                                                 </execution>
268                                         </executions>
269                                 </plugin>
270                                 <plugin>
271                                 <groupId>org.sonatype.plugins</groupId>
272                                 <artifactId>nexus-staging-maven-plugin</artifactId>
273                                 <version>1.6.7</version>
274                                 <extensions>true</extensions>
275                                 <configuration>
276                                         <nexusUrl>${nexusproxy}</nexusUrl>
277                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
278                                         <serverId>ecomp-staging</serverId>
279                                 </configuration>
280                         </plugin>               
281                         <plugin>
282                                 <groupId>org.jacoco</groupId>
283                                 <artifactId>jacoco-maven-plugin</artifactId>
284                                 <version>0.7.7.201606060606</version>
285                                 <configuration>
286                                         <dumpOnExit>true</dumpOnExit>
287                                         <includes>
288                                                 <include>org.onap.aaf.*</include>
289                                         </includes>
290                                 </configuration>
291                                 <executions>
292                                         <execution>
293                                                 <id>pre-unit-test</id>
294                                                 <goals>
295                                                         <goal>prepare-agent</goal>
296                                                 </goals>
297                                                 <configuration>
298                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
299                                                         <!-- <append>true</append> -->
300                                                 </configuration>
301                                         </execution>
302                                         <execution>
303                                                 <id>pre-integration-test</id>
304                                                 <phase>pre-integration-test</phase>
305                                                 <goals>
306                                                         <goal>prepare-agent</goal>
307                                                 </goals>
308                                                 <configuration>
309                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
310                                                         <!-- <append>true</append> -->
311                                                 </configuration>
312                                         </execution>
313                                         <execution>
314                         <goals>
315                             <goal>merge</goal>
316                         </goals>
317                         <phase>post-integration-test</phase>
318                         <configuration>
319                             <fileSets>
320                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
321                                     <directory>${project.build.directory}/coverage-reports</directory>
322                                     <includes>
323                                         <include>*.exec</include>
324                                     </includes>
325                                 </fileSet>
326                             </fileSets>
327                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
328                         </configuration>
329                     </execution>
330                                 </executions>
331                         </plugin>
332                         </plugins>
333                 </pluginManagement>
334         </build>
335
336         <dependencies>
337                 <dependency>
338                         <groupId>org.mockito</groupId>
339                         <artifactId>mockito-all</artifactId>
340                         <version>1.9.5</version>
341                         <scope>test</scope>
342                 </dependency>
343                 <dependency>
344                         <groupId>org.powermock</groupId>
345                         <artifactId>powermock-module-junit4</artifactId>
346                         <version>${powermock.version}</version>
347                         <scope>test</scope>
348                 </dependency>
349                 <dependency>
350                         <groupId>org.powermock</groupId>
351                         <artifactId>powermock-api-mockito</artifactId>
352                         <version>${powermock.version}</version>
353                         <scope>test</scope>
354                 </dependency>
355                 <dependency>
356                         <groupId>junit</groupId>
357                         <artifactId>junit</artifactId>
358                         <version>4.10</version>
359                         <scope>test</scope>
360                 </dependency>
361
362         </dependencies>
363
364         <modules>
365                 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
366                 <module>auth-core</module>
367                 <module>auth-cass</module>
368                 <module>auth-deforg</module>
369
370                 <module>auth-service</module>
371                 <module>auth-cmd</module>
372                 <module>auth-batch</module>
373
374                 <module>auth-gui</module>
375                 <module>auth-locate</module>
376                 <module>auth-oauth</module>
377                 <module>auth-certman</module>
378                 <module>auth-fs</module>
379                 <module>auth-hello</module>
380         </modules>
381
382         <dependencyManagement>
383                 <dependencies>
384                         <dependency>
385                                 <groupId>org.onap.aaf.authz.misc</groupId>
386                                 <artifactId>aaf-misc-env</artifactId>
387                                 <version>${project.miscVersion}</version>
388                         </dependency>
389
390                         <dependency>
391                                 <groupId>org.onap.aaf.authz.misc</groupId>
392                                 <artifactId>aaf-misc-log4j</artifactId>
393                                 <version>${project.miscVersion}</version>
394                         </dependency>
395
396                         <dependency>
397                                 <groupId>org.onap.aaf.authz.misc</groupId>
398                                 <artifactId>aaf-misc-rosetta</artifactId>
399                                 <version>${project.miscVersion}</version>
400                         </dependency>
401
402                         <dependency>
403                                 <groupId>org.onap.aaf.authz.misc</groupId>
404                                 <artifactId>aaf-misc-xgen</artifactId>
405                                 <version>${project.miscVersion}</version>
406                         </dependency>
407
408                         <dependency>
409                                 <groupId>org.onap.aaf.authz.cadi</groupId>
410                                 <artifactId>aaf-cadi-core</artifactId>
411                                 <version>${project.cadiVersion}</version>
412                         </dependency>
413
414                         <dependency>
415                                 <groupId>org.onap.aaf.authz.cadi</groupId>
416                                 <artifactId>aaf-cadi-client</artifactId>
417                                 <version>${project.cadiVersion}</version>
418                         </dependency>
419
420                         <dependency>
421                                 <groupId>org.onap.aaf.authz.cadi</groupId>
422                                 <artifactId>aaf-cadi-aaf</artifactId>
423                                 <version>${project.cadiVersion}</version>
424                                 <exclusions>
425                                         <exclusion>
426                                                 <groupId>org.apache.cassandra</groupId>
427                                                 <artifactId>cassandra-all</artifactId>
428                                         </exclusion>
429                                 </exclusions>
430                         </dependency>
431
432                         <dependency>
433                                 <groupId>org.onap.aaf.authz.auth</groupId>
434                                 <artifactId>aaf-auth-client</artifactId>
435                                 <version>${project.interfaceVersion}</version>
436                         </dependency>
437
438                         <dependency>
439                                 <groupId>org.onap.aaf.authz.auth</groupId>
440                                 <artifactId>aaf-auth-core</artifactId>
441                                 <version>${project.version}</version>
442                         </dependency>
443
444                         <dependency>
445                                 <groupId>org.onap.aaf.authz.auth</groupId>
446                                 <artifactId>aaf-auth-cass</artifactId>
447                                 <version>${project.version}</version>
448                         </dependency>
449
450                         <dependency>
451                                 <groupId>org.onap.aaf.authz.auth</groupId>
452                                 <artifactId>aaf-auth-cmd</artifactId>
453                                 <version>${project.version}</version>
454                         </dependency>
455
456                         <dependency>
457                                 <groupId>org.onap.aaf.authz.auth</groupId>
458                                 <artifactId>aaf-auth-oauth</artifactId>
459                                 <version>${project.version}</version>
460                         </dependency>
461
462                         <dependency>
463                                 <groupId>org.onap.aaf.authz.auth</groupId>
464                                 <artifactId>aaf-auth-deforg</artifactId>
465                                 <version>${project.version}</version>
466                         </dependency>
467
468                         <dependency>
469                                 <groupId>javax.servlet</groupId>
470                                 <artifactId>servlet-api</artifactId>
471                                 <version>2.5</version>
472                         </dependency>
473
474                         <dependency>
475                                 <groupId>org.eclipse.jetty</groupId>
476                                 <artifactId>jetty-servlet</artifactId>
477                                 <version>${project.jettyVersion}</version>
478                         </dependency>
479
480                         <dependency>
481                                 <groupId>org.eclipse.jetty</groupId>
482                                 <artifactId>jetty-server</artifactId>
483                                 <version>${project.jettyVersion}</version>
484                         </dependency>
485
486                         <dependency>
487                                 <groupId>com.datastax.cassandra</groupId>
488                                 <artifactId>cassandra-all</artifactId>
489                                 <version>3.3.0</version>
490                                 <exclusions>
491                                         <exclusion>
492                                                 <groupId>org.slf4j</groupId>
493                                                 <artifactId>slf4j-log4j12</artifactId>
494                                         </exclusion>
495                                         <exclusion>
496                                                 <groupId>log4j</groupId>
497                                                 <artifactId>log4j</artifactId>
498                                         </exclusion>
499                                 </exclusions>
500                         </dependency>
501
502                         <dependency>
503                                 <groupId>com.datastax.cassandra</groupId>
504                                 <artifactId>cassandra-driver-core</artifactId>
505                                 <version>3.3.0</version>
506                                 <exclusions>
507                                         <exclusion>
508                                                 <groupId>org.slf4j</groupId>
509                                                 <artifactId>slf4j-log4j12</artifactId>
510                                         </exclusion>
511                                         <exclusion>
512                                                 <groupId>log4j</groupId>
513                                                 <artifactId>log4j</artifactId>
514                                         </exclusion>
515                                 </exclusions>
516                         </dependency>
517
518                         <dependency>
519                                 <groupId>org.slf4j</groupId>
520                                 <artifactId>slf4j-log4j12</artifactId>
521                                 <version>1.7.5</version>
522                         </dependency>
523
524                         <dependency>
525                                 <groupId>javax.mail</groupId>
526                                 <artifactId>mail</artifactId>
527                                 <version>1.4.5</version>
528                         </dependency>
529                 </dependencies>
530         </dependencyManagement>
531
532
533         
534
535 </project>