Author: kiwiwings
Date: Sun Feb 23 15:56:54 2020
New Revision: 1874431

URL: http://svn.apache.org/viewvc?rev=1874431&view=rev
Log:
try to fix sonar execution warnings

Modified:
    poi/trunk/sonar/examples/pom.xml
    poi/trunk/sonar/pom.xml

Modified: poi/trunk/sonar/examples/pom.xml
URL: 
http://svn.apache.org/viewvc/poi/trunk/sonar/examples/pom.xml?rev=1874431&r1=1874430&r2=1874431&view=diff
==============================================================================
--- poi/trunk/sonar/examples/pom.xml (original)
+++ poi/trunk/sonar/examples/pom.xml Sun Feb 23 15:56:54 2020
@@ -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>

Modified: poi/trunk/sonar/pom.xml
URL: 
http://svn.apache.org/viewvc/poi/trunk/sonar/pom.xml?rev=1874431&r1=1874430&r2=1874431&view=diff
==============================================================================
--- poi/trunk/sonar/pom.xml (original)
+++ poi/trunk/sonar/pom.xml Sun Feb 23 15:56:54 2020
@@ -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 -->



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to