我已经将Liferay IDE 3.0插件安装到Eclipse,Liferay门户网站6.2 CE - 与tomcat捆绑的GA6服务器,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
答案 0 :(得分: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
存储库中存在问题!!
我遇到了同样的问题,现在工作正常
答案 1 :(得分:0)
在ivy-settings.xml中检查凭证标记,如果不存在则添加
<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?
答案 2 :(得分:0)