2016-03-30 30 views
-2

我有一個鏡像,用於沒有連接到Internet的專用網絡中的eclipse插件。到目前爲止,這一切都很好,除了像http://texlipse.sourceforge.net/https://borisvl.github.io/Pdf4Eclipse/這樣的插件。eclipse插件鏡像 - 硬編碼的url阻止安裝

問題(可能是?)是content.jar文件中存在硬編碼的絕對URL。

爲texlipse content.jar包含一個文件content.xml並有指絕對URL http://texlipse.sourceforge.net/線...和 https://borisvl.github.io/Pdf4Eclipse/ ...。因此我無法從鏡像中安裝任何這些功能。 exlipse更新程序試圖連接到這些url並失敗。

我反映插件中包含的命令:

$ eclipse -application \ 
      org.eclipse.equinox.p2.metadata.repository.mirrorApplication \ 
     -nosplash -verbose -source http://texlipse.sourceforge.net/ \ 
     -destination /texlipse/ -compare 

$ eclipse -application \ 
      org.eclipse.equinox.p2.artifact.repository.mirrorApplication \ 
     -nosplash -verbose -source http://texlipse.sourceforge.net/ \ 
     -destination /texlipse/ -compare 

有一個簡單的辦法讓我的網絡內部的信息庫的新網址爲content.jar(和artifact.jar,甚至在site.xml)?或者我必須手動破解?

回答

0

這是一個總的黑客,但你可以改變你的hosts file有問題的主機名直接向127.0.0.1

+0

感謝您的想法。在這種情況下,我需要破解DNS服務器,以便所有客戶都能獲利。我仍然希望日月鏡像工具提供瞭解決這個問題的方法。 –