I'm new to Liferay, so I started with the tutorials on the official developer website (https://dev.liferay.com/develop/learning-paths/mvc/-/knowledge_base/6-2/writing-your-first-liferay-application).
When I create my first portlet I'm getting the Build Failed error below:
Buildfile: E:\phmathieu\liferay-plugins-sdk-6.2\portlets\build.xml
[get] Getting: http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/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:\Users\TEMP\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error getting http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to C:\Users\TEMP\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Getting: http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/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:\Users\TEMP\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error getting http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to C:\Users\TEMP\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
BUILD FAILED
E:...\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
E:...\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
E:...\liferay-plugins-sdk-6.2\build-common.xml:60: The following error occurred while executing this line:
E:...\liferay-plugins-sdk-6.2\build-common-ivy.xml:130: The following error occurred while executing this line:
E:...\liferay-plugins-sdk-6.2\build-common-ivy.xml:81: java.net.ConnectException: Connection refused: connect
Total time: 1 second
I have no idea why I get this message since I basically followed the steps in the tutorial. I looked online for similar cases but it hasn't been helpful yet.
Edit:
What happens at line 81 in build-common-ivy.xml : (line 81 is the /> ending the second get)
<if>
<equals arg1="@{trylocalnetwork}" arg2="true" />
<then>
<trycatch>
<try>
<get
dest="${mirrors.cache.artifact.dir}"
ignoreerrors="@{ignoreerrors}"
src="${mirrors.src}"
verbose="@{verbose}"
/>
</try>
<catch>
<get
dest="${mirrors.cache.artifact.dir}"
ignoreerrors="@{ignoreerrors}"
src="@{src}"
verbose="@{verbose}"
/>
</catch>
</trycatch>
</then>
<else>
<get
dest="${mirrors.cache.artifact.dir}"
ignoreerrors="@{ignoreerrors}"
src="@{src}"
verbose="@{verbose}"
/>
</else>
</if>
liferay-plugins-sdk-6.2\build-common-ivy.xml
at line 81? I guess a server is contacted to fetch dependent jars. The server may be down at the moment, the project repo that is contacted may have been moved or one several other problems may have arised (network problems, dns problems ...) – blafasel