a03e5c8001ac5ac3d5028b4ed1b5b5a68a7aab4c
[sdnc/oam.git] / SdncReports / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3         <modelVersion>4.0.0</modelVersion>
4
5
6         <groupId>org.onap.sdnc.oam</groupId>
7         <artifactId>SdncReports</artifactId>
8         <version>1.5.3-SNAPSHOT</version>
9         <packaging>pom</packaging>
10
11         <name>sdnc-oam :: SdncReports</name>
12
13         <parent>
14                 <groupId>org.onap.ccsdk.parent</groupId>
15                 <artifactId>spring-boot-1-starter-parent</artifactId>
16                 <version>1.2.4</version>
17         </parent>
18         <distributionManagement>
19                 <repository>
20                         <id>ecomp-releases</id>
21                         <url>http://nexus.onap.org/content/repositories/releases</url>
22                 </repository>
23                 <snapshotRepository>
24                         <id>ecomp-snapshots</id>
25                         <url>http://nexus.onap.org/content/repositories/snapshots</url>
26                 </snapshotRepository>
27         </distributionManagement>
28
29         <modules>
30                 <module>SdncReportsDao</module>
31                 <module>SdncReportsApi</module>
32         </modules>
33
34         <build>
35
36                 <plugins>
37                         <plugin>
38                                 <groupId>org.jacoco</groupId>
39                                 <artifactId>jacoco-maven-plugin</artifactId>
40                                 <version>0.7.5.201505241946</version>
41                                 <executions>
42                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
43                                                 is passed as VM argument when Maven the Surefire plugin is executed. -->
44                                         <execution>
45                                                 <id>pre-unit-test</id>
46                                                 <goals>
47                                                         <goal>prepare-agent</goal>
48                                                 </goals>
49                                                 <configuration>
50                                                         <!-- Sets the path to the file which contains the execution data. -->
51                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
52                                                         <!-- Sets the name of the property containing the settings for JaCoCo 
53                                                                 runtime agent. -->
54                                                         <propertyName>surefireArgLine</propertyName>
55                                                 </configuration>
56                                         </execution>
57                                         <!-- Ensures that the code coverage report for unit tests is created 
58                                                 after unit tests have been run. -->
59                                         <execution>
60                                                 <id>post-unit-test</id>
61                                                 <phase>test</phase>
62                                                 <goals>
63                                                         <goal>report</goal>
64                                                 </goals>
65                                                 <configuration>
66                                                         <!-- Sets the path to the file which contains the execution data. -->
67                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
68                                                         <!-- Sets the output directory for the code coverage report. -->
69                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
70                                                 </configuration>
71                                         </execution>
72                                 </executions>
73                         </plugin>
74                 </plugins>
75         </build>
76
77 </project>