docker构建后端镜像404错误

评论

7 条评论

  • DJI Developer Support
    Apache仓库中的maven 3.8.5版本已经被移除,把版本号改成3.8.6就可以了。
    1
    评论操作 固定链接
  • LingyanBao

    好的,谢谢

    0
    评论操作 固定链接
  • DJI Developer Support
    不客气
    0
    评论操作 固定链接
  • LingyanBao

    改了版本号之后是还要该其它地方吗?改了dockerfile里的版本号又出现校验和错误

    Step 6/12 : RUN mkdir -p /usr/share/maven /usr/share/maven/ref   && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz   && echo "${SHA}  /tmp/apache-maven.tar.gz" | sha512sum -c -   && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1   && rm -f /tmp/apache-maven.tar.gz   && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
     ---> Running in b70cfca243c0
    sha512sum: WARNING: 1 computed checksum did NOT match
    /tmp/apache-maven.tar.gz: FAILED
    0
    评论操作 固定链接
  • DJI Developer Support
    ARG SHA=f790857f3b1f90ae8d16281f902c689e4f136ebe584aba45e4b1fa66c80cba826d3e0e52fdd04ed44b4c66f6d3fe3584a057c26dfcac544a60b301e6d0f91c26 把SHA 参数也改一下
    0
    评论操作 固定链接
  • LingyanBao
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  10:20 min
    [INFO] Finished at: 2022-06-21T03:32:43Z
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project cloud-api-sample: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:3.2.0 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven:maven-artifact:jar:3.1.0 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.1.0/maven-artifact-3.1.0.jar: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.92.215] failed: Connection timed out (Connection timed out) -> [Help 1]

    这个错误是因为网络原因?

    0
    评论操作 固定链接
  • DJI Developer Support
    看报错是超时了。
    0
    评论操作 固定链接

请先登录再写评论。