Index: src/main/java/org/apache/maven/plugins/site/SiteDeployMojo.java =================================================================== --- src/main/java/org/apache/maven/plugins/site/SiteDeployMojo.java (revision 638945) +++ src/main/java/org/apache/maven/plugins/site/SiteDeployMojo.java (working copy) @@ -31,6 +31,7 @@ import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.project.MavenProject; +import org.apache.maven.settings.Server; import org.apache.maven.settings.Settings; import org.apache.maven.wagon.CommandExecutionException; import org.apache.maven.wagon.CommandExecutor; @@ -51,9 +52,11 @@ import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import org.codehaus.plexus.configuration.PlexusConfiguration; +import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; import org.codehaus.plexus.context.Context; import org.codehaus.plexus.context.ContextException; import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable; +import org.codehaus.plexus.util.xml.Xpp3Dom; /** * Deploys the site using scp/file protocol. @@ -136,6 +139,11 @@ throw new MojoExecutionException( "The URL to the site is missing in the project descriptor." ); } + for (int i = 0; i < settings.getServers().size(); i++) { + Server s = (Server) settings.getServers().get(i); + serverConfigurationMap.put(s.getId(), new XmlPlexusConfiguration(((Xpp3Dom) s.getConfiguration()))); + } + Repository repository = new Repository( id, url ); // TODO: work on moving this into the deployer like the other deploy methods