2016-09-15 88 views
0

我使用的Liferay安裝後6.2 GA6當我試圖創建一個新的portlet它顯示如下錯誤的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

IM提示以下錯誤:

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 

,最終錯誤,在圖像顯示請點擊這裏

enter image description here

請幫我解決這個問題。它會是很大的幫助。

+0

沒有作出新的博客的變化,可能你嘗試檢查,如果常春藤網址可以訪問到你通過瀏覽器和命令提示符。看起來像一個代理問題。 –

+0

ivy url首先無法訪問它顯示訪問被拒絕,並提供登錄鏈接,當點擊404錯誤 –

+0

你可以爲相同的後張截圖,也需要從互聯網選項 - >局域網settings.Asn代理URL您訪問代理的用戶名/密碼 –

回答

0

如果您無法訪問此URL,您似乎在代理服務器後面。 試試這個Postivy proxy settings來設置您的代理設置。 在本質上,你需要代理的細節,讓常春藤連接到存儲庫中獲取的文物,在你的ivy設置xml文件

<setproxy proxyhost="${proxy.host}" 
     proxyport="${proxy.port}" 
     nonproxyhosts="xyz.svn.com"/> 
+0

in build-common-ivy.xml文件已添加但無法正常工作,請確認是否需要按照提供的鏈接所示進行任何更改。 –

+0

根據錯誤日誌,似乎你的代理服務器配置不正確。請嘗試通過瀏覽器首先訪問常春藤和cdn網址,以防萬一它無法訪問,然後從網絡團隊,它已配置此代理。 –

+0

好的謝謝你的幫助。 –