Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-918

Release fails on missing class EntityReplacementMap

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      During release:prepare I get following error:

      Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare: org/codehaus/plexus/util/xml/pull/EntityReplacementMap

      Stack trace:

      Number of foreign imports: 1
      import: Entry[import from realm ClassRealm[maven.api, parent: null]]

      -----------------------------------------------------

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:164)
      ... 20 more
      Caused by: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/EntityReplacementMap
      at org.apache.maven.scm.providers.svn.settings.io.xpp3.SvnXpp3Reader.read(SvnXpp3Reader.java:510)
      at org.apache.maven.scm.providers.svn.settings.io.xpp3.SvnXpp3Reader.read(SvnXpp3Reader.java:529)
      at org.apache.maven.scm.provider.svn.util.SvnUtil.readSettings(SvnUtil.java:67)
      at org.apache.maven.scm.provider.svn.util.SvnUtil.getSettings(SvnUtil.java:53)
      at org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.getBaseSvnCommandLine(SvnCommandLineUtils.java:104)
      at org.apache.maven.scm.provider.svn.svnexe.command.status.SvnStatusCommand.createCommandLine(SvnStatusCommand.java:83)
      at org.apache.maven.scm.provider.svn.svnexe.command.status.SvnStatusCommand.executeStatusCommand(SvnStatusCommand.java:46)
      at org.apache.maven.scm.command.status.AbstractStatusCommand.executeCommand(AbstractStatusCommand.java:44)
      at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
      at org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.executeCommand(AbstractSvnScmProvider.java:428)
      at org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.status(AbstractSvnScmProvider.java:397)
      at org.apache.maven.scm.provider.AbstractScmProvider.status(AbstractScmProvider.java:793)
      at org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ScmCheckModificationsPhase.java:128)
      at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
      at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
      at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
      at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
      at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:286)
      at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:240)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      ... 20 more
      Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.xml.pull.EntityReplacementMap
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      ... 40 more

      I have checked and the missing class first apears in plexus-utils 3.0.13 while release plugin 2.5.2 depends only on 3.0.10. I'm not sure if this is issue of release-plugin or Subversion SCM, which seems to require the class according stack trace.

      What now? Raise plexus-utils dependency to 3.0.13?

      Here is list of plugins searched for the missing class:
      urls[0] = file:/C:/applications/java/m2repository/org/apache/maven/plugins/maven-release-plugin/2.5.2/maven-release-plugin-2.5.2.jar
      urls[1] = file:/C:/applications/java/m2repository/org/apache/maven/release/maven-release-manager/2.5.2/maven-release-manager-2.5.2.jar
      urls[2] = file:/C:/applications/java/m2repository/org/apache/maven/release/maven-release-api/2.5.2/maven-release-api-2.5.2.jar
      urls[3] = file:/C:/applications/java/m2repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
      urls[4] = file:/C:/applications/java/m2repository/junit/junit/3.8.1/junit-3.8.1.jar
      urls[5] = file:/C:/applications/java/m2repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
      urls[6] = file:/C:/applications/java/m2repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
      urls[7] = file:/C:/applications/java/m2repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      urls[8] = file:/C:/applications/java/m2repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      urls[9] = file:/C:/applications/java/m2repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
      urls[10] = file:/C:/applications/java/m2repository/org/apache/maven/shared/maven-invoker/2.2/maven-invoker-2.2.jar
      urls[11] = file:/C:/applications/java/m2repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
      urls[12] = file:/C:/applications/java/m2repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
      urls[13] = file:/C:/applications/java/m2repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
      urls[14] = file:/C:/applications/java/m2repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      urls[15] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-providers-standard/1.9.4/maven-scm-providers-standard-1.9.4.pom
      urls[16] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-accurev/1.9.4/maven-scm-provider-accurev-1.9.4.jar
      urls[17] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-bazaar/1.9.4/maven-scm-provider-bazaar-1.9.4.jar
      urls[18] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-clearcase/1.9.4/maven-scm-provider-clearcase-1.9.4.jar
      urls[19] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-cvsexe/1.9.4/maven-scm-provider-cvsexe-1.9.4.jar
      urls[20] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-cvs-commons/1.9.4/maven-scm-provider-cvs-commons-1.9.4.jar
      urls[21] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-cvsjava/1.9.4/maven-scm-provider-cvsjava-1.9.4.jar
      urls[22] = file:/C:/applications/java/m2repository/org/netbeans/lib/cvsclient/20060125/cvsclient-20060125.jar
      urls[23] = file:/C:/applications/java/m2repository/ch/ethz/ganymed/ganymed-ssh2/build210/ganymed-ssh2-build210.jar
      urls[24] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-gitexe/1.9.4/maven-scm-provider-gitexe-1.9.4.jar
      urls[25] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-git-commons/1.9.4/maven-scm-provider-git-commons-1.9.4.jar
      urls[26] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-hg/1.9.4/maven-scm-provider-hg-1.9.4.jar
      urls[27] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-perforce/1.9.4/maven-scm-provider-perforce-1.9.4.jar
      urls[28] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-starteam/1.9.4/maven-scm-provider-starteam-1.9.4.jar
      urls[29] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.9.4/maven-scm-provider-svnexe-1.9.4.jar
      urls[30] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-synergy/1.9.4/maven-scm-provider-synergy-1.9.4.jar
      urls[31] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-vss/1.9.4/maven-scm-provider-vss-1.9.4.jar
      urls[32] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-tfs/1.9.4/maven-scm-provider-tfs-1.9.4.jar
      urls[33] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-integrity/1.9.4/maven-scm-provider-integrity-1.9.4.jar
      urls[34] = file:/C:/applications/java/m2repository/com/mks/api/mksapi-jar/4.10.9049/mksapi-jar-4.10.9049.jar
      urls[35] = file:/C:/applications/java/m2repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar
      urls[36] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-jazz/1.9.4/maven-scm-provider-jazz-1.9.4.jar
      urls[37] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-manager-plexus/1.8/maven-scm-manager-plexus-1.8.jar
      urls[38] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-provider-svn-commons/1.9.4/maven-scm-provider-svn-commons-1.9.4.jar
      urls[39] = file:/C:/applications/java/m2repository/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.jar
      urls[40] = file:/C:/applications/java/m2repository/jdom/jdom/1.0/jdom-1.0.jar
      urls[41] = file:/C:/applications/java/m2repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
      urls[42] = file:/C:/applications/java/m2repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
      urls[43] = file:/C:/applications/java/m2repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
      urls[44] = file:/C:/applications/java/m2repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
      urls[45] = file:/C:/applications/java/m2repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
      urls[46] = file:/C:/applications/java/m2repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
      urls[47] = file:/C:/applications/java/m2repository/org/apache/maven/scm/maven-scm-api/1.9.4/maven-scm-api-1.9.4.jar
      urls[48] = file:/C:/applications/java/m2repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
      urls[49] = file:/C:/applications/java/m2repository/org/jdom/jdom/1.1/jdom-1.1.jar

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ales_d Ales Dolecek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment