• DevOps
  • 阿里云maven中没有需要的依赖,报错如下。依赖包我已经找到,如何手动添加依赖!谢谢

这样情况,我有两个建议供你参考:

  • 搭建一个私有的 Nexus
    • 上传缺失的依赖文件
  • 更换一个 Maven 服务器
    9 天 后

    Rick 搭建私有的 Nexus,我试过了,报错
    [INFO] ——————————–[ jar ]———————————

    Downloading from maven-central: http://192.168.0.229:8081/repository/maven-public/com/xs/pop-sdk/1.10.58/pop-sdk-1.10.58.jar

    [INFO] ————————————————————————

    [INFO] Reactor Summary:

    [ERROR] Failed to execute goal on project order: Could not resolve dependencies for project com.xs:order:jar:0.0.2-SNAPSHOT: Could not find artifact com.xs:pop-sdk:jar:1.10.58 in maven-central (http://192.168.0.229:8081/repository/maven-public/) -> [Help 1]

    [ERROR]

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR]

    明明加到私有maven仓库了,可系统还是找不到!

      jingangshi
      这个跟系统关系不大,你本地切换一个仓库地址,测试一下先把
      devOps实际就是run一个带maven环境的容器去执行而已