finally {
container.release(settingsBuilder);
}
// NOTE: This will nuke some details from the request; profiles, online, etc... :-(
MavenExecutionRequestPopulator populator = container.lookup(MavenExecutionRequestPopulator.class);
try {
populator.populateFromSettings(request, settingsResult.getEffectiveSettings());
}
finally {
container.release(populator);
}