1

I have installed the Liferay IDE 3.0 pluggin to Eclipse, Liferay portal 6.2 CE - GA6 server bundled with tomcat, liferay plugins SDK 6.2.

Trying to create my first portlet, but ending up with build failure, with the following error. Your Help is greatly appreciated, thanks.

Buildfile: E:\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\shiva\.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\shiva\.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\shiva\.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: HTTP Authorization failure

Total time: 1 second
olibiaz
  • 2,551
  • 4
  • 29
  • 31
shiva K
  • 11
  • 1
  • 2

3 Answers3

4

In build.properties file just change that value of ivy.jar.url to:

ivy.jar.url=https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar

There are a problem in the repository!!

I faced the same issue and it works fine now

Houssam Badri
  • 2,441
  • 3
  • 29
  • 60
  • I think this link is not accessible now :(. I answer with a new URL which is not in Maven central repository. More chances to stay active (I hope !). – lpratlong Jun 07 '16 at 16:24
0

In ivy-settings.xml check for the credentials tag and add if not existing

<credentials host="${nexus.host}" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}" />  

link: http authentication between using ant/ivy retrieving dependency from nexus?

Community
  • 1
  • 1
KlajdPaja
  • 959
  • 1
  • 8
  • 17
0

try this- Copy the "ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar" from fresh sdk and pest into .ivy folder

sanjay
  • 1
  • 2