summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopeng zhang <zhang.maopeng1@zte.com.cn>2020-02-19 06:55:50 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-19 06:55:50 +0000
commit83678198b94ef2f3d56d9516d54bfc8b7fbbba6e (patch)
tree2169a6b58f4632509cb634cc03538d89046d6fc3
parent265a39ce4648fb456853493e32824d7929d39195 (diff)
parentfe5698f732e20e5e88e8cd9ad50833dabd38fa08 (diff)
Merge "Upgrade ems oparent to 3.0.0"
-rw-r--r--ems/boco/pom.xml28
-rwxr-xr-xems/microservice-standalone/src/main/assembly/run.sh1
2 files changed, 28 insertions, 1 deletions
diff --git a/ems/boco/pom.xml b/ems/boco/pom.xml
index 991b793..dd16ab3 100644
--- a/ems/boco/pom.xml
+++ b/ems/boco/pom.xml
@@ -32,6 +32,12 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jersey.version>2.16</jersey.version>
<swagger.version>1.5.3</swagger.version>
+ <sonar.language>java</sonar.language>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
</properties>
<build>
@@ -111,6 +117,28 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<!-- /pluginManagement-->
diff --git a/ems/microservice-standalone/src/main/assembly/run.sh b/ems/microservice-standalone/src/main/assembly/run.sh
index 93992f9..0ba1fc7 100755
--- a/ems/microservice-standalone/src/main/assembly/run.sh
+++ b/ems/microservice-standalone/src/main/assembly/run.sh
@@ -1,4 +1,3 @@
-#
# Copyright (C) 2015 CMCC, Inc. and others. All rights reserved. (CMCC)
#
# Licensed under the Apache License, Version 2.0 (the "License");