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@828642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e85cd0c2c3
commit
f7d7cbb6a0
|
@ -636,9 +636,14 @@ public class DefaultMavenPluginManager
|
|||
}
|
||||
catch ( ComponentConfigurationException e )
|
||||
{
|
||||
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
|
||||
"Unable to parse configuration of mojo " + mojoDescriptor.getId()
|
||||
+ ": " + e.getMessage(), e );
|
||||
String message = "Unable to parse configuration of mojo " + mojoDescriptor.getId();
|
||||
if ( e.getFailedConfiguration() != null )
|
||||
{
|
||||
message += " for parameter " + e.getFailedConfiguration().getName();
|
||||
}
|
||||
message += ": " + e.getMessage();
|
||||
|
||||
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), message, e );
|
||||
}
|
||||
catch ( ComponentLookupException e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue