2015-12-03 78 views
1

在Liferay IDE中創建portlet時,會引發錯誤。檢查以下錯誤的詳細信息:無法在Liferay IDE中創建portlet

Downloading https://services.gradle.org/distributions/gradle-2.5-bin.zip 

Exception in thread "main" java.net.ConnectException: Connection refused: connect 
    at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) 
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) 
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) 
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) 
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 
    at java.net.Socket.connect(Socket.java:579) 
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625) 
    at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160) 
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180) 
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) 
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) 
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275) 
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) 
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) 
    at org.gradle.wrapper.Download.downloadInternal(Download.java:58) 
    at org.gradle.wrapper.Download.download(Download.java:44) 
    at org.gradle.wrapper.Install$1.call(Install.java:59) 
    at org.gradle.wrapper.Install$1.call(Install.java:46) 
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) 
    at org.gradle.wrapper.Install.createDist(Install.java:46) 
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126) 
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) 

服務器與互聯網連接,其他插件從市場上安裝。我知道如何安裝Gradle for build任務,但不知道liferay sdk的配置。 (Liferay版本:liferay-portal-6.2-ce-ga5和SDK版本:liferay-plugins-sdk-6.2-ce-ga5)

回答

2

我唯一的解決方案是直接連接機器和互聯網代理)。

由於eclipse和gradle配置中的代理設置沒有幫助。

+0

如果在代理服務器上工作時有任何可用於liferay開發環境的guildeline,請在此處分享鏈接。 –