Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9.1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP/2003, Maven 2.1.0, jdk 1.6.0.13
-
Number of attachments :
Description
While testing sonar 1.9, most of our projects failed on sonar:sonar, or had fewer java sources collected.
On a closer look, projects with no unit tests had fewer java sources imported. As seen in attached sonar_warn_has_no_tests.log, "CPD - File not found" is thrown, in the section marked as "[class org.sonar.plugins.cpd.CpdMavenCollector] executing".
Projects that have unit tests, failed with a npe, as shown in attacheed sonar_NPE_error_has_tests.log.
Both logs are complete maven build log (with some company names edited), taken with "-e", on a clean default sonar 1.9.
Local mvn repository has been previously deleted and rebuilt for these tests.
Projects were build with "mvn clean compile sonar:sonar". I have attached one of the poms (edited).
As a result, we were unable to upgrade to sonar 1.9, so we reverted to sonar 1.8.
Detailed environment:
c:\workspaces\inbox>java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
c:\workspaces\inbox>mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-18 21:10:27+0200)
Java version: 1.6.0_13
Java home: c:\java\jdk\jdk1.6.0_13\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Attachments
Issue Links
| This issue is duplicated by: | ||||
| SONAR-873 | mvn sonar:sonar produces: org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar |
|
|
|
Is it possible to attach a project sample to reproduce the issue ?