代码之家  ›  专栏  ›  技术社区  ›  Stefan Rasmusson

在Eclipse3.5上安装旧的TestNG插件时出现问题

  •  2
  • Stefan Rasmusson  · 技术社区  · 14 年前

    我试图在Eclipse3.5上安装TestNG5.11,并完成以下设计。

    eclipse.buildId=unknown
    java.version=1.6.0_19
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=no_NO
    Framework arguments:  -product org.eclipse.epp.package.jee.product
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
    
    
    Error
    Mon Jun 07 15:45:53 CEST 2010
    Artifact not found: org.eclipse.update.feature,org.testng.eclipse,5.11.0.28.
    
    java.io.FileNotFoundException:  "http://beust.com/eclipse/features/org.testng.eclipse_5.11.0.28.jar"
    at org.eclipse.equinox.internal.p2.repository.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:289)
    at org.eclipse.equinox.internal.p2.repository.FileReader.checkException(FileReader.java:352)
    at org.eclipse.equinox.internal.p2.repository.FileReader.sendRetrieveRequest(FileReader.java:326)
    at org.eclipse.equinox.internal.p2.repository.FileReader.readInto(FileReader.java:263)
    at org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download(RepositoryTransport.java:71)
    at org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download(RepositoryTransport.java:127)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:468)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:451)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:518)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:200)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:175)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:159)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:95)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:507)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    
    Error
    Mon Jun 07 15:45:53 CEST 2010
    Artifact not found: osgi.bundle,org.testng.eclipse,5.11.0.28.
    
    java.io.FileNotFoundException: "http://beust.com/eclipse/plugins/org.testng.eclipse_5.11.0.28.jar"
    at org.eclipse.equinox.internal.p2.repository.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:289)
    at org.eclipse.equinox.internal.p2.repository.FileReader.checkException(FileReader.java:352)
    at org.eclipse.equinox.internal.p2.repository.FileReader.sendRetrieveRequest(FileReader.java:326)
    at org.eclipse.equinox.internal.p2.repository.FileReader.readInto(FileReader.java:263)
    at org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download(RepositoryTransport.java:71)
    at org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download(RepositoryTransport.java:127)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:468)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:451)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:518)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:200)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:175)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:159)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:95)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:507)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    
    Error
    Mon Jun 07 15:45:53 CEST 2010
    session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
    

    3 回复  |  直到 14 年前
        1
  •  1
  •   Cedric Beust    14 年前

    您还可以将更新站点指向:

    http://beust.com/eclipse-5.11.0.28

        2
  •  1
  •   Mirko Stocker    14 年前

    mentioned location 在浏览器中,您将看到您请求的旧jar已经不在了。幸运的是,您仍然可以下载旧版本 from the TestNG website

        3
  •  0
  •   Andreas Dolk    14 年前

    是因为 version 5.11.0.28 is not on that server anymore .

    试试org.testng.eclipse\u 5.12.0.6.jar

    (抱歉,部分问题出现在标题中,您要求的是旧版本……)