示例消息
error XA4237: Cannot download POM file for Maven artifact 'com.example:mylib:1.0.0'.
error XA4237: - Failed to resolve POM for Maven artifact 'com.example:dependency:2.0.0' from 'https://repo1.maven.org/maven2/com/example/dependency/2.0.0/dependency-2.0.0.pom'.
error XA4237: - Response status code does not indicate success: 404 (Not Found).
问题
尝试从 Maven 下载请求的 POM 文件或其父文件之一或导入的 POM 文件时遇到错误。 该消息标识最初请求的项目和无法解析的 POM URL。
解决方案
检查 Internet 连接,并验证未解析的项目是否在 POM URL 指定的存储库中可用。 所选存储库必须包含请求的项目以及解析所需的所有父或导入的 POM 文件。