configureScpWagonIfRequired(wagon, log);
// MSITE-25: Make sure that the server settings are inserted
for ( Object o : settings.getServers() ) {
Server server = (Server) o;
String id = server.getId();
log.debug( "configureWagon server " + id );
if ( id != null && id.equals( repositoryId ) && ( server.getConfiguration() != null ) ) {
final PlexusConfiguration plexusConf =
new XmlPlexusConfiguration( (Xpp3Dom) server.getConfiguration() );
ComponentConfigurator componentConfigurator = null;
try{
componentConfigurator = (ComponentConfigurator) container.lookup( ComponentConfigurator.ROLE );
componentConfigurator.configureComponent( wagon, plexusConf, container.getContainerRealm() );