Merge "Add distributionManagement section"
[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         <distributionManagement>
17                 <repository>
18                         <id>ecomp-releases</id>
19                         <url>http://nexus.onap.org/content/repositories/releases</url>
20                 </repository>
21                 <snapshotRepository>
22                         <id>ecomp-snapshots</id>
23                         <url>http://nexus.onap.org/content/repositories/snapshots</url>
24                 </snapshotRepository>
25         </distributionManagement>
26         
27         <modules>
28                 <module>SdncReportsDao</module>
29                 <module>SdncReportsApi</module>         
30         </modules>
31
32         <build>
33
34                 <plugins>
35                         <plugin>
36                                 <groupId>org.jacoco</groupId>
37                                 <artifactId>jacoco-maven-plugin</artifactId>
38                                 <version>0.7.5.201505241946</version>
39                                 <executions>
40                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
41                                                 is passed as VM argument when Maven the Surefire plugin is executed. -->
42                                         <execution>
43                                                 <id>pre-unit-test</id>
44                                                 <goals>
45                                                         <goal>prepare-agent</goal>
46                                                 </goals>
47                                                 <configuration>
48                                                         <!-- Sets the path to the file which contains the execution data. -->
49                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
50                                                         <!-- Sets the name of the property containing the settings for JaCoCo 
51                                                                 runtime agent. -->
52                                                         <propertyName>surefireArgLine</propertyName>
53                                                 </configuration>
54                                         </execution>
55                                         <!-- Ensures that the code coverage report for unit tests is created 
56                                                 after unit tests have been run. -->
57                                         <execution>
58                                                 <id>post-unit-test</id>
59                                                 <phase>test</phase>
60                                                 <goals>
61                                                         <goal>report</goal>
62                                                 </goals>
63                                                 <configuration>
64                                                         <!-- Sets the path to the file which contains the execution data. -->
65                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
66                                                         <!-- Sets the output directory for the code coverage report. -->
67                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
68                                                 </configuration>
69                                         </execution>
70                                 </executions>
71                         </plugin>
72                 </plugins>
73         </build>
74
75 </project>