gpt4 book ai didi

java - Liferay 6.2 第一个应用程序构建失败 - 在 build-common-ivy.xml :81: HTTP Authorization failure

转载 作者:行者123 更新时间:2023-11-29 08:44:39 24 4
gpt4 key购买 nike

我已将 Liferay IDE 3.0 插件安装到 Eclipse、Liferay 门户 6.2 CE - GA6 服务器与 tomcat 捆绑在一起、liferay 插件 SDK 6.2。

尝试创建我的第一个 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

最佳答案

在 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

版本库有问题!!

我遇到了同样的问题,现在一切正常

关于java - Liferay 6.2 第一个应用程序构建失败 - 在 build-common-ivy.xml :81: HTTP Authorization failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37266185/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com