【问题标题】:Connecting maven with putty连接maven和putty
【发布时间】:2011-04-01 03:48:03
【问题描述】:

我在使用带有 mvn-deploy-plugin 的 putty 时遇到问题。

我执行:mvn deploy

这就是我的 settings.xml 的样子:

<server>
  <id>website</id>
  <username>user</username>
  <!--<privateKey>c:\putty\id_rsa</privateKey> -->
  <configuration>
    <sshExecutable>c:\putty\plink</sshExecutable>
    <scpExecutable>c:\putty\pscp</scpExecutable>
  </configuration>
</server>

它总是返回相同的消息,不会在 Google 上触发很多结果。它在网站上调用,然后在 scp 命令上失败。

[错误] 构建错误

[INFO] 检索工件“com.mycompany.myproject:project:war”的先前版本号时出错:无法从存储库中检索“snapshot com.mycomany.myproject:project:2.3-SNAPSHOT”的存储库元数据: snapshots.liege 由于错误:为“网站”配置 wagon 时:无法应用 wagon 配置。

Cannot find setter nor field in org.apache.maven.wagon.providers.ssh.jsch.ScpWagon for 'sshExecutable'

我尝试添加 exe(这对我来说更有意义),但没有任何区别。

【问题讨论】:

    标签: maven-2 scp putty maven-deploy-plugin


    【解决方案1】:

    &lt;distributionManagement&gt; 元素下的 URL 使用什么协议?如果您使用scp://,则需要使用scpexe://

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-27
      • 2014-02-25
      • 1970-01-01
      • 2013-10-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多