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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
7 <groupId>org.onap.oparent</groupId>
8 <artifactId>oparent</artifactId>
9 <version>2.0.0</version>
12 <groupId>org.onap.aai</groupId>
13 <artifactId>sparky-be</artifactId>
14 <version>1.6.1-SNAPSHOT</version>
15 <packaging>pom</packaging>
16 <name>aai-sparky-be</name>
19 <module>sparkybe-onap-service/pom.xml</module>
20 <module>sparkybe-onap-application/pom.xml</module>
24 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
25 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
27 <sonar.jacoco.reportPath />
28 <sonar.jacoco.itReportPath />
29 <sonar.jacoco.reportMissing.force.zero />
31 <jacoco.line.coverage.limit>0.90</jacoco.line.coverage.limit>
32 <jacoco.version>0.8.5</jacoco.version>
33 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
34 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
35 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
36 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
38 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
42 <!-- we don't need to deploy the top level pom project -->
47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-deploy-plugin</artifactId>
53 <!-- once we connect aai-parent or oparent 3.0+ we can take out this
57 <groupId>org.jacoco</groupId>
58 <artifactId>jacoco-maven-plugin</artifactId>
59 <version>${jacoco.version}</version>
61 <!-- Note: This exclusion list should match <sonar.exclusions> property
64 <exclude>**/gen/**</exclude>
65 <exclude>**/generated-sources/**</exclude>
66 <exclude>**/yang-gen/**</exclude>
67 <exclude>**/pax/**</exclude>
68 <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
72 <!-- Prepares the property pointing to the JaCoCo runtime agent which
73 is passed as VM argument when Maven the Surefire plugin is executed. -->
75 <id>pre-unit-test</id>
77 <goal>prepare-agent</goal>
80 <!-- Sets the path to the file which contains the execution data
82 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
83 <!-- Sets the name of the property containing the settings for JaCoCo
85 <propertyName>surefireArgLine</propertyName>
88 <!-- Ensures that the code coverage report for unit tests is created
89 after unit tests have been run. -->
91 <id>post-unit-test</id>
97 <!-- Sets the path to the file which contains the execution data
99 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
100 <!-- Sets the output directory for the code coverage report. -->
101 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
105 <id>pre-integration-test</id>
106 <phase>pre-integration-test</phase>
108 <goal>prepare-agent</goal>
111 <!-- Sets the path to the file which contains the execution data
113 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
114 <!-- Sets the name of the property containing the settings for JaCoCo
116 <propertyName>failsafeArgLine</propertyName>
119 <!-- Ensures that the code coverage report for integration tests after
120 integration tests have been run. -->
122 <id>post-integration-test</id>
123 <phase>post-integration-test</phase>
128 <!-- Sets the path to the file which contains the execution data
130 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
131 <!-- Sets the output directory for the code coverage report. -->
132 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
136 <id>default-check</id>
141 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
143 <rule implementation="org.jacoco.maven.RuleConfiguration">
144 <element>BUNDLE</element>
146 <limit implementation="org.jacoco.report.check.Limit">
147 <counter>LINE</counter>
148 <value>COVEREDRATIO</value>
149 <minimum>${jacoco.line.coverage.limit}</minimum>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-surefire-plugin</artifactId>
161 <version>3.0.0-M4</version>
163 <!-- Sets the VM argument line used when unit tests are run. -->
164 <argLine>${surefireArgLine}</argLine>
165 <!-- Excludes integration tests when unit tests are run. -->
167 <exclude>**/IT*.java</exclude>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-failsafe-plugin</artifactId>
174 <version>3.0.0-M4</version>
176 <!-- Ensures that both integration-test and verify goals of the Failsafe
177 Maven plugin are executed. -->
179 <id>integration-tests</id>
181 <goal>integration-test</goal>
185 <!-- Sets the VM argument line used when integration tests are run. -->
186 <argLine>${failsafeArgLine}</argLine>
192 <groupId>org.sonarsource.scanner.maven</groupId>
193 <artifactId>sonar-maven-plugin</artifactId>
194 <version>${sonar.scanner.version}</version>
196 <!-- end removable sonar config, note the additional exclusion for babel above
203 <distributionManagement>
205 <id>ecomp-releases</id>
206 <name>ECOMP Release Repository</name>
207 <url>${onap.nexus.url}/content/repositories/releases/</url>
210 <id>ecomp-snapshots</id>
211 <name>ECOMP Snapshot Repository</name>
212 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
213 </snapshotRepository>
216 <url>dav:${onap.nexus.url}${sitePath}</url>
218 </distributionManagement>
223 <name>Maven 2 repository 2</name>
224 <url>http://repo2.maven.org/maven2/</url>
227 <id>ecomp-releases</id>
228 <name>ECOMP Release Repository</name>
229 <url>${onap.nexus.url}/content/repositories/releases/</url>
232 <id>ecomp-staging</id>
233 <name>ECOMP Staging Repository</name>
234 <url>${onap.nexus.url}/content/repositories/staging/</url>
237 <id>ecomp-snapshots</id>
238 <name>ECOMP Snapshot Repository</name>
239 <url>${onap.nexus.url}/content/repositories/snapshots/</url>