Oh I forgot...

I use Maven 2.2.1 and maven-site-plugin version 2.3.
The behavior is the same on Windows and Linux.

Johan.


2011/7/13 Johan Vogelzang <[email protected]>

> 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
>



-- 
Johan Vogelzang

Reply via email to