2

在我们的项目(一个 Eclipse 插件)中,我们尝试以编程方式安装几个插件(不用担心,用户首先必须接受他们的所有许可证)。一切正常,插件被安装,除了某个错误不断弹出:

eclipse.buildId=M20120208-0800
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_BE
Framework arguments:  -product org.eclipse.epp.package.rcp.product
command-line arguments:  -os win32 -ws win32 -arch x86_64 -product
    org.eclipse.epp.package.rcp.product

Error
Thu Nov 07 12:32:22 CET 2013
Error processing mirrors URL:
    http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml

java.io.FileNotFoundException:
    http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
    at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:297)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.checkException(FileReader.java:384)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:358)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:213)
    at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:153)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.computeMirrors(MirrorSelector.java:274)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.initMirrors(MirrorSelector.java:336)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.selectMirror(MirrorSelector.java:406)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.getMirrorLocation(MirrorSelector.java:314)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMirror(SimpleArtifactRepository.java:651)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:568)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:680)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:260)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:235)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:191)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:122)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:664)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我们已经尝试了一些方法,比如在 pom.xml 中为 tycho 设置我们不想使用镜像,或者将其作为 JVM 参数,或者只是将 System 属性设置为不使用镜像。但是,据我了解,这只会取消非 eclipse.org 站点,而这是一个 eclipse.org 站点...

要安装的更新站点是:http: //download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/(对于 Teneo)。

我能做些什么来防止这个错误发生?需要明确的是:这不会阻止代码按应有的方式运行。Teneo 已安装。我只是不希望错误日志中出现这种错误。

感谢您的任何提示。

4

0 回答 0