o Improved error message

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@818099 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-23 13:39:31 +00:00
parent 00c3da7030
commit 3412df6ea7
1 changed files with 4 additions and 3 deletions

View File

@ -228,7 +228,8 @@ public class DefaultMavenPluginManager
if ( pluginDescriptor == null ) if ( pluginDescriptor == null )
{ {
throw new InvalidPluginDescriptorException( "Missing plugin descriptor for " + plugin.getId() ); throw new InvalidPluginDescriptorException( "Missing plugin descriptor for " + plugin.getId() + " ("
+ pluginFile + ")" );
} }
MavenPluginValidator validator = new MavenPluginValidator( pluginArtifact ); MavenPluginValidator validator = new MavenPluginValidator( pluginArtifact );
@ -237,8 +238,8 @@ public class DefaultMavenPluginManager
if ( validator.hasErrors() ) if ( validator.hasErrors() )
{ {
throw new InvalidPluginDescriptorException( "Invalid plugin descriptor for " + plugin.getId(), throw new InvalidPluginDescriptorException( "Invalid plugin descriptor for " + plugin.getId() + " ("
validator.getErrors() ); + pluginFile + ")", validator.getErrors() );
} }
pluginDescriptor.setPluginArtifact( pluginArtifact ); pluginDescriptor.setPluginArtifact( pluginArtifact );