wagon ssh / scp: No connector available to access repository … of type default using the available factories WagonRepositoryConnectorFactory

眉间皱痕 提交于 2019-12-05 10:42:05

You have a submenu layout and

<build>
  <extensions>
    <extension>
      <groupId>org.apache.maven.wagon</groupId>
      <artifactId>wagon-ssh</artifactId>
      <version>2.10</version>
  </extension>
</extensions>

Was not found while uploading! As you resolved the issue via referencing <relativePath> the parent, the wagon-ssh was finally found in the parent-pom.

By the way, if you run into this problem by mvn release and this is the only step that failed, you do not need to release again, just type mvn deploy to complete the release!

I must admit I feel slightly stupid but since others might have similar issues I am showing what resolved the issue:

<parent>
    <groupId>XXX</groupId>
    <artifactId>XXX</artifactId>
    <version>XXX-SNAPSHOT</version>
    <relativePath>../XXX/pom.xml</relativePath>
</parent>

so the pom declarations shown above where merely not being picked up at all.

use <url>scpexe://XXX/srv/repo/snapshots/</url> unless <url>scp://XXX/srv/repo/snapshots/</url>

look up deploy-ssh-external

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!