[
https://issues.apache.org/jira/browse/MPLUGIN-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated MPLUGIN-346:
----------------------------------
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
{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}
was:
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}
> 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
> Priority: Major
> Fix For: 3.6.1
>
>
> 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
> {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
(v8.3.4#803005)