You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Johan Vogelzang <jo...@gmail.com> on 2011/07/13 17:05:25 UTC
Site deploy problem
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
Re: Site deploy problem
Posted by Hervé BOUTEMY <he...@free.fr>.
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 <jo...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site deploy problem
Posted by Johan Vogelzang <jo...@gmail.com>.
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 <jo...@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
>
--
Johan Vogelzang
Re: Re: Site deploy problem
Posted by Johan Vogelzang <jo...@gmail.com>.
Thorsten,
We use username/password authentication, and my settings.xml is set up as
you described.
But I don't think this is a authentication issue. As you can see the
hostname is not resolved properly so there is no server connection to do the
authentication.
Regards,
Johan.
2011/7/13 Thorsten Heit <th...@vkb.de>
> Hi,
>
> > 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.
>
> What kind of SCP transfer do you want to use? Password-less, i.e.
> public-key-authentification, or using username/password?
>
> In the first case:
> Did you upload your public key to the remote machine?
>
> In the latter case:
> You have to add a server entry section containing your user credentials in
> your $HOME/.m2/settings.xml:
>
> <servers>
> <server>
> <id>site-repo</id>
> <username>your_username</username>
> <password>your_password</password>
> </server>
> ...
> </servers>
>
>
> Regards
>
> Thorsten
--
Johan Vogelzang
Antwort: Re: Site deploy problem
Posted by Thorsten Heit <th...@vkb.de>.
Hi,
> 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.
What kind of SCP transfer do you want to use? Password-less, i.e.
public-key-authentification, or using username/password?
In the first case:
Did you upload your public key to the remote machine?
In the latter case:
You have to add a server entry section containing your user credentials in
your $HOME/.m2/settings.xml:
<servers>
<server>
<id>site-repo</id>
<username>your_username</username>
<password>your_password</password>
</server>
...
</servers>
Regards
Thorsten
Re: Site deploy problem
Posted by Lukas Theussl <lt...@apache.org>.
site-plugin-2.3 has some problems with property resolution, see eg
http://jira.codehaus.org/browse/MSITE-585. I'm not sure if this is the
same issue as yours, could you try with 2.4-SNAPSHOT?
HTH,
-Lukas
Johan Vogelzang wrote:
> 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<jo...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site deploy problem
Posted by Johan Vogelzang <jo...@gmail.com>.
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 <jo...@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
>
--
Johan Vogelzang