You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/12/21 16:42:00 UTC

[jira] [Created] (MPLUGIN-346) plugin:descriptor sometimes fails with java.util.NoSuchElementException

Robert Scholte created MPLUGIN-346:
--------------------------------------

             Summary: plugin:descriptor sometimes fails with java.util.NoSuchElementException
                 Key: MPLUGIN-346
                 URL: https://issues.apache.org/jira/browse/MPLUGIN-346
             Project: Maven Plugin Tools
          Issue Type: Bug
          Components: Plugin Plugin
            Reporter: Robert Scholte
            Assignee: Robert Scholte


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

{noformat}[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)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)