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