You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Aaron Digulla (JIRA)" <ji...@codehaus.org> on 2008/04/14 15:51:11 UTC
[jira] Created: (MNG-3523) Bad error message if plugin.xml is
missing/corrupt
Bad error message if plugin.xml is missing/corrupt
--------------------------------------------------
Key: MNG-3523
URL: http://jira.codehaus.org/browse/MNG-3523
Project: Maven 2
Issue Type: Bug
Components: Plugin API
Affects Versions: 2.0.9
Reporter: Aaron Digulla
Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
[org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-3523) Bad error message if plugin.xml is
missing/corrupt
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-3523.
-----------------------------
Assignee: Brett Porter (was: John Casey)
Resolution: Duplicate
Fix Version/s: (was: 2.2.1)
> Bad error message if plugin.xml is missing/corrupt
> --------------------------------------------------
>
> Key: MNG-3523
> URL: http://jira.codehaus.org/browse/MNG-3523
> Project: Maven 2
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.9
> Reporter: Aaron Digulla
> Assignee: Brett Porter
>
> Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
> java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3523) Bad error message if plugin.xml is
missing/corrupt
Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox updated MNG-3523:
---------------------------
Fix Version/s: 2.0.10
> Bad error message if plugin.xml is missing/corrupt
> --------------------------------------------------
>
> Key: MNG-3523
> URL: http://jira.codehaus.org/browse/MNG-3523
> Project: Maven 2
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.9
> Reporter: Aaron Digulla
> Fix For: 2.0.10
>
>
> Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
> java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3523) Bad error message if plugin.xml is
missing/corrupt
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130742#action_130742 ]
Aaron Digulla commented on MNG-3523:
------------------------------------
Technically, this is correct but doesn't really help to locate the root cause of the problem. If maven can't read the plugin.xml file of a plugin, it should abort with an error during the XML parsing step instead of trying to use the plugin anyway.
Real world case: The plugin is downloaded via a proxy and the download aborts before the full file is transferred or the proxy returns a HTML file ("A virus was detected blahblah") instead of the JAR. This can lead to corrupt JARs in the repository which leads to the error above.
PS: Not sure if this is "Plugin API" or "Plugins and Lifecycle". Please feel free to move the error report to the right place.
> Bad error message if plugin.xml is missing/corrupt
> --------------------------------------------------
>
> Key: MNG-3523
> URL: http://jira.codehaus.org/browse/MNG-3523
> Project: Maven 2
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.9
> Reporter: Aaron Digulla
>
> Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
> java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MNG-3523) Bad error message if
plugin.xml is missing/corrupt
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130755#action_130755 ]
digulla edited comment on MNG-3523 at 4/15/08 2:54 AM:
-------------------------------------------------------------
Thanks for the fix in 2.0.10. This one really cost me a lot of nerves :)
was (Author: digulla):
Sweet. How did you fix it?
> Bad error message if plugin.xml is missing/corrupt
> --------------------------------------------------
>
> Key: MNG-3523
> URL: http://jira.codehaus.org/browse/MNG-3523
> Project: Maven 2
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.9
> Reporter: Aaron Digulla
> Fix For: 2.0.10
>
>
> Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
> java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3523) Bad error message if plugin.xml is
missing/corrupt
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130755#action_130755 ]
Aaron Digulla commented on MNG-3523:
------------------------------------
Sweet. How did you fix it?
> Bad error message if plugin.xml is missing/corrupt
> --------------------------------------------------
>
> Key: MNG-3523
> URL: http://jira.codehaus.org/browse/MNG-3523
> Project: Maven 2
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.9
> Reporter: Aaron Digulla
> Fix For: 2.0.10
>
>
> Take the JAR of the maven-resources-plugin, delete the file META-INF/maven/plugin.xml and run maven. You'll get this error:
> java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:maven-resources-plugin] was not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira