maven 错误收集snapshotRepository

来源:互联网 发布:java语音聊天代码 编辑:程序博客网 时间:2024/06/07 19:00
The packaging for this project did not assign a file to the build artifact

当maven执行install:install出现如上错误时,则尝试改用install执行

当maven执行deploy:deployl出现如上错误时,则尝试改用deployl执行


Failed to deploy artifacts: Could not transfer artifact xxxx:pom:0.0.1-20141122.035618-1 from/to snapshots (http://localhost:8081/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8081/nexus/content/repositories/snapshots/xxx/0.0.1-SNAPSHOT/xxx-0.0.1-20141122.035618-1.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

当出现如上错误时,可能是maven的pom文件中未配置<server>节点,或者当前项目中distributionManagement节点下的repository或snapshotRepository的id不再maven的server配置中

0 0
原创粉丝点击