Add a configuration element which allows artifact exclusions
------------------------------------------------------------

         Key: MSUREFIRE-51
         URL: http://jira.codehaus.org/browse/MSUREFIRE-51
     Project: Maven 2.x Surefire Plugin
        Type: New Feature

    Reporter: Jason van Zyl


Taken from the message on the users mailing list:

This smells like a scoping problem. ASM is not required for test execution 
(runtime) by Cobertura, ASM is only needed for swizzling the class files and 
that part is run during the process-classes phase. Cobertura itself needs it to 
compile and to instrument but ASM shouldn't end up in the test or runtime 
scopes/classpaths. I think this points to a tool scope or something akin to it.

If that proves to be the case it's probably not going to be fixed for 2.0.3. 

A solution might be to add an artifact exclusion configuration to surefire 
(possibly only for forking mode). Then the lifecycle.xml for the Cobertura 
plug-in which controls the execution of surefire could exclude ASM during test 
runs. That could probably make it into the surefire plug-in's next release if 
that solution works. That's all I can think of off the top of my head.

-- 
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


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

Reply via email to