jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-4688

Clover 3.0.2 plugin is not working with Maven 3

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not A Bug
  • Affects Version/s: 3.0-beta-1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate

Description

The clover build is returning the error:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-clover2-plugin:3.0.2:clover (default-cli) on project co
m.ccadllc.mediacipher: An error has occurred in Clover report generation. Could not resolve default-clover-report.xml. P
lease try specifying this via the maven.clover.reportDescriptor property. Failed to load resource as file [/default-clov
er-report.xml]: Could not find resource '/default-clover-report.xml'. -> [Help 1]

However, this file is located inside the maven-clover2-plugin-3.0.2.jar.

This problem does not occur on maven 2.

The problem can be worked around by extracting the file to a local directory and setting -Dmaven.clover.reportDescriptor.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 26/May/10 2:02 PM

This is an issue in plexus-resources:1.0-alpha-4 and its classpath resource locator which relied on a bug in the class loaders in Maven 2. Please contact Atlassian and ask them to update their plugin to use the latest plexus-resources version.

Independently of an update to the Clover Plugin, you can make the build work right now by overriding the plugin dependency in the POM yourself.

Show
Benjamin Bentmann added a comment - 26/May/10 2:02 PM This is an issue in plexus-resources:1.0-alpha-4 and its classpath resource locator which relied on a bug in the class loaders in Maven 2. Please contact Atlassian and ask them to update their plugin to use the latest plexus-resources version. Independently of an update to the Clover Plugin, you can make the build work right now by overriding the plugin dependency in the POM yourself.
Hide
Permalink
Nick Pellow added a comment - 01/Dec/10 11:18 PM

Thanks for the heads up on this. I have released maven-clover2-plugin v 3.0.4 and bumped the version of plexus-resources to alpha-7.
This should appear in maven central shortly; https://studio.plugins.atlassian.com/browse/CLMVN-136

Cheers,
Nick

Show
Nick Pellow added a comment - 01/Dec/10 11:18 PM Thanks for the heads up on this. I have released maven-clover2-plugin v 3.0.4 and bumped the version of plexus-resources to alpha-7. This should appear in maven central shortly; https://studio.plugins.atlassian.com/browse/CLMVN-136 Cheers, Nick

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Eric Berry
Vote (0)
Watch (0)

Dates

  • Created:
    26/May/10 12:43 PM
    Updated:
    01/Dec/10 11:18 PM
    Resolved:
    26/May/10 2:02 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.