Springboot,maven依赖项错误

时间:2018-05-15 15:52:10

标签: maven spring-boot-maven-plugin

我有一个示例弹簧启动应用程序部署在我的系统中,这让我跟着错误。我试图清除缓存仍然遇到问题的缓存中的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

1 个答案:

答案 0 :(得分:0)

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