我在安装后使用liferay 6.2 ga6,当我尝试创建一个新的portlet时,它显示错误
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
然后我在博客
下面提到了https://web.liferay.com/community/forums/-/message_boards/message/74382032
并在下面进行了更改
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
我收到以下错误:
Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.4.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml
最后在图片中显示的错误请点击这里
请帮我解决这个问题。这会很有帮助。
答案 0 :(得分:0)
如果您无法访问此网址,您似乎就在代理服务器后面。 试试这个Post和ivy proxy settings来设置您的代理设置。 实质上,您需要代理详细信息以允许常春藤连接到存储库以获取工件,在常春藤设置xml文件中
<setproxy proxyhost="${proxy.host}"
proxyport="${proxy.port}"
nonproxyhosts="xyz.svn.com"/>