]> source.dussan.org Git - poi.git/commitdiff
try to fix sonar execution warnings
authorAndreas Beeker <kiwiwings@apache.org>
Sun, 23 Feb 2020 15:56:54 +0000 (15:56 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sun, 23 Feb 2020 15:56:54 +0000 (15:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874431 13f79535-47bb-0310-9956-ffa450edef68

sonar/examples/pom.xml
sonar/pom.xml

index 1cf8e220ac470c32249af51954dd3e0f51e83bdc..dd91449a8d8396c6aa986aec72a6cb27ff220aa3 100644 (file)
     <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! -->
                                                </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>
 
                        <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>
index 98865ab3962efcb64b14a29530366a26eeec2b54..ae84fd73d7a3eb423051375daefef3250e1896b2 100644 (file)
 
         <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 -->