[ http://jira.codehaus.org/browse/MCLOVER-26?page=comments#action_62396 ]
Vincent Massol commented on MCLOVER-26:
---------------------------------------
Hi jake,
I think this is the portion of the code below that is causing some trouble
(this is from the clover plugin):
{code}
private void addCloverDependencyToCompileClasspath()
throws MojoExecutionException
{
Artifact cloverArtifact = null;
Iterator artifacts = this.pluginArtifacts.iterator();
while ( artifacts.hasNext() && cloverArtifact == null )
{
Artifact artifact = (Artifact) artifacts.next();
if ( "clover".equalsIgnoreCase( artifact.getArtifactId() ) )
{
cloverArtifact = artifact;
}
}
if ( cloverArtifact == null )
{
throw new MojoExecutionException( "Couldn't find 'clover' artifact
in plugin dependencies" );
}
cloverArtifact = factory.createArtifact( cloverArtifact.getGroupId(),
cloverArtifact.getArtifactId(),
cloverArtifact.getVersion(),
Artifact.SCOPE_COMPILE,
cloverArtifact.getType() );
// TODO: use addArtifacts
Set set = new HashSet( this.project.getDependencyArtifacts() );
set.add( cloverArtifact );
this.project.setDependencyArtifacts( set );
}
{code}
Somehow it seems to loose some deps. I'll try to understand what's wrong but if
you have any idea, fire it! :-)
Thanks
> dependencies omitted from classpath during clover compile
> ---------------------------------------------------------
>
> Key: MCLOVER-26
> URL: http://jira.codehaus.org/browse/MCLOVER-26
> Project: Maven 2.x Clover Plugin
> Type: Bug
> Versions: 2.0
> Environment: java 1.4.2_05, solaris os, anthill pro 2.5
> Reporter: jake pezaro
> Attachments: anthill_RiskCacheServer-Deploy-Builder_log.txt
>
>
> my project builds & tests sucessfully using when using the normal lifecycle
> (compiler:compile), however when clover runs the compile task (as part of mvn
> site) the compile fails. i have attached a debug log from such a build to
> this bug. from this i can see that the classpath used by the clover compile
> is missing a dependency (com.vcint:VcCommons:jar:2.2.1-SNAPSHOT).
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira