[
http://jira.codehaus.org/browse/MNG-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161940#action_161940
]
Will Hoover commented on MNG-2163:
----------------------------------
Another use case is where you define a parent pom using the
maven-eclipse-plugin enabling WTP capabilities by default:
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<wtpmanifest>true</wtpmanifest>
<wtpapplicationxml>true</wtpapplicationxml>
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
{code}
Then in a child pom of a project you want to disable the WTP because you are
using m2eclipse. If you do not disable/exclude the maven-eclipse-plugin you get
a nasty error message in eclipse:
"An internal error occurred during: "Importing Maven projects".
loader constraint violation: when resolving method
"org.codehaus.plexus.util.xml.Xpp3DomWriter.write(Lorg/codehaus/plexus/util/xml/XMLWriter;Lorg/codehaus/plexus/util/xml/Xpp3Dom;)V"
the class loader (instance of
org/codehaus/plexus/classworlds/realm/ClassRealm) of the current
class,
org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter,
and the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
class, org/codehaus/plexus/util/xml/Xpp3DomWriter, have different
Class objects for the type org/codehaus/plexus/util/xml/XMLWriter used
in the signature"
> Allow plugin dependencies to be excluded
> ----------------------------------------
>
> Key: MNG-2163
> URL: http://jira.codehaus.org/browse/MNG-2163
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.2
> Environment: Windows XP, Cygwin
> Reporter: Mark Hobson
> Fix For: 3.x
>
>
> Need to add an exclusions block in the POM for plugins. The use-case is
> excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.
--
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