致命:[M2Release]无法关闭存储库,提供的用户名/密码不正确

时间:2016-05-04 14:26:47

标签: maven nexus maven-release-plugin

我正在尝试使用maven发布插件进行发布,但每次都会出现以下错误。

FATAL: [M2Release] Could not close repository , Incorrect username / password supplied.

org.jvnet.hudson.plugins.m2release.nexus.StageException: Incorrect username / password supplied.
    at org.jvnet.hudson.plugins.m2release.nexus.StageClient.createStageExceptionForIOException(StageClient.java:630)
    at org.jvnet.hudson.plugins.m2release.nexus.StageClient.getDocument(StageClient.java:496)
    at org.jvnet.hudson.plugins.m2release.nexus.StageClient.getOpenStageIDs(StageClient.java:360)
    at org.jvnet.hudson.plugins.m2release.nexus.StageClient.getOpenStageID(StageClient.java:114)
    at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:196)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:882)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.IOException: Incorrect username / password supplied.
    at org.jvnet.hudson.plugins.m2release.nexus.StageClient.getDocument(StageClient.java:485)
    ... 9 more

我不确定为什么会出现此错误,当我手动登录Nexus时,凭据似乎对Nexus有效。

当我查看Staging存储库时,工件看起来就像部署了一样。

1 个答案:

答案 0 :(得分:0)

我不得不在Jenkins的Maven发布页面上取消选中Close repository,问题就消失了。