Maven Site Deployment Fails with SCP Connection Failure - Windows

I am using the maven release plugin on hudson. I am trying to release a project. Everything works until the release process tries to deploy the site. When he tries to do this, maven fails with a communication error with the error.

Here is the log:

        Using private key: C:\hudson\.ssh\id_rsa
        scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Connection refused 
    scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Disconnecting 
    scp://somehost.somecompany.com/c:/hudson/userContent/some_javadoc/1.9.16/ - Session: Disconnected 
    [INFO] ------------------------------------------------------------------------ 
    [ERROR] BUILD ERROR 
    [INFO] ------------------------------------------------------------------------ 
        [INFO] Error uploading site Embedded error: 
    The host was not known and was not accepted by the configuration: somehost.somecompany.com reject HostKey: somehost.somecompany.com 
[INFO] ------------------------------------------------------------------------ 
[INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 31 seconds [INFO] Finished at: Fri Nov 19 10:19:36 CST 2010 
[INFO] Final Memory: 83M/199M 
[INFO] ------------------------------------------------------------------------ 

I have a server and credentials in the settings.xml file. I also indicated the site in the pom.xml distribution control section.

Any help on this would be appreciated.

+3
source share
1 answer

Maven - somehost.somecompany.com . , ?

Maven -X, , , , , .

+1

Source: https://habr.com/ru/post/1775875/


All Articles