【问题标题】:Springboot,maven dependencies errorSpring Boot,maven依赖错误
【发布时间】:2018-05-15 15:52:10
【问题描述】:

我有一个示例 Spring Boot 应用程序要部署在我的系统中,这引发了以下错误。我尝试从缓存中清理 maven 文件仍然遇到问题。谁能帮我这个。以下是我得到的错误

Project build error: Non-resolvable parent POM for com.broad.gateway:com-
 gateway:0.0.1-SNAPSHOT: Could not transfer artifact 
 org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE from/to 
 central (https://repo.maven.apache.org/maven2): connect timed out and 
 'parent.relativePath' points at no local POM

【问题讨论】:

  • 您似乎有网络错误...我假设您需要使用您似乎没有使用的防火墙/代理配置...
  • 那我应该手动执行吗?你能指导我完成这个过程吗,因为我是这个过程的新手
  • 我在我的文件中也包含了 settings.xml ,但它仍然会引发相同的错误。我应该在任何地方使用上面链接中的代码到我的代码中吗?或有什么变化?
  • 问题出在 Maven 依赖项上。我修复了我在本地安装 maven 的问题。谢谢

标签: maven spring-boot-maven-plugin


【解决方案1】:

您收到连接超时错误。这通常发生在您位于公司防火墙后面并且您的公司限制与 maven Central 或任何其他 repos 的连接时。尝试在 repositories 部分的 pom.xml 下定义您公司特定的 nexus 存储库。

【讨论】:

    猜你喜欢
    • 2018-03-31
    • 2016-06-05
    • 2016-09-17
    • 2016-07-16
    • 2016-10-10
    • 2018-03-01
    • 2019-03-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多