Release docker image of AAF to onap nexus
[aaf/authz.git] / pom.xml
1 <!--
2   ============LICENSE_START====================================================
3   * org.onap.aaf
4   * ===========================================================================
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6   * ===========================================================================
7   * Licensed under the Apache License, Version 2.0 (the "License");
8   * you may not use this file except in compliance with the License.
9   * You may obtain a copy of the License at
10   * 
11    *      http://www.apache.org/licenses/LICENSE-2.0
12   * 
13    * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * ============LICENSE_END====================================================
19   *
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21   *
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25
26         <modelVersion>4.0.0</modelVersion>
27         <groupId>org.onap.aaf.authz</groupId>
28         <artifactId>parent</artifactId>
29         <version>1.0.0-SNAPSHOT</version>
30         <name>aaf-authz</name>
31         <packaging>pom</packaging>
32         <url>https://github.com/att/AAF</url>
33         <licenses>
34                 <license>
35                 <name>BSD License</name>
36                 <url> </url>
37                 </license>
38         </licenses>
39         <developers>
40                 <developer>
41                 <name>Jonathan Gathman</name>
42                 <email></email>
43         <organization>ATT</organization>
44         <organizationUrl></organizationUrl>
45                 </developer>
46         </developers>
47         <description>This module is used to organize all of the common SWM (Software Manager) 
48                 artifacts and capabilities that are inherited by all modules that are SWM
49                 packaged.  This prevents duplication of these common artifacts, plugins, and 
50                 other settings and provides a single place to support this configuration.
51         </description>
52         <properties>
53                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54                 <skipTests>false</skipTests>
55                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
56                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
57                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
58                 <project.dme2Version>3.1.200</project.dme2Version>
59                 <sonar.language>java</sonar.language>
60                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
61                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
62                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
63                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
64                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
65                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
66                 <nexusproxy>https://nexus.onap.org</nexusproxy>
67                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
68                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
69                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
70                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
71         </properties>
72
73         <build>
74                 <pluginManagement>
75                 <plugins>
76                           <plugin>
77                                         <groupId>org.apache.maven.plugins</groupId>
78                                         <artifactId>maven-compiler-plugin</artifactId>
79                                         <version>2.3.2</version> 
80                                         <configuration>
81                                                 <source>1.8</source>
82                                                 <target>1.8</target>
83                                         </configuration>
84                                 </plugin>
85                                 <plugin>
86                                         <groupId>org.apache.maven.plugins</groupId>
87                                         <artifactId>maven-deploy-plugin</artifactId>
88                                         <version>2.6</version>
89                                                 <configuration>
90                                                         <skip>false</skip>
91                                                 </configuration>        
92                                 </plugin>
93         
94                                 <plugin>
95                                   <groupId>org.apache.maven.plugins</groupId>
96                                   <artifactId>maven-surefire-plugin</artifactId>
97                                   <version>2.17</version>
98                                   <configuration>
99                                         <skipTests>${skipTests}</skipTests>
100                                         <includes>
101                                           <include>**/JU*.java</include>
102                                         </includes>
103                                         <excludes>
104                                         <exclude>**/JU_DataFile.java</exclude>
105                                         <exclude>**/JU_ArtiDAO.java</exclude>
106                                         <exclude>**/JU_CertDAO.java</exclude>
107                                         <exclude>**/JU_FastCalling.java</exclude>
108                                         <exclude>**/JU_NsDAO.java</exclude>
109                                           <!-- <exclude>**/authz-cass/**</exclude> -->
110                                           <!-- <exclude>**/JU_UseCase1.java</exclude> -->
111                                           <exclude>**/JU_RoleDAO.java</exclude>
112                                           <exclude>**/JU_PermDAO.java</exclude>
113                                            <exclude>**/JU_Question.java</exclude> 
114                                           <!-- <exclude>**/JU_NS.java</exclude> -->
115                                           <exclude>**/JU_HistoryDAO.java</exclude>                                
116                                           <exclude>**/JU_DelegateDAO.java</exclude>
117                                           <exclude>**/JU_CredDAO.java</exclude>
118                                           <exclude>**/JU_CacheInfoDAO.java</exclude>
119                                           <exclude>**/JU_ApprovalDAO.java</exclude>
120                                           <exclude>**/JU_Define.java</exclude>
121                                           <exclude>**/JU_AuthzTransFilter.java</exclude>
122                                           <exclude>**/JU_CachingFileAccess.java</exclude>
123                                           <!-- <exclude>**/AbsServiceTest.java</exclude> -->
124                                           <exclude>**/JU_DefaultOrg.java</exclude>
125                                           <!-- <exclude>**/JU_Perm_2_0*.java</exclude> -->
126                                           <!-- <exclude>**/JU_Role_2_0*.java</exclude>                             -->
127                                         </excludes>
128         
129                                   </configuration>
130                                 </plugin>
131         
132                                 <plugin>
133                                         <groupId>org.codehaus.mojo</groupId>
134                                         <artifactId>jaxb2-maven-plugin</artifactId>
135                                         <version>1.3</version>
136                                         <executions>
137                                                 <execution>
138                                                         <phase>generate-sources</phase>
139                                                         <goals>
140                                                                 <goal>xjc</goal>
141                                                         </goals>
142                                                 </execution>
143                                         </executions>
144                                         <configuration>
145                                                 <schemaDirectory>src/main/xsd</schemaDirectory>
146                                         </configuration>
147                                 </plugin>
148         
149                                 <plugin>
150                                   <groupId>org.apache.maven.plugins</groupId>
151                                   <artifactId>maven-failsafe-plugin</artifactId>
152                                   <version>2.17</version>
153                                   <configuration>
154                                                 <skipTests>true</skipTests>
155                                   </configuration>
156                                   <executions>
157                                         <execution>
158                                           <id>integration-test</id>
159                                           <goals>
160                                                 <goal>integration-test</goal>
161                                                 <goal>verify</goal>
162                                           </goals>
163                                         </execution>
164                                   </executions>
165                                 </plugin>
166                                 <plugin>
167                                         <groupId>org.apache.maven.plugins</groupId>
168                                         <artifactId>maven-jarsigner-plugin</artifactId>
169                                         <version>1.2</version>
170                                         <executions>
171                                                 <execution>
172                                                         <id>sign</id>
173                                                         <goals>
174                                                                 <goal>sign</goal>
175                                                         </goals>
176                                                         <configuration>
177                                                                 <!--  skip>${skipSigning}</skip -->
178                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
179                                                         </configuration>
180                                                 </execution>
181                                                 <execution>
182                                                         <id>verify</id>
183                                                         <goals>
184                                                                 <goal>verify</goal>
185                                                         </goals>
186                                                         <configuration>
187                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
188                                                         </configuration>
189                                                 </execution>
190                                         </executions>
191                                         <configuration>
192                                                 <skip>true</skip>
193                                                 <alias>aaf</alias>
194                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
195                                                 <storepass>Surprise!</storepass>
196                                                 <keypass>Surprise!</keypass>
197                                                 <verbose>true</verbose>
198                                                 <certs>true</certs>
199                                         </configuration>
200                                 </plugin>
201                                 
202                                                         <plugin>
203                         <groupId>org.apache.maven.plugins</groupId>
204                         <artifactId>maven-javadoc-plugin</artifactId>
205                         <configuration>
206                         <failOnError>false</failOnError>
207                         </configuration>
208                         <executions>
209                                 <execution>
210                                         <id>attach-javadocs</id>
211                                         <goals>
212                                                 <goal>jar</goal>
213                                         </goals>
214                                 </execution>
215                         </executions>
216                 </plugin> 
217            
218            
219                <plugin>
220                       <groupId>org.apache.maven.plugins</groupId>
221                       <artifactId>maven-source-plugin</artifactId>
222                       <version>2.2.1</version>
223                       <executions>
224                         <execution>
225                           <id>attach-sources</id>
226                           <goals>
227                             <goal>jar-no-fork</goal>
228                           </goals>
229                         </execution>
230                       </executions>
231                     </plugin>
232
233                         
234                 <plugin>
235                                 <groupId>org.codehaus.mojo</groupId>
236                                 <artifactId>cobertura-maven-plugin</artifactId>
237                                 <version>2.7</version>
238                                 <configuration>
239                                         <formats>
240                                         <format>html</format>
241                                         <format>xml</format>
242                                   </formats>
243                                 </configuration>
244                         </plugin>
245                 <plugin>
246                                 <groupId>org.sonatype.plugins</groupId>
247                                 <artifactId>nexus-staging-maven-plugin</artifactId>
248                                 <version>1.6.7</version>
249                                 <extensions>true</extensions>
250                                 <configuration>
251                                         <nexusUrl>${nexusproxy}</nexusUrl>
252                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
253                                         <serverId>ecomp-staging</serverId>
254                                 </configuration>
255                         </plugin>               
256                         <plugin>
257                                 <groupId>org.jacoco</groupId>
258                                 <artifactId>jacoco-maven-plugin</artifactId>
259                                 <version>0.7.7.201606060606</version>
260                                 <configuration>
261                                         <dumpOnExit>true</dumpOnExit>
262                                         <includes>
263                                                 <include>org.onap.aaf.*</include>
264                                         </includes>
265                                 </configuration>
266                                 <executions>
267                                         <execution>
268                                                 <id>pre-unit-test</id>
269                                                 <goals>
270                                                         <goal>prepare-agent</goal>
271                                                 </goals>
272                                                 <configuration>
273                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
274                                                         <!-- <append>true</append> -->
275                                                 </configuration>
276                                         </execution>
277                                         <execution>
278                                                 <id>pre-integration-test</id>
279                                                 <phase>pre-integration-test</phase>
280                                                 <goals>
281                                                         <goal>prepare-agent</goal>
282                                                 </goals>
283                                                 <configuration>
284                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
285                                                         <!-- <append>true</append> -->
286                                                 </configuration>
287                                         </execution>
288                                         <execution>
289                         <goals>
290                             <goal>merge</goal>
291                         </goals>
292                         <phase>post-integration-test</phase>
293                         <configuration>
294                             <fileSets>
295                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
296                                     <directory>${project.build.directory}/coverage-reports</directory>
297                                     <includes>
298                                         <include>*.exec</include>
299                                     </includes>
300                                 </fileSet>
301                             </fileSets>
302                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
303                         </configuration>
304                     </execution>
305                                 </executions>
306                         </plugin>
307                                 
308                 </plugins>
309                 </pluginManagement>                     
310     </build>    
311         
312         <dependencies> 
313                 <dependency>
314                         <groupId>junit</groupId>
315                         <artifactId>junit</artifactId>
316                         <version>4.10</version>
317                         <scope>test</scope>
318                 </dependency>
319
320                 <dependency>
321                     <groupId>org.mockito</groupId>
322                     <artifactId>mockito-core</artifactId>
323                     <version>1.10.19</version>
324                     <scope>test</scope>
325                 </dependency>
326                 <dependency>
327                     <groupId>org.powermock</groupId>
328                     <artifactId>powermock-module-junit4</artifactId>
329                     <version>1.6.4</version>
330                     <scope>test</scope>
331                 </dependency>
332                 <dependency>
333                     <groupId>org.powermock</groupId>
334                     <artifactId>powermock-api-mockito</artifactId>
335                     <version>1.6.4</version>
336                     <scope>test</scope>
337                 </dependency> 
338
339          
340         </dependencies>         
341
342         <modules>
343                 <!-- 
344                    <module> auth-client</module>
345                    complile manually with mvn -N independently
346                 -->
347                 <module>authz-client</module>
348                 <module>authz-core</module>
349                 <module>authz-cass</module>
350                 <module>authz-defOrg</module>
351                 <module>authz-cmd</module>
352                 <!--  <module>authz-batch</module>-->
353                 <module>authz-test</module>
354                 <!--  <module>authz-gui</module> -->
355                 <module>authz-gw</module>
356                 <module>authz-certman</module>
357                 <module>authz-fs</module>
358                 <module>authz-service</module>
359         </modules>
360         
361         <dependencyManagement>
362                 <dependencies>
363                         <dependency>
364                                 <groupId>org.onap.aaf.inno</groupId>
365                                 <artifactId>env</artifactId>
366                                 <version>${project.innoVersion}</version>
367                         </dependency>
368
369                         <dependency>
370                                 <groupId>org.onap.aaf.inno</groupId>
371                                 <artifactId>log4j</artifactId>
372                                 <version>${project.innoVersion}</version>
373                         </dependency>
374
375                         <dependency>
376                                 <groupId>org.onap.aaf.inno</groupId>
377                                 <artifactId>rosetta</artifactId>
378                                 <version>${project.innoVersion}</version>
379                         </dependency>
380
381                         <dependency>
382                                 <groupId>org.onap.aaf.inno</groupId>
383                                 <artifactId>xgen</artifactId>
384                                 <version>${project.innoVersion}</version>
385                         </dependency>
386                         
387                         <dependency>
388                                 <groupId>org.onap.aaf.cadi</groupId>
389                                 <artifactId>cadi-core</artifactId>
390                                 <version>${project.cadiVersion}</version>
391                         </dependency>
392
393                         <dependency>
394                                 <groupId>org.onap.aaf.cadi</groupId>
395                                 <artifactId>cadi-client</artifactId>
396                                 <version>${project.cadiVersion}</version>
397                         </dependency>
398                         
399                         
400                         <dependency>
401                                 <groupId>org.onap.aaf.cadi</groupId>
402                                 <artifactId>cadi-aaf</artifactId>
403                                 <version>${project.cadiVersion}</version>
404                                 <exclusions>
405                               <exclusion> 
406                                         <groupId>org.apache.cassandra</groupId>
407                                 <artifactId>cassandra-all</artifactId>
408                       </exclusion>
409                             </exclusions> 
410                         </dependency>
411                         
412                         <dependency>
413                                 <groupId>org.onap.aaf.authz</groupId>
414                                 <artifactId>authz-client</artifactId>
415                                 <version>${project.interfaceVersion}</version>
416                         </dependency>
417                         
418                         
419                         <dependency>
420                                 <groupId>org.onap.aaf.authz</groupId>
421                                 <artifactId>authz-core</artifactId>
422                                 <version>${project.version}</version>
423                         </dependency>
424                         
425                         <dependency>
426                     <groupId>org.onap.aaf.authz</groupId>
427                     <artifactId>authz-cass</artifactId>
428                                 <version>${project.version}</version>
429                 </dependency>
430                 
431                 <dependency>
432                                 <groupId>org.onap.aaf.authz</groupId>
433                                 <artifactId>authz-batch</artifactId>
434                                 <version>${project.interfaceVersion}</version>
435                         </dependency>
436             
437
438
439                     <dependency>
440                     <groupId>org.onap.aaf.authz</groupId>
441                     <artifactId>authz-cmd</artifactId>
442                                 <version>${project.version}</version>
443                 </dependency>
444                 <dependency>
445                     <groupId>org.onap.aaf.authz</groupId>
446                     <artifactId>authz-gw</artifactId>
447                                 <version>${project.version}</version>
448                 </dependency>
449
450                         <dependency>
451                                 <groupId>com.att.aft</groupId>
452                                 <artifactId>dme2</artifactId>
453                                 <version>${project.dme2Version}</version>
454                         </dependency>
455                 
456                         <dependency>
457                           <groupId>javax.servlet</groupId>
458                           <artifactId>servlet-api</artifactId>
459                           <version>2.5</version>
460                         </dependency>
461                         
462                         <dependency>
463                                 <groupId>org.eclipse.jetty</groupId>
464                                 <artifactId>jetty-servlet</artifactId>
465                                 <version>9.0.3.v20130506</version>
466                         </dependency>
467                         
468                         <dependency>
469                                 <groupId>com.datastax.cassandra</groupId>
470                                 <artifactId>cassandra-all</artifactId>
471                                 <version>2.1.10</version>
472                                 <exclusions>
473                               <exclusion> 
474                                 <groupId>org.slf4j</groupId>
475                                 <artifactId>slf4j-log4j12</artifactId>
476                               </exclusion>
477                               <exclusion> 
478                                 <groupId>log4j</groupId>
479                                 <artifactId>log4j</artifactId>
480                               </exclusion>
481                             </exclusions> 
482                         </dependency>
483                         <dependency>
484                                 <groupId>com.datastax.cassandra</groupId>
485                                 <artifactId>cassandra-driver-core</artifactId>
486                                 <!-- version>1.0.3</version -->
487                                 <!-- version>1.0.5</version -->
488                                 <version>2.1.10</version>
489                                 <exclusions>
490                               <exclusion> 
491                                 <groupId>org.slf4j</groupId>
492                                 <artifactId>slf4j-log4j12</artifactId>
493                               </exclusion>
494                               <exclusion> 
495                                 <groupId>log4j</groupId>
496                                 <artifactId>log4j</artifactId>
497                               </exclusion>
498                             </exclusions> 
499                         </dependency>   
500
501                         <dependency>
502                                 <groupId>org.slf4j</groupId>
503                                 <artifactId>slf4j-log4j12</artifactId>
504                                 <version>1.7.5</version>
505                         </dependency>
506
507                         <dependency>
508                         <groupId>javax.mail</groupId>
509                         <artifactId>mail</artifactId>
510                         <version>1.4.5</version>
511                 </dependency> 
512
513                         
514                 </dependencies>
515         </dependencyManagement>
516         <distributionManagement>
517                 <repository>
518                         <id>ecomp-releases</id>
519                         <name>AAF Release Repository</name>
520                         <url>${nexusproxy}${releaseNexusPath}</url>
521                 </repository>
522                 <snapshotRepository>
523                         <id>ecomp-snapshots</id>
524                         <name>AAF Snapshot Repository</name>
525                         <url>${nexusproxy}${snapshotNexusPath}</url>
526                 </snapshotRepository>
527                 <site>
528                         <id>ecomp-site</id>
529                         <url>dav:${nexusproxy}${sitePath}</url>
530                 </site>
531         </distributionManagement>
532 <pluginRepositories>
533         <pluginRepository>
534             <id>onap-plugin-snapshots</id>
535             <url>https://nexus.onap.org/content/repositories/snapshots/</url>
536         </pluginRepository>
537     </pluginRepositories>
538         
539         <repositories>
540                 <repository>
541                         <id>central</id>
542                         <name>Maven 2 repository 2</name>
543                         <url>http://repo2.maven.org/maven2/</url>
544                 </repository>
545                 <repository>
546             <id>onap-jar-snapshots</id>
547             <url>https://nexus.onap.org/content/repositories/snapshots</url>
548         </repository>
549                 <repository>
550                         <id>spring-repo</id>
551                         <name>Spring repo</name>
552                         <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
553                 </repository>
554                 <repository>
555                         <id>repository.jboss.org-public</id>
556                         <name>JBoss.org Maven repository</name>
557                         <url>https://repository.jboss.org/nexus/content/groups/public</url>
558                 </repository>
559         </repositories> 
560 </project>