mirror of https://github.com/apache/maven.git
o Polished code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@804150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
044f6fb408
commit
988246330f
|
@ -321,12 +321,6 @@ public class DefaultPluginManager
|
|||
|
||||
Mojo mojo = null;
|
||||
|
||||
String goalExecId = goalName;
|
||||
if ( mojoExecution.getExecutionId() != null )
|
||||
{
|
||||
goalExecId += " {execution: " + mojoExecution.getExecutionId() + "}";
|
||||
}
|
||||
|
||||
ClassRealm pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() );
|
||||
ClassRealm oldLookupRealm = container.getLookupRealm();
|
||||
ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
|
@ -369,6 +363,12 @@ public class DefaultPluginManager
|
|||
}
|
||||
catch ( ComponentLifecycleException e )
|
||||
{
|
||||
String goalExecId = goalName;
|
||||
if ( mojoExecution.getExecutionId() != null )
|
||||
{
|
||||
goalExecId += " {execution: " + mojoExecution.getExecutionId() + "}";
|
||||
}
|
||||
|
||||
logger.debug( "Error releasing mojo for: " + goalExecId, e );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue