The following comment has been added to this issue:
Author: fabrizio giustina
Created: Thu, 10 Jun 2004 3:28 AM
Body:
this is a "magic" solution whithout the use of the maven.clover.jar property... If you
declare:
maven.jar.override = on
maven.jar.clover= lib/clover.jar
in your project.properties the jar used by the plugin is overriden (shouldn't this
only override _project_ jars??) and everything works properly. The old clover jar is
never read and the new one is used for the entire process.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPCLOVER-15?page=comments#action_20511
---------------------------------------------------------------------
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: Open
Priority: Critical
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: Thu, 10 Jun 2004 3:28 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]