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