Improve code coverage for aaf cadi modules
[aaf/cadi.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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <groupId>org.onap.aaf.cadi</groupId>
26         <artifactId>parent</artifactId>
27         <name>aaf-cadi</name>
28         <version>1.0.0-SNAPSHOT</version>
29         <inceptionYear>2015-07-20</inceptionYear>       
30         <packaging>pom</packaging>
31         <url>https://github.com/att/AAF</url>
32         <description>CADI</description>
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         
48         <parent>             
49        <groupId>org.onap.oparent</groupId>
50        <artifactId>oparent</artifactId>
51        <version>0.1.1</version>
52     </parent>
53         
54         <properties>
55                 <skipSigning>true</skipSigning>
56                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
58                 <project.authClientVersion>1.0.0-SNAPSHOT</project.authClientVersion>
59                 <project.dme2Version>3.1.200</project.dme2Version>
60                                 <!-- version>2.8.5.8</version -->
61                                 <!-- version>2.6.20</version -->
62                                 <!-- version>2.6.29</version -->
63                                 <!-- version>2.8.1</version -->
64                                 <!--  version>2.8.2.5</version -->
65                 <!-- jetty-version>8.1.7.v20120910</jetty-version -->
66                 <!-- jetty-version>7.2.0.v20101020</jetty-version -->
67                 <!-- project.jettyVersion>9.0.3.v20130506</project.jettyVersion -->
68                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
69                 <sonar.language>java</sonar.language>
70                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
71                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
72                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
73                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
74                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
75                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
76                 <nexusproxy>https://nexus.onap.org</nexusproxy>
77                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
78                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
79                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
80                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>
81         </properties>
82         <!-- ============================================================== -->
83         <!-- Define the major contributors and developers of CADI -->
84         <!-- ============================================================== -->
85         <contributors>
86                 <contributor>
87                         <name>Jonathan Gathman</name>
88                         <email></email>
89                         <timezone>CST</timezone>
90                 </contributor>
91         </contributors>
92
93         <dependencies>
94                 <dependency>
95                         <groupId>junit</groupId>
96                         <artifactId>junit</artifactId>
97                         <version>4.10</version>
98                         <scope>test</scope>
99                 </dependency>
100         </dependencies>
101
102         <!-- ============================================================== -->
103         <!-- Define sub-projects (modules) -->
104         <!-- ============================================================== -->
105         <modules>
106                 <module>core</module>
107                 <module>client</module>
108                 <module>aaf</module> 
109                 <module>cass</module>
110                 <!-- module>jetty</module -->
111                 <!-- module>weblogic</module -->
112                 <!-- always build last -->
113                 <!--module>swm</module -->
114         </modules>
115
116         <!-- ============================================================== -->
117         <!-- Define project-wide dependencies -->
118         <!-- ============================================================== -->
119         <dependencyManagement>
120                 <dependencies>
121                 <dependency>
122                         <groupId>org.mockito</groupId>
123                         <artifactId>mockito-all</artifactId>
124                         <version>1.9.5</version>
125                         <scope>test</scope>
126                         </dependency>
127                         <dependency>
128                                 <groupId>org.onap.aaf.authz</groupId>
129                                 <artifactId>authz-client</artifactId>
130                                 <version>${project.authClientVersion}</version>
131                         </dependency>
132
133                         <dependency>
134                                 <groupId>org.onap.aaf.cadi</groupId>
135                                 <artifactId>cadi-core</artifactId>
136                                 <version>${project.version}</version>
137                         </dependency>
138
139                         <dependency>
140                                 <groupId>org.onap.aaf.cadi</groupId>
141                                 <artifactId>cadi-core</artifactId>
142                                 <version>${project.version}</version>
143                                 <classifier>tests</classifier>
144                         </dependency>
145
146                         <dependency>
147                                 <groupId>org.onap.aaf.cadi</groupId>
148                                 <artifactId>cadi-cass</artifactId>
149                                 <version>${project.version}</version>
150                         </dependency>
151
152                         <dependency>
153                                 <groupId>org.onap.aaf.cadi</groupId>
154                                 <artifactId>cadi-aaf</artifactId>
155                                 <version>${project.version}</version>
156                         </dependency> 
157
158                     <dependency>
159                                 <groupId>org.onap.aaf.cadi</groupId>
160                                 <artifactId>cadi-aaf</artifactId>
161                                 <version>${project.version}</version>
162                                 <classifier>full</classifier>
163                         </dependency>
164
165                         <dependency>
166                                 <groupId>org.onap.aaf.cadi</groupId>
167                                 <artifactId>cadi-client</artifactId>
168                                 <version>${project.version}</version>
169                         </dependency>
170
171                         <dependency>
172                                 <groupId>org.onap.aaf.cadi</groupId>
173                                 <artifactId>cadi-tomcat</artifactId>
174                                 <version>${project.version}</version>
175                         </dependency>
176
177                         <dependency>
178                                 <groupId>org.onap.aaf.cadi</groupId>
179                                 <artifactId>cadi-tguard</artifactId>
180                                 <version>${project.version}</version>
181                         </dependency>
182
183                         <dependency>
184                                 <groupId>org.onap.aaf.inno</groupId>
185                                 <artifactId>env</artifactId>
186                                 <version>${project.innoVersion}</version>
187                         </dependency>
188
189                         <dependency>
190                                 <groupId>org.onap.aaf.inno</groupId>
191                                 <artifactId>rosetta</artifactId>
192                                 <version>${project.innoVersion}</version>
193                         </dependency>
194
195                         <dependency>
196                                 <groupId>org.eclipse.jetty</groupId>
197                                 <artifactId>jetty-servlet</artifactId>
198                                 <version>9.0.3.v20130506</version>
199                         </dependency>
200
201                         <dependency>
202                                 <groupId>org.eclipse.jetty</groupId>
203                                 <artifactId>jetty-webapp</artifactId>
204                                 <version>9.0.3.v20130506</version>
205                         </dependency>
206
207                         <dependency>
208                                 <groupId>org.eclipse.jetty.aggregate</groupId>
209                                 <artifactId>jetty-all</artifactId>
210                                 <version>9.0.3.v20130506</version>
211                         </dependency>
212
213                         <dependency>
214                                 <groupId>javax.servlet</groupId>
215                                 <artifactId>servlet-api</artifactId>
216                                 <version>2.5</version>
217                         </dependency>
218
219                         <dependency>
220                                 <groupId>com.att.aft</groupId>
221                                 <artifactId>dme2</artifactId>
222                                 <version>${project.dme2Version}</version>
223                                 <exclusions>
224                                         <exclusion>
225                                                 <groupId>org.slf4j</groupId>
226                                                 <artifactId>slf4j-log4j12</artifactId>
227                                         </exclusion>
228                                         <exclusion>
229                                                 <groupId>log4j</groupId>
230                                                 <artifactId>log4j</artifactId>
231                                         </exclusion>
232                                         <exclusion>
233                                                 <groupId>com.att.javax.servlet</groupId>
234                                                 <artifactId>servlet-api</artifactId>
235                                         </exclusion>
236                                         <exclusion>
237                                                 <groupId>javax.mail</groupId>
238                                                 <artifactId>mail</artifactId>
239                                         </exclusion>
240
241                                 </exclusions>
242                         </dependency>
243
244                         <dependency>
245                                 <groupId>org.slf4j</groupId>
246                                 <artifactId>slf4j-api</artifactId>
247                                 <version>1.7.5</version>
248                         </dependency>
249                 </dependencies>
250         </dependencyManagement>
251
252         <!-- ============================================================== -->
253         <!-- Define common plugins and make them available for all modules -->
254         <!-- ============================================================== -->
255         <build>
256                 <testSourceDirectory>src/test/java</testSourceDirectory>
257                 <plugins>
258
259                                 <plugin>
260                                         <inherited>true</inherited>
261                                         <groupId>org.apache.maven.plugins</groupId>
262                                         <artifactId>maven-compiler-plugin</artifactId>
263                                         <version>2.3.2</version>
264                                         <configuration>
265                                                 <source>1.7</source>
266                                                 <target>1.7</target>
267                                         </configuration>
268                                 </plugin>
269         
270                                 <plugin>
271                                         <groupId>org.apache.maven.plugins</groupId>
272                                         <version>2.4</version>
273                                         <artifactId>maven-jar-plugin</artifactId>
274                                         <configuration>
275                                                 <outputDirectory>target</outputDirectory>
276                                                 <archive>
277                                                         <manifestEntries>
278                                                                 <Sealed>true</Sealed>
279                                                         </manifestEntries>
280                                                 </archive>
281                                         </configuration>
282                                 </plugin>
283                                 
284                                 <plugin>
285                                   <groupId>org.apache.maven.plugins</groupId>
286                                   <artifactId>maven-surefire-plugin</artifactId>
287                                   <version>2.17</version>
288                                   <configuration>
289                                         <skipTests>false</skipTests>
290                                         <includes>
291                                           <include>**/JU*.java</include>
292                                         </includes>
293                                         <excludes>
294                                                 <exclude>**/JU_LocalLur.java</exclude>
295                                                 <exclude>**/JU_BufferedServletInputStream.java</exclude>
296                                                 <exclude>**/JU_Passcode.java</exclude>
297                                                 <exclude>**/JU_XReader.java</exclude>
298                                                 <exclude>**/JU_CASS.java</exclude>
299                                                 <exclude>**/JU_PropertyLocator.java</exclude>
300                                                 <exclude>**/JU_PermEval.java</exclude>
301                                                 <exclude>**/JU_JMeter.java</exclude>
302                                                 <exclude>**/JU_Lur2_0Call.java</exclude>
303                                         </excludes>   
304                                   </configuration>
305                                 </plugin>
306
307                                 <plugin>
308                                         <groupId>org.apache.maven.plugins</groupId>
309                                         <artifactId>maven-jarsigner-plugin</artifactId>
310                                         <version>1.2</version>
311                                         <executions>
312                                                 <execution>
313                                                         <id>sign</id>
314                                                         <goals>
315                                                                 <goal>sign</goal>
316                                                         </goals>
317                                                         <configuration>
318                                                                 <!--  skip>${skipSigning}</skip -->
319                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
320                                                         </configuration>
321                                                 </execution>
322                                                 <execution>
323                                                         <id>verify</id>
324                                                         <goals>
325                                                                 <goal>verify</goal>
326                                                         </goals>
327                                                         <configuration>
328                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
329                                                         </configuration>
330                                                 </execution>
331                                         </executions>
332                                         <configuration>
333                                                 <skip>true</skip>
334                                                 <alias>cadi</alias>
335                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
336                                                 <storepass>Surprise!</storepass>
337                                                 <keypass>Surprise!</keypass>
338                                                 <verbose>true</verbose>
339                                                 <certs>true</certs>
340                                         </configuration>
341                                 </plugin>
342                 
343                 
344                                 <plugin>
345                                         <artifactId>maven-release-plugin</artifactId>
346                                         <version>2.5.2</version>
347                                         <configuration>
348                                                 <goals>-s ${mvn.settings} deploy</goals>
349                                         </configuration>
350                                 </plugin>
351         
352                                 <plugin>
353                                         <artifactId>maven-assembly-plugin</artifactId>
354                                         <version>2.5.5</version>
355                                 </plugin>
356         
357                                 <plugin>
358                                         <groupId>org.apache.maven.plugins</groupId>
359                                         <artifactId>maven-deploy-plugin</artifactId>
360                                         <version>2.8.1</version>
361                                         <configuration>
362                                                 <skip>false</skip>
363                                         </configuration>
364         
365                                 </plugin>
366         
367                                 <plugin>
368                                         <groupId>org.apache.maven.plugins</groupId>
369                                         <artifactId>maven-dependency-plugin</artifactId>
370                                         <version>2.10</version>
371                                 </plugin>
372                                 
373                 <plugin>
374                         <groupId>org.apache.maven.plugins</groupId>
375                         <artifactId>maven-javadoc-plugin</artifactId>
376                         <version>2.10.4</version>
377                         <configuration>
378                         <failOnError>false</failOnError>
379                         </configuration>
380                         <executions>
381                                 <execution>
382                                         <id>attach-javadocs</id>
383                                         <goals>
384                                                 <goal>jar</goal>
385                                         </goals>
386                                 </execution>
387                         </executions>
388                 </plugin> 
389            
390            
391                <plugin>
392                       <groupId>org.apache.maven.plugins</groupId>
393                       <artifactId>maven-source-plugin</artifactId>
394                       <version>2.2.1</version>
395                       <executions>
396                         <execution>
397                           <id>attach-sources</id>
398                           <goals>
399                             <goal>jar-no-fork</goal>
400                           </goals>
401                         </execution>
402                       </executions>
403                     </plugin>
404         
405  
406                         
407                 <plugin>
408                                 <groupId>org.codehaus.mojo</groupId>
409                                 <artifactId>cobertura-maven-plugin</artifactId>
410                                 <version>2.7</version>
411                                 <configuration>
412                                         <formats>
413                                         <format>html</format>
414                                         <format>xml</format>
415                                   </formats>
416                                 </configuration>
417                  </plugin>
418
419                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
420                                         only. It has no influence on the Maven build itself. -->
421                                 <plugin>
422                                         <groupId>org.eclipse.m2e</groupId>
423                                         <artifactId>lifecycle-mapping</artifactId>
424                                         <version>1.0.0</version>
425                                         <configuration>
426                                                 <lifecycleMappingMetadata>
427                                                         <pluginExecutions>
428                                                                 <pluginExecution>
429                                                                         <pluginExecutionFilter>
430                                                                                 <groupId>
431                                                                                         org.codehaus.mojo
432                                                                                 </groupId>
433                                                                                 <artifactId>
434                                                                                         jaxb2-maven-plugin
435                                                                                 </artifactId>
436                                                                                 <versionRange>
437                                                                                         [1.3,)
438                                                                                 </versionRange>
439                                                                                 <goals>
440                                                                                         <goal>xjc</goal>
441                                                                                 </goals>
442                                                                         </pluginExecutionFilter>
443                                                                         <action>
444                                                                                 <ignore />
445                                                                         </action>
446                                                                 </pluginExecution>
447                                                         </pluginExecutions>
448                                                 </lifecycleMappingMetadata>
449                                         </configuration>
450                                 </plugin>
451                                   <plugin>
452                                 <groupId>org.sonatype.plugins</groupId>
453                                 <artifactId>nexus-staging-maven-plugin</artifactId>
454                                 <version>1.6.7</version>
455                                 <extensions>true</extensions>
456                                 <configuration>
457                                         <nexusUrl>${nexusproxy}</nexusUrl>
458                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
459                                         <serverId>ecomp-staging</serverId>
460                                 </configuration>
461                         </plugin> 
462                         
463                         <plugin>
464                                 <groupId>org.jacoco</groupId>
465                                 <artifactId>jacoco-maven-plugin</artifactId>
466                                 <version>0.7.7.201606060606</version>
467                                 <configuration>
468                                         <dumpOnExit>true</dumpOnExit>
469                                         <includes>
470                                                 <include>org.onap.aaf.*</include>
471                                         </includes>
472                                 </configuration>
473                                 <executions>
474                                         <execution>
475                                                 <id>pre-unit-test</id>
476                                                 <goals>
477                                                         <goal>prepare-agent</goal>
478                                                 </goals>
479                                                 <configuration>
480                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
481                                                         <!-- <append>true</append> -->
482                                                 </configuration>
483                                         </execution>
484                                         <execution>
485                                                 <id>pre-integration-test</id>
486                                                 <phase>pre-integration-test</phase>
487                                                 <goals>
488                                                         <goal>prepare-agent</goal>
489                                                 </goals>
490                                                 <configuration>
491                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
492                                                         <!-- <append>true</append> -->
493                                                 </configuration>
494                                         </execution>
495                                         <execution>
496                         <goals>
497                             <goal>merge</goal>
498                         </goals>
499                         <phase>post-integration-test</phase>
500                         <configuration>
501                             <fileSets>
502                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
503                                     <directory>${project.build.directory}/coverage-reports</directory>
504                                     <includes>
505                                         <include>*.exec</include>
506                                     </includes>
507                                 </fileSet>
508                             </fileSets>
509                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
510                         </configuration>
511                     </execution>
512                                 </executions>
513                         </plugin>
514
515                         </plugins>                      
516         </build>
517         <distributionManagement>
518                 <repository>
519                         <id>ecomp-releases</id>
520                         <name>AAF Release Repository</name>
521                         <url>${nexusproxy}${releaseNexusPath}</url>
522                 </repository>
523                 <snapshotRepository>
524                         <id>ecomp-snapshots</id>
525                         <name>AAF Snapshot Repository</name>
526                         <url>${nexusproxy}${snapshotNexusPath}</url>
527                 </snapshotRepository>
528                 <site>
529                         <id>ecomp-site</id>
530                         <url>dav:${nexusproxy}${sitePath}</url>
531                 </site>
532         </distributionManagement>
533 </project>