为 Talend ESB 项目运行 Azure DevOps 管道 maven 错误

runing an Azure DevOps pipeline for a Talend ESB project maven error

我正在尝试 运行 用于 talend ESB 项目的 Azure DevOps 管道,但我收到此错误消息:

[ERROR] Failed to execute goal on project routines: Could not resolve dependencies for project org.example.local_project.code:routines:jar:7.3.1: Could not find artifact org.talend.libraries:crypto-utils:jar:5.2.0 in central (https://repo.maven.apache.org/maven2) -> [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] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :routines

请帮忙。

根据错误信息日志,这个错误一般发生在Maven无法下载依赖的时候。此错误的可能原因是:

  1. POM 遗漏了承载 神器。
  2. 您配置的存储库需要身份验证和 Maven 未能向服务器提供正确的凭据。在这个 案例,请确保您的 ${user.home}/.m2/settings.xml 包含 与遥控器的 相匹配的声明 要使用的存储库。有关更多信息,请参阅 Maven Settings Reference 详情。
  3. 有问题的远程存储库使用 SSL 和 JVM 运行 Maven 不信任服务器的证书。
  4. 存在阻止 Maven 的一般网络问题 访问任何远程存储库,例如缺少代理配置。
  5. 您已将 Maven 配置为执行严格的校验和验证,并且 要下载的文件已损坏。
  6. Maven 无法将文件保存到本地存储库,请参阅 LocalRepositoryNotAccessibleException了解更多详情。

你可以参考这个document来解决问题。