2016-05-17 46 views
1

我已经将Liferay IDE 3.0插件安装到Eclipse,Liferay门户6.2 CE-GA6服务器与tomcat捆绑在一起,liferay插件SDK 6.2 。Liferay 6.2第一次应用程序构建失败 - 在build-common-ivy.xml:81:HTTP授权失败

试图创建我的第一个portlet,但最终生成失败,并出现以下错误。非常感谢您的帮助,谢谢。

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 

回答

4

在build.properties文件只是改变ivy.jar的那个值的.url到:

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

存储库中存在问题!

我面临着同样的问题,它工作正常,现在

+0

我认为这个链接现在无法访问:(我用一个不在Maven中央仓库中的新URL来回答,更多的机会保持活跃状态​​(我希望!)。 – lpratlong

0

尝试这个 - 复制“常春藤2.4.0.LIFERAY打补丁-1-SNAPSHOT.jar”从新鲜SDK和害虫进入.ivy文件夹