Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Sat, 12 Jun 2004 12:53 AM

didn't work for me either - but I've patched similarly to the two attached and it does 
now.

I'll check on Linux to see that the other issue doesn't arise either. Please test! 
Thanks.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPCLOVER-15

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPCLOVER-15
    Summary: maven.clover.jar property not working - doesn't work with registered 
versions > 1.2.3
       Type: Bug

     Status: Closed
   Priority: Critical
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-clover-plugin
   Versions:
             1.4
             1.5

   Assignee: Brett Porter
   Reporter: fabrizio giustina

    Created: Sat, 20 Mar 2004 6:21 AM
    Updated: Sat, 12 Jun 2004 12:53 AM
Environment: maven rc1, both on windows and linux

Description:
The maven.clover.jar property which should override the standard dependency used by 
the clover plugin doesn't work for me.

The plugin adds the maven.clover.jar to the and classpath but the ant task is always 
registered using the standard dependency in project.xml (check plugin.jelly, the new 
jar is added to the claspath only after the task registration).
Also, the dependency in plugin's project.xml is added to the root classloader: the 
only way I found to make the clover plugin work properly is to add a clover dependency 
to my project.xml with the root classloader property (shouldn't it be avoided?) and 
use the jar override in project.properties.

This is a major problem when your registered clover jar version is not the same as the 
one used by the plugin (1.2.3). Note you can only download the latest version of 
clover when you apply for a license, there is no way to get a registered 1.2.3 version 
now.

In this situation clover starts (using the default dependency) to instruments all 
classes and then uses maven.clover.jar to run the tests! It crashes with a bunch of 
method not found errors for the differences in the 2 clover versions.

The plugin should only use 1 clover jar at a time, and the standard, unregistered one, 
should not be added to the root classloader.
Is there any way to remove the dependency from project.xml and add it dinamically only 
if maven.clover.jar is not defined?




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to