You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vinay Kumar <vi...@yahoo.co.uk> on 2006/07/20 15:47:32 UTC
Default dir fo site src
Hi All,
Can someone please tell me how we can change default site source directory where we can place our site.xml .
I look super pom given in BBWM , there is implemention for site output directory but nothing for site src directory.
Thanks
Vinay
Re: Default dir fo site src
Posted by dcabasson <de...@insee.fr>.
Vinay Kumar-5 wrote:
>
>
> Hi dcabasson ,
> Will it not work by placing below mention part either in build or report:
>
> I tried this but doesn't work. how we can put these in dependencies . In
> dependencies we put jars on which our project depend.
>
Well, sure, this has nothing to do in the dependencies. In the
build/plugins/plugin, it should work just fine (you have got a >in extra,
and relative paths shouldn't start with a '/', I guess).
--
View this message in context: http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5434465
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Default dir fo site src
Posted by Vinay Kumar <vi...@yahoo.co.uk>.
Hi dcabasson ,
Will it not work by placing below mention part either in build or report:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<siteDirectory>>/path/to/site/dir</siteDirectory>
</configuration>
<plugin>
I tried this but doesn't work. how we can put these in dependencies . In dependencies we put jars on which our project depend.
Thanks
Vinay
----- Original Message ----
From: dcabasson <de...@insee.fr>
To: users@maven.apache.org
Sent: Friday, 21 July, 2006 3:39:46 PM
Subject: Re: Default dir fo site src
Vinay Kumar-5 wrote:
>
> It doesn't work I also tried
> <siteSourceDirectory>/path/to/site/dir</siteSourceDirectory>
> but no luck.
>
Try the parameter siteDirectory of maven-site-plugin:
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html
(you can put it in your dependencies or dependencyManagement part, I guess)
Denis
--
View this message in context: http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431340
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Default dir fo site src
Posted by dcabasson <de...@insee.fr>.
Vinay Kumar-5 wrote:
>
> It doesn't work I also tried
> <siteSourceDirectory>/path/to/site/dir</siteSourceDirectory>
> but no luck.
>
Try the parameter siteDirectory of maven-site-plugin:
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html
(you can put it in your dependencies or dependencyManagement part, I guess)
Denis
--
View this message in context: http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431340
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2]Release plugin and host authentication
Posted by Sebastien Pennec <se...@qos.ch>.
Hello Denis,
It helped: the host is now accessible without having to answer to the question I
mentionned. The known_hosts file does the trick, just like you said.
The site:deploy goal works flawlessly.
But when I run release:perform, it gets stuck at site:deploy, at the moment when the
plugin is supposed to ask me for my password. When running directly site:deploy, I
can enter my password (echoed in clear text, but I think the issue has already been
added to JIRA), and then the deployment continues. Here, the command line displays
[INFO] [site:deploy] and stops. I cannot enter anything, and the action never stops.
Having the password present or not in the settings file, where the server is declared
doesn't change anything.
Sebastien
dcabasson a écrit :
>
> Sebastien Pennec wrote:
>> Does anybody know how to be able to answer 'yes' to that question? Or just
>> to get rid
>> of it?
>>
>
> Try adding an empty file ~/.ssh/known_hosts
>
> Latest version of maven-wagon plugin will add the fingerprints of your hosts
> there.
>
> As you're using external ssh/scp programs (why not use internal maven ones),
> these file might not be used. (I guess putty is storing known_hosts
> somewhere in registry).
> Well, anyone, try with this file, and try with maven native ssh connection.
>
> Hope it helps.
>
> Denis.
--
Sebastien Pennec
sebastien@qos.ch
LOGBack: the generic, reliable, fast and flexible logging library for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2]Release plugin and host authentication
Posted by dcabasson <de...@insee.fr>.
Sebastien Pennec wrote:
>
> Does anybody know how to be able to answer 'yes' to that question? Or just
> to get rid
> of it?
>
Try adding an empty file ~/.ssh/known_hosts
Latest version of maven-wagon plugin will add the fingerprints of your hosts
there.
As you're using external ssh/scp programs (why not use internal maven ones),
these file might not be used. (I guess putty is storing known_hosts
somewhere in registry).
Well, anyone, try with this file, and try with maven native ssh connection.
Hope it helps.
Denis.
--
View this message in context: http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431309
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[M2]Release plugin and host authentication
Posted by Sebastien Pennec <se...@qos.ch>.
Hi,
I've been using site:deploy with success to send my generated website to a server.
The plugin always asks me this:
The authenticity of host 'hostname' can't be established.
RSA key fingerprint is 83:7c:87:14:56:bb:4a:46:02:e8:56:dd:c8:5c:34:22.
Are you sure you want to continue connecting? (yes/no):
I answer 'yes' and everything works fine.
Unfortunately, when I specify the goal site:deploy in the release plugin config, I
get the following same message, but without possibility to answer. The plugin gets
stuck and waits forever.
My pom distributionManagement is:
<distributionManagement>
<site>
<id>hostname</id>
<url>scp://hostname/var/www/...... </url>
</site>
</distributionManagement>
I have the following config in my server.xml file:
<server>
<id>hostname</id>
<username>seb</username>
<configuration>
<sshExecutable>plink</sshExecutable>
<scpExecutable>pscp</scpExecutable>
<!--sshArgs>other arguments you may need</sshArgs> -->
</configuration>
</server>
Does anybody know how to be able to answer 'yes' to that question? Or just to get rid
of it?
Thanks,
Sebastien
--
Sebastien Pennec
sebastien@qos.ch
LOGBack: the generic, reliable, fast and flexible logging library for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Default dir fo site src
Posted by Vinay Kumar <vi...@yahoo.co.uk>.
It doesn't work I also tried
<siteSourceDirectory>/path/to/site/dir</siteSourceDirectory>
but no luck.
Thanks
Vinay
----- Original Message ----
From: Tim Kettler <ti...@udo.edu>
To: Maven Users List <us...@maven.apache.org>
Sent: Friday, 21 July, 2006 12:45:55 AM
Subject: Re: Default dir fo site src
try <siteDirectory>/path/to/site/dir</siteDirectory>
-Tim
Vinay Kumar schrieb:
> Hi All,
>
> Can someone please tell me how we can change default site source directory where we can place our site.xml .
> I look super pom given in BBWM , there is implemention for site output directory but nothing for site src directory.
>
> Thanks
> Vinay
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Default dir fo site src
Posted by Tim Kettler <ti...@udo.edu>.
try <siteDirectory>/path/to/site/dir</siteDirectory>
-Tim
Vinay Kumar schrieb:
> Hi All,
>
> Can someone please tell me how we can change default site source directory where we can place our site.xml .
> I look super pom given in BBWM , there is implemention for site output directory but nothing for site src directory.
>
> Thanks
> Vinay
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org