2014-10-20 80 views
0

我只是在Eclipse中設置了我的Grails/Groovy STS套件。我創建了一個新的Grails項目,當我右鍵點擊該項目並選擇Grails - >刷新依賴項,它無法下載依賴項(下面的錯誤日誌),因此不構建我的項目。從Eclipse下載Grails插件 - Luna

我認爲這可能是一個代理問題,但我從來沒有在我的Eclipse的代理設置,我總是下載Spring套件/和所有其他插件從更新網站或市場的地方就好了,所以不能成爲代理問題。

此外,我沒有檢查所有的網址,但一些網站打印到控制檯實際上是扔404錯誤!這是STS的最新安裝,以及它如何看錯地點?我需要做什麼嗎?

有什麼想法?

(前幾個錯誤消息從控制檯線)

Starting process on MYPC/XXX.XXX.XXX.XX 
Loading Grails 2.4.3 
|Configuring classpath 
:: problems summary :: 
:::: WARNINGS 
    Host repo.grails.org not found. url=http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host repo.grails.org not found. url=http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
    Host snapshots.repository.codehaus.org not found. url=http://snapshots.repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host snapshots.repository.codehaus.org not found. url=http://snapshots.repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
    Host repository.codehaus.org not found. url=http://repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host repository.codehaus.org not found. url=http://repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
    Host download.java.net not found. url=http://download.java.net/maven/2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host download.java.net not found. url=http://download.java.net/maven/2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
    Host repository.jboss.com not found. url=http://repository.jboss.com/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
    Host repository.jboss.com not found. url=http://repository.jboss.com/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip 
     module not found: org.grails.plugins#tomcat;2.4.3 
    ==== grailsPlugins: tried 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
     Y:\workspaces_trunk\GMon\lib\tomcat-2.4.3.zip 
    ==== grailsHome: tried 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\ivy-2.4.3.xml 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\jars\tomcat-2.4.3.zip 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\bundles\tomcat-2.4.3.zip 
    ==== grailsHome: tried 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\dist\tomcat-2.4.3.pom 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\dist\tomcat-2.4.3.zip 
    ==== grailsHome: tried 
     C:\Users\rp48085\.grails\2.4.3\cached-installed-plugins\tomcat-2.4.3.xml 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
     C:\Users\rp48085\.grails\2.4.3\cached-installed-plugins\tomcat-2.4.3.zip 
    ==== grailsHome: tried 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\plugins\tomcat-2.4.3.pom 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
     C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\plugins\tomcat-2.4.3.zip 
    ==== grailsCentral: tried 
     http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom 
     -- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip: 
+0

它現在正在運行 - 你可以再試一次嗎?如果它仍然不起作用,你可以在網頁瀏覽器中打開一個repo.grails.org網址嗎? – 2014-10-20 04:01:43

+0

實際上,這個URL http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom返回錯誤。所以問題似乎在別處。 – Opal 2014-10-20 05:24:18

+0

沒有運氣,我試過運行grails add-proxy和grails set-proxy命令,但它仍然沒有下載。 – endless 2014-10-20 17:40:16

回答

0

我通過運行解決它「的Grails添加代理」和「Grails的設置代理服務器」命令一個接一個。我已經嘗試在Eclipse-> Window-> Preferences中設置代理設置,因爲我總是這樣做來從Eclipse獲取插件/下載。但是grails顯然不使用這些設置,所以需要使用上述命令給予代理設置。

+0

您能詳細說明代理應該是什麼嗎? – nbkhope 2017-06-13 01:03:50