[ https://issues.apache.org/jira/browse/MNG-6800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969967#comment-16969967 ]
Herve Boutemy commented on MNG-6800: ------------------------------------ thanks for the explanation: I now better understand I don't know how Idea precisely does, but I suppose that the Xpp3Dom class is provided by their classloader, then you should more declare plexus-utils as provided: can you try and report, please? > 在执行 writePlugin 时 发生 ClassCastException > ---------------------------------------- > > Key: MNG-6800 > URL: https://issues.apache.org/jira/browse/MNG-6800 > Project: Maven > Issue Type: Improvement > Components: Artifacts and Repositories > Affects Versions: 3.3.9 > Reporter: glmapper > Priority: Blocker > Fix For: waiting-for-feedback > > > {code:java} > //代码占位符 > java.lang.ClassCastException: org.codehaus.plexus.util.xml.Xpp3Dom cannot be > cast to org.codehaus.plexus.util.xml.Xpp3Domjava.lang.ClassCastException: > org.codehaus.plexus.util.xml.Xpp3Dom cannot be cast to > org.codehaus.plexus.util.xml.Xpp3Dom at > org.apache.maven.model.io.xpp3.MavenXpp3Writer.writePlugin(MavenXpp3Writer.java:1417) > at > org.apache.maven.model.io.xpp3.MavenXpp3Writer.writeBuild(MavenXpp3Writer.java:329) > at > org.apache.maven.model.io.xpp3.MavenXpp3Writer.writeModel(MavenXpp3Writer.java:1115) > at > org.apache.maven.model.io.xpp3.MavenXpp3Writer.write(MavenXpp3Writer.java:100) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)