aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-02-23 15:56:54 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-02-23 15:56:54 +0000
commit1aed0bc40b059ece5c2b078f3870f3dc7550d4dc (patch)
tree3e85830572fa62aff467d9cb185cc4c1b8b00abb
parent100ea31fc159a465e28fa37f909756e7249fc810 (diff)
downloadpoi-1aed0bc40b059ece5c2b078f3870f3dc7550d4dc.tar.gz
poi-1aed0bc40b059ece5c2b078f3870f3dc7550d4dc.zip
try to fix sonar execution warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874431 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sonar/examples/pom.xml22
-rw-r--r--sonar/pom.xml4
2 files changed, 12 insertions, 14 deletions
diff --git a/sonar/examples/pom.xml b/sonar/examples/pom.xml
index 1cf8e220ac..dd91449a8d 100644
--- a/sonar/examples/pom.xml
+++ b/sonar/examples/pom.xml
@@ -12,7 +12,12 @@
<packaging>jar</packaging>
<name>Apache POI Examples package</name>
-
+
+ <properties>
+ <!-- There are no junit tests in the examples module -->
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+
<build>
<plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
@@ -29,12 +34,12 @@
</goals>
<configuration>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
- <resources>
+ <resources>
<resource>
<directory>../../src/examples/src</directory>
</resource>
- </resources>
- </configuration>
+ </resources>
+ </configuration>
</execution>
</executions>
</plugin>
@@ -50,7 +55,7 @@
</fileset>
</filesets>
</configuration>
- </plugin>
+ </plugin>
</plugins>
</build>
@@ -65,12 +70,5 @@
<artifactId>poi-ooxml</artifactId>
<version>${project.version}</version>
</dependency>
-
- <!-- non-test dependency for UpdateEmbeddedDoc -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- </dependency>
</dependencies>
</project>
diff --git a/sonar/pom.xml b/sonar/pom.xml
index 98865ab396..ae84fd73d7 100644
--- a/sonar/pom.xml
+++ b/sonar/pom.xml
@@ -74,10 +74,10 @@
<sonar.organization>apache</sonar.organization>
<sonar.projectKey>poi-parent</sonar.projectKey>
- <sonar.moduleKey>${artifactId}</sonar.moduleKey>
+ <sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
- <sonar.jacoco.reportPaths>target/jacoco.exec</sonar.jacoco.reportPaths>
+ <!-- sonar.jacoco.reportPaths>target/jacoco.exec</sonar.jacoco.reportPaths -->
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<!-- define some of the third-party or plugin-versions globally to use the same in all modules -->