65d209d74e679b53cabb869a63ac7cc861f0f7a1
[sdnc/oam.git] / SdncReports / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5
6         <groupId>org.onap.ccsdk.parent</groupId>        
7         <artifactId>SdncReports</artifactId>
8         <version>0.0.1-SNAPSHOT</version>
9         <packaging>pom</packaging>
10
11         <parent>
12                 <groupId>org.springframework.boot</groupId>
13                 <artifactId>spring-boot-starter-parent</artifactId>
14                 <version>1.5.4.RELEASE</version>
15         </parent>
16         
17         <modules>
18                 <module>SdncReportsDao</module>
19                 <module>SdncReportsApi</module>         
20         </modules>
21
22         <build>
23
24                 <plugins>
25                         <plugin>
26                                 <groupId>org.jacoco</groupId>
27                                 <artifactId>jacoco-maven-plugin</artifactId>
28                                 <version>0.7.5.201505241946</version>
29                                 <executions>
30                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
31                                                 is passed as VM argument when Maven the Surefire plugin is executed. -->
32                                         <execution>
33                                                 <id>pre-unit-test</id>
34                                                 <goals>
35                                                         <goal>prepare-agent</goal>
36                                                 </goals>
37                                                 <configuration>
38                                                         <!-- Sets the path to the file which contains the execution data. -->
39                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
40                                                         <!-- Sets the name of the property containing the settings for JaCoCo 
41                                                                 runtime agent. -->
42                                                         <propertyName>surefireArgLine</propertyName>
43                                                 </configuration>
44                                         </execution>
45                                         <!-- Ensures that the code coverage report for unit tests is created 
46                                                 after unit tests have been run. -->
47                                         <execution>
48                                                 <id>post-unit-test</id>
49                                                 <phase>test</phase>
50                                                 <goals>
51                                                         <goal>report</goal>
52                                                 </goals>
53                                                 <configuration>
54                                                         <!-- Sets the path to the file which contains the execution data. -->
55                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
56                                                         <!-- Sets the output directory for the code coverage report. -->
57                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
58                                                 </configuration>
59                                         </execution>
60                                 </executions>
61                         </plugin>
62                 </plugins>
63         </build>
64
65 </project>