【发布时间】:2014-09-24 09:00:44
【问题描述】:
我在 archiva 工作了大约一年,
我通过 archiva GUI 手动上传我的 jar,它运行良好。
现在我想用 maven deploy 上传一个工件,问题是我得到 401-Unauthorized。 请记住:
1.) 我可以毫无问题地从这个存储库下载。
2.) 我使用管理员用户。
3.) 我可以手动上传这个用户。
这是我得到的日志:
[com:apinterface.parent] Downloading: http://xx.xx.xx.xx:9080/archiva/repository/snapshots/com/apinterface.parent/1.0-SNAPSHOT/maven-metadata.xml
[11:43:39][Step 1/3] [INFO] ------------------------------------------------------------------------
[11:43:39][Step 1/3] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project apinterface.parent: Failed to deploy artifacts: Could not transfer artifact com:apinterface.parent:pom:1.0-20140924.084338-1 from/to snapshots (http://xx.xx.xx.xx:9080/archiva/repository/snapshots): Failed to transfer file: http://xx.xx.xx.xx:9080/archiva/repository/snapshots/com/apinterface.parent/1.0-SNAPSHOT/apinterface.parent-1.0-20140924.084338-1.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
【问题讨论】:
标签: maven repository archiva