目前我尝试执行mvn版本:执行但是当它进入maven-site阶段时会挂起。
这是登录调试模式,直到它挂起
[INFO] Using credentials from server id 'maven-site'
[INFO] [DEBUG] configureWagon
[INFO] [DEBUG] configureWagon server snapshots
[INFO] [DEBUG] configureWagon server releases
[INFO] [DEBUG] configureWagon server maven-site
[INFO] [DEBUG] configureWagon server release.server
[INFO] [DEBUG] configureWagon server svn.srs-pen.de
[INFO] [DEBUG] repository protocol scp
[INFO] [DEBUG] getProxy 'protocol': scp
[INFO] [DEBUG] getProxy 'protocol': scp no ProxyInfo found
[INFO] [DEBUG] Mapped url: scp://release.server/srv/www/htdocs/foo.bar
/foobar-module/4.1.4/foobar-module/ to relative path: ..\..\..\foo.bar\foobar-
module\4.1.4\foobar-module
[INFO] [DEBUG] top distributionManagement.site.url=scp://release.server/srv/ww
w/htdocs/foo/parent/1.23/, actual module relative path: ../../../de.s
rs.pen.foobar/foobar-module/4.1.4/foobar-module
[INFO] [DEBUG] Mapped url: scp://release.server/srv/www/htdocs/foo.bar
/foobar-module/4.1.4/foobar-module/ to relative path: ..\..\..\foo.bar\foobar-
module\4.1.4\foobar-module
[INFO] [DEBUG] authenticationInfo with id 'maven-site': mvnsite
[INFO] [DEBUG] connect with authenticationInfo and without proxyInfo
[INFO] Using private key: C:\Users\foouser\.m2\playground-mvnsite.ppk
[INFO] The authenticity of host 'release.server' can't be established.
[INFO] RSA key fingerprint is e9:49:9c:c7:2b:02:dd:a8:4e:04:09:8f:e7:eb:03:ef.
distriubution配置如下
<distributionManagement>
<repository>
<id>releases</id>
<url>http://release.server/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://release.server/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
<site>
<id>maven-site</id>
<url>scp://release.server/srv/www/htdocs/${project.groupId}/${project.artifactId}/${project.version}/</url>
</site>
</distributionManagement>
有什么想法吗? 感谢
答案 0 :(得分:0)
你是否也有与release.server的ssh连接?或者只是http连接?我猜maven网站正在使用ssh来复制文档。