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