Foros de discusión

Liferay 6.2 first application build failed-HTTP Authorization failure

thumbnail
Chandan Sharma, modificado hace 7 años.

Liferay 6.2 first application build failed-HTTP Authorization failure

Junior Member Mensajes: 54 Fecha de incorporación: 4/03/14 Mensajes recientes
HI All,
I have done liferay 6.2 ga6 setup with the following softwares
1)liferay-plugins-sdk-6.2-ce-ga6-20160112152609836
2)liferay-portal-src-6.2-ce-ga6-20160112152609836
3)apache-tomcat-7.0.42
4)Eclipse-Kepler (already liferay-IDE existed)
but while creating the first liferay project I am getting following error ,so any one could you please help me out


BUILD FAILED
E:\liferay-basic-ga6\plugins\portlets\build.xml:5: The following error occurred while executing this line:
E:\liferay-basic-ga6\plugins\build-common-plugins.xml:5: The following error occurred while executing this line:
E:\liferay-basic-ga6\plugins\build-common.xml:60: The following error occurred while executing this line:
E:\liferay-basic-ga6\plugins\build-common-ivy.xml:130: The following error occurred while executing this line:
E:\liferay-basic-ga6\plugins\build-common-ivy.xml:81: HTTP Authorization failure
thumbnail
Bangaru Raju Potnuru, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 22 Fecha de incorporación: 22/11/14 Mensajes recientes
Hi Chandan Sharma I am also facing with the same issue ,if you find please let me know
thumbnail
Bangaru Raju Potnuru, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 22 Fecha de incorporación: 22/11/14 Mensajes recientes
Hi Chandan Sharma
My problem got resolved ,i have just changed the following properties values
1) ivy.version = 2.3.0
2)ivy.jar.url = http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar in build.{UserName}.properties
udith narangoda, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensaje: 1 Fecha de incorporación: 10/02/17 Mensajes recientes
RE: Liferay 6.2 first application build failed-HTTP Authorization failure
Jingfeng Zhou, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 5 Fecha de incorporación: 15/02/17 Mensajes recientes
Hello, Bangaru Raju Potnuru:

Can you tell me which file have you changed?

I'm using liferay 6.2 and I can only find "liferay-plugin-package.properties" in my project.

However, in "liferay-plugin-package.properties" file I can't find "ivy.version" and "ivy.jar.url".

Can you help me solve this problem?
thumbnail
Bangaru Raju Potnuru, modificado hace 6 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 22 Fecha de incorporación: 22/11/14 Mensajes recientes
check this file build.{UserName}.properties
thumbnail
Cody Hoag, modificado hace 6 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

Junior Member Mensajes: 70 Fecha de incorporación: 26/04/12 Mensajes recientes
A new 6.2 GA6 Plugins SDK has been uploaded to SourceForge that fixes this issue. You can visit the following link and click the liferay-plugins-sdk-6.2-ce-ga6 link to download:

https://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.2.5%20GA6/
thumbnail
Nitesh Korat, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensaje: 1 Fecha de incorporación: 19/01/11 Mensajes recientes
Hi Chandan,

I was getting the same exception and was able to resolve it by replacing "ivy.jar.url" from build.properties to new url as below,
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

They apparently change the repository of Liferay, you can check it on Date Modification on :https://repository.liferay.com/nexus/content/repositories/

Thanks,
- Nitesh
gordon daniels, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

Liferay Master Mensajes: 797 Fecha de incorporación: 24/08/08 Mensajes recientes
Nitesh - thanks for the solution. Why Liferay allows a broken sdk to remain on sourceforge is puzzling.

thanks again.
Sérgio Esteves, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 4 Fecha de incorporación: 11/04/16 Mensajes recientes
Nitesh, I was having the same problem and your solution worked perfectly. Thank you, I appreciate!

Sérgio Esteves.
Abdelilah Charki, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensaje: 1 Fecha de incorporación: 23/11/16 Mensajes recientes
Thank you Nitesh..
Jingfeng Zhou, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 5 Fecha de incorporación: 15/02/17 Mensajes recientes
Hello, Nitesh Korat:

Can you tell me which file have you changed?

I'm using liferay 6.2 and I can only find "liferay-plugin-package.properties" in my project.

However, in "liferay-plugin-package.properties" file I can't find "ivy.version" and "ivy.jar.url".

Can you help me solve this problem?
Jingfeng Zhou, modificado hace 7 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 5 Fecha de incorporación: 15/02/17 Mensajes recientes
Ok, I know where the build.properties is. It's in liferay-plugins-sdk-6.2

Archivos adjuntos:

sachin singh, modificado hace 6 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensaje: 1 Fecha de incorporación: 16/10/17 Mensajes recientes
Thanks Dear Nitesh Your solution works perfectly but after adding that line from my build.properties ,I am facing a new issue while creating the liferay plug-in project. Please find the errors below.


Buildfile: E:\tools\liferay-plugins-sdk-6.2\portlets\build.xml
[get] Getting: http://mirrors.lax.liferay.com/repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0 /ivy-2.3.0 .jar
[get] To: C:\Users\intime\.liferay\mirrors\repo1.maven.org\maven2\org\apache\ivy\ivy\2.3.0 \ivy-2.3.0 .jar
[get] Error getting http://mirrors.lax.liferay.com/repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0 /ivy-2.3.0 .jar to C:\Users\intime\.liferay\mirrors\repo1.maven.org\maven2\org\apache\ivy\ivy\2.3.0 \ivy-2.3.0 .jar
[get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0 /ivy-2.3.0 .jar
[get] To: C:\Users\intime\.liferay\mirrors\repo1.maven.org\maven2\org\apache\ivy\ivy\2.3.0 \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:\Users\intime\.liferay\mirrors\repo1.maven.org\maven2\org\apache\ivy\ivy\2.3.0 \ivy-2.3.0 .jar

BUILD FAILED
E:\tools\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
E:\tools\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
E:\tools\liferay-plugins-sdk-6.2\build-common.xml:60: The following error occurred while executing this line:
E:\tools\liferay-plugins-sdk-6.2\build-common-ivy.xml:130: The following error occurred while executing this line:
E:\tools\liferay-plugins-sdk-6.2\build-common-ivy.xml:81: java.net.SocketException: Unexpected end of file from server

Total time: 22 minutes 10 seconds


I am only assuming that error is due to changing the version of ivy jar
thumbnail
alex alex, modificado hace 6 años.

RE: Liferay 6.2 first application build failed-HTTP Authorization failure

New Member Mensajes: 24 Fecha de incorporación: 15/02/17 Mensajes recientes
Thanks Dear Nitesh Your solution works perfectly emoticon

Thank you