mvn - deploying problem

G

golem

Hi!

I use maven to develop software and recently encounter a problem
deploying a generated project site.
I am using scp protocol (no external scp/ssh programs) for deploying
but when I invoke "mvn site:deploy"
it prompts me to accept a host's key:
RSA key fingerprint is b4:a2:e7:8a:44:13:16:af:0a:c6:9d:c9:20:d5:32:91.
Are you sure you want to continue connecting? (yes/no):

The problem is that although I can accept the key each time I am
deploying the project site from my local workstation, it can't be
automatically deployed by continuous integration software
(CruiseControl to be
more specific). I get this error from mvn running on the remote
machine:
Embedded error: Cannot connect. Reason: reject HostKey: cruise.veraxsystems.pl

And my question - is there any way to force maven-site-deploy to
accept the host's key without confirmation?
The ideal solution would be adding the key to settings.xml in
<repository/> section so the deploy plugin
will not be asking for it - I wonder if this is possible.

(I have already tried to run mvn in non-interactive mode using "-b"
command line switch but this produces
the same error).

Any help appreciated.
Thanks in advance
Artur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top