Maven 2 & 3

Propose checking of plugin artifact when plugin descriptor cannot be found

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

From the plugin manager:

PluginDescriptor addedPlugin = pluginCollector.getPluginDescriptor( plugin );

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

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.

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

Done in r748815, r748817 and r748820, respectively.

Show
Benjamin Bentmann added a comment - Done in r748815, r748817 and r748820, respectively.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: