2016-10-03 81 views
0
[Console output redirected to    file:C:\Rahul13615\liferay\eclipse\workspace\.metadata\.plugins\com.liferay.ide. sdk.core\sdk.log] 
Buildfile: C:\Rahul13615\liferay\plugins\portlets\build.xml 
    [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy- 2.3.0.jar 
    [get] To: C:\Rahul13615\liferay\plugins\.ivy\ivy-2.3.0.jar 
    [get] Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to C:\Rahul13615\liferay\plugins\.ivy\ivy-2.3.0.jar 

BUILD FAILED 
C:\Rahul13615\liferay\plugins\portlets\build.xml:5: The following error occurred while executing this line: 
C:\Rahul13615\liferay\plugins\build-common-plugins.xml:5: The following error occurred while executing this line: 
C:\Rahul13615\liferay\plugins\build-common.xml:47: The following error occurred while executing this line: 
C:\Rahul13615\liferay\plugins\build-common-ivy.xml:17: java.net.SocketException: Connection reset 

Total time: 1 minute 27 seconds 

我尝试创建一个新项目并且发生这种情况。我试着将jre版本从1.8更改为1.7,它没有工作..请帮助我!我无法创建Liferay插件项目

回答

0

试试这个:

ivy.jar.url=https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar 

而非目前ivy.jar.url=...

希望它能帮助。

+0

我将ivy.jar.url更改为上面提到的url,现在它提出了一个新的错误,如下所示: –

+0

@RahulSharma什么是错误? – German

+0

以下是错误: Buildfile:C:\ Rahul13615 \ liferay \ plugins \ portlets \ build.xml [get]获取:https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots /com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar [get] To:C: \ Rahul13615 \ liferay \ plugins \ .ivy \ org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar [taskdef]无法从资源org/apache/ivy/ant/antlib.xml加载定义。它找不到。 –