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