PR: MNG-373

make sure plugin configuration is always injected

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-10 16:14:34 +00:00
parent 3be583ee12
commit 967fa87820
1 changed files with 7 additions and 1 deletions

View File

@ -382,9 +382,10 @@ public class DefaultLifecycleExecutor
if ( pluginDescriptor == null )
{
injectHandlerPluginConfiguration( session.getProject(), groupId, artifactId, version );
try
{
injectHandlerPluginConfiguration( session.getProject(), groupId, artifactId, version );
pluginDescriptor = pluginManager.verifyPlugin( groupId, artifactId, version, session );
}
catch ( PluginManagerException e )
@ -392,6 +393,11 @@ public class DefaultLifecycleExecutor
throw new LifecycleExecutionException( "Internal error in the plugin manager", e );
}
}
else
{
injectHandlerPluginConfiguration( session.getProject(), pluginDescriptor.getGroupId(),
pluginDescriptor.getArtifactId(), pluginDescriptor.getVersion() );
}
MojoDescriptor mojoDescriptor = null;