Fórum

Liferay 6.2 first application build failed-HTTP Authorization failure

thumbnail
Chandan Sharma, modificado 7 Anos atrás.

Liferay 6.2 first application build failed-HTTP Authorization failure

Junior Member Postagens: 54 Data de Entrada: 04/03/14 Postagens Recentes
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 7 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 22/11/14 Postagens Recentes
Hi Chandan Sharma I am also facing with the same issue ,if you find please let me know
thumbnail
Bangaru Raju Potnuru, modificado 7 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 22/11/14 Postagens Recentes
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 7 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 10/02/17 Postagens Recentes
RE: Liferay 6.2 first application build failed-HTTP Authorization failure
Jingfeng Zhou, modificado 7 Anos atrás.

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

New Member Postagens: 5 Data de Entrada: 15/02/17 Postagens Recentes
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 6 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 22/11/14 Postagens Recentes
check this file build.{UserName}.properties
thumbnail
Cody Hoag, modificado 6 Anos atrás.

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

Junior Member Postagens: 70 Data de Entrada: 26/04/12 Postagens Recentes
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 7 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 19/01/11 Postagens Recentes
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 7 Anos atrás.

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

Liferay Master Postagens: 797 Data de Entrada: 24/08/08 Postagens Recentes
Nitesh - thanks for the solution. Why Liferay allows a broken sdk to remain on sourceforge is puzzling.

thanks again.
Sérgio Esteves, modificado 7 Anos atrás.

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

New Member Postagens: 4 Data de Entrada: 11/04/16 Postagens Recentes
Nitesh, I was having the same problem and your solution worked perfectly. Thank you, I appreciate!

Sérgio Esteves.
Abdelilah Charki, modificado 7 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 23/11/16 Postagens Recentes
Thank you Nitesh..
Jingfeng Zhou, modificado 7 Anos atrás.

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

New Member Postagens: 5 Data de Entrada: 15/02/17 Postagens Recentes
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 7 Anos atrás.

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

New Member Postagens: 5 Data de Entrada: 15/02/17 Postagens Recentes
Ok, I know where the build.properties is. It's in liferay-plugins-sdk-6.2
sachin singh, modificado 6 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 16/10/17 Postagens Recentes
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 6 Anos atrás.

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

New Member Postagens: 24 Data de Entrada: 15/02/17 Postagens Recentes
Thanks Dear Nitesh Your solution works perfectly emoticon

Thank you