Sonar

sonar-maven-plugin 2.0-SNAPSHOT + Maven 3 (alpha 6) + Clover 2 doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Incomplete
  • Affects Version/s: None
  • Fix Version/s: 2.2
  • Component/s: Maven Plugin
  • Labels:
    None
  • Number of attachments :
    0

Description

I tried to used maven 3 with the sonar plugin from http://svn.codehaus.org/mojo/branches/sonar-maven-plugin-mvn-3.x
My sonar build fails with :

[WARNING] No Clover database found, skipping report generation
[INFO] No report being generated for this module.
[INFO] No 'maven.clover.licenseLocation' configured. Using default evaluation license.
....
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-SNAPSHOT:sonar (default-cli) on project cs:
Can not execute Sonar:
Can not analyze the project:
Unable to execute maven plugin:
An error has occurred in Clover report generation. Failed to locate Clover license:
Failed to load resource as file [/clover.license]:
Could not find resource '/clover.license'. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The clover license isn't given to the plugin
Using Maven 2 and the latest 1.x version of the plugin, it works fine

Issue Links

Activity

Hide
Simon Brandhof added a comment -

In fact I'm not sure that Clover supports Maven 3.

Show
Simon Brandhof added a comment - In fact I'm not sure that Clover supports Maven 3.
Hide
Simon Brandhof added a comment -

I close this issue because of :

  • new maven3 support since the creation of this issue (SONAR-1265)
  • new clover3 support (SONAR-1543)
  • upgrade default Clover version to 2.6.3 (SONAR-1583)
  • not sure clover2 is compatible with maven 3.

Feel free to reopen the issue if it's not fixed in the first 2.2 release candidate.

Show
Simon Brandhof added a comment - I close this issue because of :
  • new maven3 support since the creation of this issue (SONAR-1265)
  • new clover3 support (SONAR-1543)
  • upgrade default Clover version to 2.6.3 (SONAR-1583)
  • not sure clover2 is compatible with maven 3.
Feel free to reopen the issue if it's not fixed in the first 2.2 release candidate.
Hide
Arnaud Heritier added a comment -

The problem is reported here : http://jira.codehaus.org/browse/MNG-4688

Show
Arnaud Heritier added a comment - The problem is reported here : http://jira.codehaus.org/browse/MNG-4688

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: