什么是使ssh主机真实性成为maven和hudsno构建问题的正确方法?
我有哈德森在VM上构建我的maven项目.当我的VM上的ESX服务器被征税时,我的一些工作将停滞在ssh主机真实性问题的循环中.主机位于已知的主机文件中,但在这些时间内,从属VM上的时钟已远离我的maven repo.
[INFO] Retrieving previous build number from snapshots
The authenticity of host 'maven.mycorp.com' can't be established.
DSA key fingerprint is 6d:....83.
Are you sure you want to continue connecting? (yes/no): The authenticity
of host 'maven.mycorp.com' can't be established.
Run Code Online (Sandbox Code Playgroud)
除了禁用主机检查之外还有什么(CheckHostIP否)吗?
我正在尝试将资源复制到另一个位置.我正在使用maven wagon-ssh插件来执行此操作.它在本地工作正常,我在使用Hudson/Jenkins时遇到问题.
我的settings.xml文件看起来像这样:
<servers>
<server>
<id>iq</id>
<configuration>
<knownHostsProvider implementation="org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider">
<hostKeyChecking>no</hostKeyChecking>
</knownHostsProvider>
</configuration>
<username>user</username>
<password>pass</password>
</server>
</servers>
Run Code Online (Sandbox Code Playgroud)
我尝试了这个答案来跳过检查,因为我得到了:
Are you sure you want to continue connecting? (yes/no): The authenticity of host 'address' can't be established.
RSA key fingerprint is 10:.......:bb.
Run Code Online (Sandbox Code Playgroud)
但现在我得到了:
Could not apply configuration for iq to wagon org.apache.maven.wagon.providers.ssh.jsch.ScpWagon:ClassNotFoundException: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider' cannot be loaded
org.codehaus.plexus.component.configurator.ComponentConfigurationException: ClassNotFoundException: Class name which was explicitly given in configuration using 'implementation' …Run Code Online (Sandbox Code Playgroud)