2016-03-30 32 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服务器,以便所有客户都能获利。我仍然希望日月镜像工具提供了解决这个问题的方法。 –