我很困惑,将不胜感激任何帮助。我的构建机器不能再使用 maven 发布插件。当我尝试在标签部署期间验证失败时。但是,这台机器可以使用标准的部署方法来发布存储库的快照和发布(它们在同一台机器上,以 nexus 为中介)。
部署工件时出错:身份验证失败:无法连接。原因:授权取消
两台机器都是 Windows,我认为 ssh 没问题,因为快照和正常部署工作。我没有运气看过以下内容。欢迎大家提出意见。谢谢
彼得
检查的东西
命令 - 通常由 hudson 运行,但也可以手动运行
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:clean clean --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:prepare --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 deploy --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:perform --batch-mode
聚甲醛
<groupId>com.releng.experiment</groupId>
<artifactId>simplejar</artifactId>
<packaging>jar</packaging>
<version>1.0.16-SNAPSHOT</version>
<name>simplejar</name>
<url>http://maven.apache.org</url>
...
<scm>
<url>http://svn-da/svn/darepos/users/pkahn/simplejar/trunk</url>
<developerConnection>scm:svn:http://svn-da/svn/darepos/users/pkahn/simplejar/trunk</developerConnection>
</scm>
<build>
<finalName>${project.artifactId}-${project.version}-${buildNumber}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>daeng</id>
<name>DA Engineering</name>
<url>scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng/</url>
</repository>
<snapshotRepository>
<id>daeng-snap</id>
<name>DA Engineering</name>
<url>scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng-snap/</url>
</snapshotRepository>
</distributionManagement>
</project>
最佳答案
一些建议/想法:
~/.ssh
目录 known_hosts
文件 <version>2.0</version>
-X
运行看看你是否得到更多有用的信息关于maven-2 - maven 发布插件 - wagon 因 ssh 身份验证失败,但 snapshort 和发布部署工作 - 嗯?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3688381/