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