用户无法使用Maven部署到Nexus 3,只能使用UI

时间:2019-04-04 13:34:13

标签: maven-3 sonatype nexus3

我正在编写有关如何设置Travis CI以部署到我们本地Nexus 3 Maven存储库的说明。我正在测试自己的说明,以确保一切正常。我发现除非使用管理员凭据,否则无法使用maven上传任何工件。作为普通用户,我可以使用提供的Web UI上载,但不能使用Maven。 所有用户都对托管存储库具有完全管理权限,并且拥有启用UI上传的nx-component-upload特权。 我肯定错过了什么。运行Maven部署时收到的错误消息是:

   org.apache.maven.shared.transfer.artifact.deploy.ArtifactDeployerException: Failed to deploy artifacts: Could not transfer artifact nz.org.riskscape:rsum_api:jar:1.0 from/to juglab-release (https://dais-maven/repository/juglab-release/): Failed to transfer file https://dais-maven/repository/juglab-release/nz/org/riskscape/rsum_api/1.0/rsum_api-1.0.jar with status code 401

感谢您的任何帮助

1 个答案:

答案 0 :(得分:0)

我终于使它起作用了。问题出在设置文件中,用户名输入错误。