[MNG-4057] Propose checking of plugin artifact when plugin descriptor cannot be found

o Merged from r748815

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@748820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-02-28 11:18:41 +00:00
parent d8b2bb7b3c
commit af31b86868
1 changed files with 3 additions and 2 deletions

View File

@ -354,8 +354,9 @@ public class DefaultPluginManager
getLogger().debug( "Removing invalid plugin realm." );
realmManager.disposePluginRealm( projectPlugin );
throw new PluginManagerException( projectPlugin, "The PluginDescriptor for the plugin "
+ projectPlugin.getKey() + " was not found. Should have been in realm: " + pluginRealm, project );
throw new PluginManagerException( projectPlugin, "The plugin descriptor for the plugin "
+ projectPlugin.getKey() + " was not found. Should have been in realm: " + pluginRealm
+ " Please verify that the plugin JAR " + pluginArtifact.getFile() + " is intact.", project );
}
pluginDescriptor.setPluginArtifact( pluginArtifact );