mirror of https://github.com/apache/maven.git
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:
parent
00c3da7030
commit
3412df6ea7
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue