Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-346

plugin:descriptor sometimes fails with java.util.NoSuchElementException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6.1
    • Plugin Plugin
    • None

    Description

      Sometimes the maven-plugin-plugin fails to write the plugin descriptor and exits with the exception below.
      Root cause seems to be JDK7 related and has been fixed in plexus-utils 3.1.1 https://github.com/codehaus-plexus/plexus-utils/issues/51

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.5.2:descriptor (default-descriptor) on project maven-javadoc-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.5.2:descriptor failed. NoSuchElementException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.5.2:descriptor (default-descriptor) on project maven-javadoc-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.5.2:descriptor failed
      Caused by: java.util.NoSuchElementException
          at java.util.LinkedList.removeLast (LinkedList.java:281)
          at org.codehaus.plexus.util.xml.PrettyPrintXMLWriter.endElement (PrettyPrintXMLWriter.java:297)
          at org.apache.maven.tools.plugin.generator.PluginDescriptorGenerator.writeDescriptor (PluginDescriptorGenerator.java:175)
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              rfscholte Robert Scholte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: