【发布时间】:2019-04-04 08:34:09
【问题描述】:
我已将 maven 项目导入 Eclipse 版本:2018-09 (4.9.0),但我在 pom 文件中有此错误。我已经在另一台计算机上进行了相同的项目,并且运行良好。该项目是springBoot 2.0.6.RELEASE
Project build error: Non-resolvable parent POM for es.teatreDeGuerrila:teatreDeGuerrilaCloudApp:1.0.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from
https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error:
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and
'parent.relativePath' points at no local POM
我在类中有很多编译错误,比如
The import org.springframework cannot be resolved
从命令行,使用mvn install -Dmaven.test.skip=true,一切正常。
我已经在 Eclipse 中作为手动代理使用了与文件 ../maven/conf/settings.xml 中相同的设置
<proxy>
<id>httpproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.teatre.guerrila.int</host>
<port>8080</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
<proxy>
<id>httpsproxy</id>
<active>true</active>
<protocol>https</protocol>
<host>proxy.teatre.guerrila.int</host>
<port>8443</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
【问题讨论】:
-
您有网络问题:
connect timed out and ....
标签: eclipse maven spring-boot proxy http-proxy