Improve code coverage for aaf authz modules
[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>0.1.1</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                                 
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_FileServer.java</exclude>
126                                           <exclude>**/JU_DirectAAFLur.java</exclude>
127                                           <exclude>**/JU_AuthAPI.java</exclude>
128                                           <exclude>**/JU_GwAPI.java</exclude>  
129                                           
130                                           <!-- <exclude>**/JU_Perm_2_0*.java</exclude> -->
131                                           <!-- <exclude>**/JU_Role_2_0*.java</exclude>                             -->
132                         
133                                         </excludes>
134         
135                                   </configuration>
136                                 </plugin>
137         
138                                 <plugin>
139                                         <groupId>org.codehaus.mojo</groupId>
140                                         <artifactId>jaxb2-maven-plugin</artifactId>
141                                         <version>1.3</version>
142                                         <executions>
143                                                 <execution>
144                                                         <phase>generate-sources</phase>
145                                                         <goals>
146                                                                 <goal>xjc</goal>
147                                                         </goals>
148                                                 </execution>
149                                         </executions>
150                                         <configuration>
151                                                 <schemaDirectory>src/main/xsd</schemaDirectory>
152                                         </configuration>
153                                 </plugin>
154         
155                                 <plugin>
156                                   <groupId>org.apache.maven.plugins</groupId>
157                                   <artifactId>maven-failsafe-plugin</artifactId>
158                                   <version>2.17</version>
159                                   <configuration>
160                                                 <skipTests>true</skipTests>
161                                   </configuration>
162                                   <executions>
163                                         <execution>
164                                           <id>integration-test</id>
165                                           <goals>
166                                                 <goal>integration-test</goal>
167                                                 <goal>verify</goal>
168                                           </goals>
169                                         </execution>
170                                   </executions>
171                                 </plugin>
172                                 <plugin>
173                                         <groupId>org.apache.maven.plugins</groupId>
174                                         <artifactId>maven-jarsigner-plugin</artifactId>
175                                         <version>1.2</version>
176                                         <executions>
177                                                 <execution>
178                                                         <id>sign</id>
179                                                         <goals>
180                                                                 <goal>sign</goal>
181                                                         </goals>
182                                                         <configuration>
183                                                                 <!--  skip>${skipSigning}</skip -->
184                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
185                                                         </configuration>
186                                                 </execution>
187                                                 <execution>
188                                                         <id>verify</id>
189                                                         <goals>
190                                                                 <goal>verify</goal>
191                                                         </goals>
192                                                         <configuration>
193                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
194                                                         </configuration>
195                                                 </execution>
196                                         </executions>
197                                         <configuration>
198                                                 <skip>true</skip>
199                                                 <alias>aaf</alias>
200                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
201                                                 <storepass>Surprise!</storepass>
202                                                 <keypass>Surprise!</keypass>
203                                                 <verbose>true</verbose>
204                                                 <certs>true</certs>
205                                         </configuration>
206                                 </plugin>
207                                 
208                 <plugin>
209                         <groupId>org.apache.maven.plugins</groupId>
210                         <artifactId>maven-javadoc-plugin</artifactId>
211                         <version>2.10.4</version>
212                         <configuration>
213                         <failOnError>false</failOnError>
214                         </configuration>
215                         <executions>
216                                 <execution>
217                                         <id>attach-javadocs</id>
218                                         <goals>
219                                                 <goal>jar</goal>
220                                         </goals>
221                                 </execution>
222                         </executions>
223                 </plugin> 
224
225
226            
227                <plugin>
228                       <groupId>org.apache.maven.plugins</groupId>
229                       <artifactId>maven-source-plugin</artifactId>
230                       <version>2.2.1</version>
231                       <executions>
232                         <execution>
233                           <id>attach-sources</id>
234                           <goals>
235                             <goal>jar-no-fork</goal>
236                           </goals>
237                         </execution>
238                       </executions>
239                     </plugin>
240
241                         
242                 <plugin>
243                                 <groupId>org.codehaus.mojo</groupId>
244                                 <artifactId>cobertura-maven-plugin</artifactId>
245                                 <version>2.7</version>
246                                 <configuration>
247                                         <formats>
248                                         <format>html</format>
249                                         <format>xml</format>
250                                   </formats>
251                                 </configuration>
252                         </plugin>
253                 <plugin>
254                                 <groupId>org.sonatype.plugins</groupId>
255                                 <artifactId>nexus-staging-maven-plugin</artifactId>
256                                 <version>1.6.7</version>
257                                 <extensions>true</extensions>
258                                 <configuration>
259                                         <nexusUrl>${nexusproxy}</nexusUrl>
260                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
261                                         <serverId>ecomp-staging</serverId>
262                                 </configuration>
263                         </plugin>               
264                 <plugin>
265                                 <groupId>org.jacoco</groupId>
266                                 <artifactId>jacoco-maven-plugin</artifactId>
267                                 <version>0.7.7.201606060606</version>
268                                 <configuration>
269                                         <dumpOnExit>true</dumpOnExit>
270                                         <includes>
271                                                 <include>org.onap.aaf.*</include>
272                                         </includes>
273                                 </configuration>
274                                 <executions>
275                                         <execution>
276                                                 <id>pre-unit-test</id>
277                                                 <goals>
278                                                         <goal>prepare-agent</goal>
279                                                 </goals>
280                                                 <configuration>
281                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
282                                                         <!-- <append>true</append> -->
283                                                 </configuration>
284                                         </execution>
285                                         <execution>
286                                                 <id>pre-integration-test</id>
287                                                 <phase>pre-integration-test</phase>
288                                                 <goals>
289                                                         <goal>prepare-agent</goal>
290                                                 </goals>
291                                                 <configuration>
292                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
293                                                         <!-- <append>true</append> -->
294                                                 </configuration>
295                                         </execution>
296                                         <execution>
297                         <goals>
298                             <goal>merge</goal>
299                         </goals>
300                         <phase>post-integration-test</phase>
301                         <configuration>
302                             <fileSets>
303                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
304                                     <directory>${project.build.directory}/coverage-reports</directory>
305                                     <includes>
306                                         <include>*.exec</include>
307                                     </includes>
308                                 </fileSet>
309                             </fileSets>
310                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
311                         </configuration>
312                     </execution>
313                                 </executions>
314                         </plugin>                    
315
316                                 
317                 </plugins>
318                 </pluginManagement>                     
319     </build>    
320         
321         <dependencies> 
322                 <dependency>
323                         <groupId>junit</groupId>
324                         <artifactId>junit</artifactId>
325                         <version>4.10</version>
326                         <scope>test</scope>
327                 </dependency>
328
329                 <dependency>
330                     <groupId>org.mockito</groupId>
331                     <artifactId>mockito-core</artifactId>
332                     <version>1.10.19</version>
333                     <scope>test</scope>
334                 </dependency>
335                 <dependency>
336                     <groupId>org.powermock</groupId>
337                     <artifactId>powermock-module-junit4</artifactId>
338                     <version>1.6.4</version>
339                     <scope>test</scope>
340                 </dependency>
341                 <dependency>
342                     <groupId>org.powermock</groupId>
343                     <artifactId>powermock-api-mockito</artifactId>
344                     <version>1.6.4</version>
345                     <scope>test</scope>
346                 </dependency> 
347
348          
349         </dependencies>         
350
351         <modules>
352                 <!-- 
353                    <module> auth-client</module>
354                    complile manually with mvn -N independently
355                 -->
356                 <module>authz-client</module>
357                 <module>authz-core</module>
358                 <module>authz-cass</module>
359                 <module>authz-defOrg</module>
360                 <module>authz-cmd</module>
361                 <!--  <module>authz-batch</module>-->
362                 <module>authz-test</module>
363                 <!--  <module>authz-gui</module> -->
364                 <module>authz-gw</module>
365                 <module>authz-certman</module>
366                 <module>authz-fs</module>
367                 <module>authz-service</module>
368         </modules>
369         
370         <dependencyManagement>
371                 <dependencies>
372                         <dependency>
373                                 <groupId>org.onap.aaf.inno</groupId>
374                                 <artifactId>env</artifactId>
375                                 <version>${project.innoVersion}</version>
376                         </dependency>
377
378                         <dependency>
379                                 <groupId>org.onap.aaf.inno</groupId>
380                                 <artifactId>log4j</artifactId>
381                                 <version>${project.innoVersion}</version>
382                         </dependency>
383
384                         <dependency>
385                                 <groupId>org.onap.aaf.inno</groupId>
386                                 <artifactId>rosetta</artifactId>
387                                 <version>${project.innoVersion}</version>
388                         </dependency>
389
390                         <dependency>
391                                 <groupId>org.onap.aaf.inno</groupId>
392                                 <artifactId>xgen</artifactId>
393                                 <version>${project.innoVersion}</version>
394                         </dependency>
395                         
396                         <dependency>
397                                 <groupId>org.onap.aaf.cadi</groupId>
398                                 <artifactId>cadi-core</artifactId>
399                                 <version>${project.cadiVersion}</version>
400                         </dependency>
401
402                         <dependency>
403                                 <groupId>org.onap.aaf.cadi</groupId>
404                                 <artifactId>cadi-client</artifactId>
405                                 <version>${project.cadiVersion}</version>
406                         </dependency>
407                         
408                         
409                         <dependency>
410                                 <groupId>org.onap.aaf.cadi</groupId>
411                                 <artifactId>cadi-aaf</artifactId>
412                                 <version>${project.cadiVersion}</version>
413                                 <exclusions>
414                               <exclusion> 
415                                         <groupId>org.apache.cassandra</groupId>
416                                 <artifactId>cassandra-all</artifactId>
417                       </exclusion>
418                             </exclusions> 
419                         </dependency>
420                         
421                         <dependency>
422                                 <groupId>org.onap.aaf.authz</groupId>
423                                 <artifactId>authz-client</artifactId>
424                                 <version>${project.interfaceVersion}</version>
425                         </dependency>
426                         
427                         
428                         <dependency>
429                                 <groupId>org.onap.aaf.authz</groupId>
430                                 <artifactId>authz-core</artifactId>
431                                 <version>${project.version}</version>
432                         </dependency>
433                         
434                         <dependency>
435                     <groupId>org.onap.aaf.authz</groupId>
436                     <artifactId>authz-cass</artifactId>
437                                 <version>${project.version}</version>
438                 </dependency>
439                 
440                 <dependency>
441                                 <groupId>org.onap.aaf.authz</groupId>
442                                 <artifactId>authz-batch</artifactId>
443                                 <version>${project.interfaceVersion}</version>
444                         </dependency>
445             
446
447
448                     <dependency>
449                     <groupId>org.onap.aaf.authz</groupId>
450                     <artifactId>authz-cmd</artifactId>
451                                 <version>${project.version}</version>
452                 </dependency>
453                 <dependency>
454                     <groupId>org.onap.aaf.authz</groupId>
455                     <artifactId>authz-gw</artifactId>
456                                 <version>${project.version}</version>
457                 </dependency>
458
459                         <dependency>
460                                 <groupId>com.att.aft</groupId>
461                                 <artifactId>dme2</artifactId>
462                                 <version>${project.dme2Version}</version>
463                         </dependency>
464                 
465                         <dependency>
466                           <groupId>javax.servlet</groupId>
467                           <artifactId>servlet-api</artifactId>
468                           <version>2.5</version>
469                         </dependency>
470                         
471                         <dependency>
472                                 <groupId>org.eclipse.jetty</groupId>
473                                 <artifactId>jetty-servlet</artifactId>
474                                 <version>9.0.3.v20130506</version>
475                         </dependency>
476                         
477                         <dependency>
478                                 <groupId>com.datastax.cassandra</groupId>
479                                 <artifactId>cassandra-all</artifactId>
480                                 <version>2.1.10</version>
481                                 <exclusions>
482                               <exclusion> 
483                                 <groupId>org.slf4j</groupId>
484                                 <artifactId>slf4j-log4j12</artifactId>
485                               </exclusion>
486                               <exclusion> 
487                                 <groupId>log4j</groupId>
488                                 <artifactId>log4j</artifactId>
489                               </exclusion>
490                             </exclusions> 
491                         </dependency>
492                         <dependency>
493                                 <groupId>com.datastax.cassandra</groupId>
494                                 <artifactId>cassandra-driver-core</artifactId>
495                                 <!-- version>1.0.3</version -->
496                                 <!-- version>1.0.5</version -->
497                                 <version>2.1.10</version>
498                                 <exclusions>
499                               <exclusion> 
500                                 <groupId>org.slf4j</groupId>
501                                 <artifactId>slf4j-log4j12</artifactId>
502                               </exclusion>
503                               <exclusion> 
504                                 <groupId>log4j</groupId>
505                                 <artifactId>log4j</artifactId>
506                               </exclusion>
507                             </exclusions> 
508                         </dependency>   
509
510                         <dependency>
511                                 <groupId>org.slf4j</groupId>
512                                 <artifactId>slf4j-log4j12</artifactId>
513                                 <version>1.7.5</version>
514                         </dependency>
515
516                         <dependency>
517                         <groupId>javax.mail</groupId>
518                         <artifactId>mail</artifactId>
519                         <version>1.4.5</version>
520                 </dependency> 
521
522                         
523                 </dependencies>
524         </dependencyManagement>
525         <distributionManagement>
526                 <repository>
527                         <id>ecomp-releases</id>
528                         <name>AAF Release Repository</name>
529                         <url>${nexusproxy}${releaseNexusPath}</url>
530                 </repository>
531                 <snapshotRepository>
532                         <id>ecomp-snapshots</id>
533                         <name>AAF Snapshot Repository</name>
534                         <url>${nexusproxy}${snapshotNexusPath}</url>
535                 </snapshotRepository>
536                 <site>
537                         <id>ecomp-site</id>
538                         <url>dav:${nexusproxy}${sitePath}</url>
539                 </site>
540         </distributionManagement>
541
542 </project>