2014-10-30 41 views
1

加載了Consuming REST Quick Start後,沒有任何明顯問題,我無法構建該項目。無法構建Spring Tool Suite快速入門

以下是從春天工具套件錯誤消息:

[INFO] Scanning for projects... 
[INFO] Downloading: http://repo.spring.io/libs-release/org/springframework/boot/spring-boot-starter-parent/1.1.8.RELEASE/spring-boot-starter-parent-1.1.8.RELEASE.pom 
[INFO] Downloading: http://central.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.1.8.RELEASE/spring-boot-starter-parent-1.1.8.RELEASE.pom 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project org.springframework:gs-consuming-rest:0.1.0 (/Users/matthewbrown/Documents/workspace/gs-consuming-rest-initial/pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.1.8.RELEASE from/to spring-releases (http://repo.spring.io/libs-release): connect timed out and 'parent.relativePath' points at wrong local POM @ line 10, column 13 -> [Help 2] 
[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/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 
+0

那麼POM的存在。你可以從該機器到達以下URL:http://repo.spring.io/libs-release/org/springframework/boot/spring-boot-starter-parent/1.1.8.RELEASE/ – 2014-10-30 13:02:05

+0

是的,我可以達到該URL通過瀏覽器和捲曲。 – 2014-10-31 12:22:08

+0

好的,算出來 - 感謝Alan的清晰,直接的迴應。根據您的反饋,我開始研究代理設置等。由於此客戶端的安全設置,我的機器很複雜。他們有代理服務器,所以無論何時我跳上或脫離他們的網絡,我都有腳本來切換設置。它看起來像我需要它也替換我的〜/ .m2/settings.xml文件與替代使用場景的另一個版本。 ......這是我在該文件中設置的代理。一旦我關閉代理,Spring Tool Suite/eclipse就開始工作 - 爲此。 – 2014-10-31 12:38:51

回答

4

問題竟然是在〜/ .m2目錄/ settings.xml文件。它有一套爲我的客戶在某些辦公網絡上使用而定義的代理。禁用這些代理允許Spring Tool Suite再次運行。

現在爲如何使開關網絡之間的交換更容易達到...