http://jira.codehaus.org/browse/MSITE-585 ?
Regards, Hervé Le mercredi 13 juillet 2011, Johan Vogelzang a écrit : > I just did a test with maven-site-plugin version 2.0-beta-7 (instead of > 2.3) and with this one the build seems to run ok (!?). > > <build> > <pluginManagement> > <plugins> > <plugin> > <artifactId>maven-site-plugin</artifactId> > <version>2.0-beta-7</version> > </plugin> > > > Can anyone confirm if this is a known bug? > > Regards, > Johan. > > > 2011/7/13 Johan Vogelzang <johan.vogelz...@gmail.com> > > > Hi Maven users, > > > > I've a problem with deploying a site to an url containing property > > variables. > > The site url -as part of the distributionManagement section- is located > > in the company parent pom: > > > > <properties> > > > > <reposerver.host.name>myrepohost</reposerver.host.name> > > > > </properties> > > > > ... > > <distributionManagement> > > > > <site> > > > > <id>site-repo</id> > > <url>scp://${reposerver.host.name}/var/www/html/maven2/sites</url> > > > > </site> > > > > </distributionManagement> > > > > When I execute "mvn help:effective-pom" I see that the url is correctly > > resolved to: scp://myrepohost/var/www/html/maven2/sites > > But when I execute "mvn site-deploy" the build fails with an > > UnknownHostException. In the logging I see that the url is not resolved: > > > > [INFO] [site:deploy {execution: default-deploy}] > > scp://${reposerver.host.name}/var/www/html/maven2/sites - Session: > > Connection refused > > scp://${reposerver.host.name}/var/www/html/maven2/sites - Session: > > Disconnecting > > scp://${reposerver.host.name}/var/www/html/maven2/sites - Session: > > Disconnected > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Error uploading site > > > > Embedded error: Cannot connect. Reason: java.net.UnknownHostException: ${ > > reposerver.host.name} > > > > Thanks in advance, > > -- > > Johan Vogelzang --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org