Propose checking of plugin artifact when plugin descriptor cannot be found
--------------------------------------------------------------------------

                 Key: MNG-4057
                 URL: http://jira.codehaus.org/browse/MNG-4057
             Project: Maven 2
          Issue Type: Improvement
          Components: Plugins and Lifecycle
    Affects Versions: 2.1.0-M1, 2.0.10
            Reporter: Benjamin Bentmann
            Priority: Trivial


>From the plugin manager:
{code:java}
PluginDescriptor addedPlugin = pluginCollector.getPluginDescriptor( plugin );

if ( addedPlugin == null )
{
    throw new IllegalStateException( "The PluginDescriptor for the plugin " + 
plugin + " was not found." );
}
{code}

One scenario where this actually happens is when the plugin JAR is unreadable. 
Hence, we should extend the error message and propose to the users to check 
whether the plugin JAR ({{pluginArtifact.getFile()}}) is intact.

-- 
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

        

Reply via email to