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 20:49:00 UTC
[jira] [Closed] (MPLUGIN-346) plugin:descriptor sometimes fails
with java.util.NoSuchElementException
[ https://issues.apache.org/jira/browse/MPLUGIN-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MPLUGIN-346.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.6.1
Fixed in [acfc61c76d10f4e5f790dbf4575737f39f931871|https://gitbox.apache.org/repos/asf?p=maven-plugin-tools.git;a=commit;h=acfc61c76d10f4e5f790dbf4575737f39f931871]
> 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
> {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)