// Lazy goal loading
Session session = createSession();
MavenJellyContext baseContext = (MavenJellyContext) session.getAttribute( PluginManager.BASE_CONTEXT );
GoalToJellyScriptHousingMapper mapper = (GoalToJellyScriptHousingMapper) session
.getAttribute( PluginManager.GOAL_MAPPER );
PluginManager pluginManager = (PluginManager) session.getAttribute( PluginManager.PLUGIN_MANAGER );
Set pluginSet;
try
{
pluginSet = pluginManager.prepAttainGoal( getName(), baseContext, mapper );
}
catch ( Exception e )
{
throw new JellyTagException( e );
}
project.attainGoal( getName(), session );
pluginManager.addDelayedPops( pluginSet );
}
catch ( UnattainableGoalException e )
{
Throwable root = e.getRootCause();