[ http://jira.codehaus.org/browse/MOJO-226?page=comments#action_57457 ]
Mike Perham commented on MOJO-226:
----------------------------------
Patch which removes the asm dependency from the project classpath. I don't
know of any clean way to programmatically add/remove artifacts to/from the
classpath. What I did instead was clone the cobertura artifact into a
cobertura-runtime artifact which removes all dependencies. (1.7 removed all
dependencies from the instrumented code)
{code:xml}
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>cobertura</groupId>
<artifactId>cobertura-runtime</artifactId>
<version>1.7</version>
</project>
{code}
It is this dependency which is added to the project's classpath.
> Cobertura plugin forces ASM 2.1 on projects
> -------------------------------------------
>
> Key: MOJO-226
> URL: http://jira.codehaus.org/browse/MOJO-226
> Project: Mojo
> Type: Bug
> Components: cobertura
> Reporter: Mike Perham
> Attachments: MOJO-226.patch
>
>
> The Cobertura plugin puts asm 2.1 in the classpath. My project uses
> Hibernate, cglib and Spring - only asm 1.5.3 works with all three at the same
> time. As noted in the Usage FAQ, Cobertura only needs asm in the classpath
> while instrumenting. I would like Cobertura to remove asm from the test
> classpath so it does not introduce incompatabilities.
> http://cobertura.sourceforge.net/faq.html
--
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