代码之家  ›  专栏  ›  技术社区  ›  Kalle Richter

如何确定哪些文件会影响孵化器netbeans的构建?

  •  0
  • Kalle Richter  · 技术社区  · 6 年前

    我正在经历以下情况 ant 的生成失败 incubator-netbeans 项目:

    > git clone https://github.com/apache/incubator-netbeans
    Cloning into 'incubator-netbeans'...
    remote: Counting objects: 161480, done.
    remote: Compressing objects: 100% (79/79), done.
    remote: Total 161480 (delta 45), reused 103 (delta 30), pack-reused 161321
    Receiving objects: 100% (161480/161480), 126.01 MiB | 5.61 MiB/s, done.
    Resolving deltas: 100% (82375/82375), done.
    Checking out files: 100% (44314/44314), done.
    > cd incubator-netbeans/
    > ant
    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
    Buildfile: /tmp/incubator-netbeans/build.xml
    
    -jdk-pre-preinit:
    
    -jdk-preinit:
    
    -jdk-warn:
    
    -jdk-presetdef-basic:
    
    -jdk-default:
    
    -jdk-init:
    
    -load-build-properties:
    
    bootstrap:
    [mkdir] Created dir: /tmp/incubator-netbeans/nbbuild/build/antclasses
    [javac] Compiling 4 source files to /tmp/incubator-netbeans/nbbuild/build/antclasses
    [downloadbinaries] Creating /tmp/incubator-netbeans/javahelp/external/jhall-2.0_05.jar
    
    BUILD FAILED
    /tmp/incubator-netbeans/nbbuild/build.xml:72: File /tmp/incubator-netbeans/javahelp/external/jhall-2.0_05.jar requested by /tmp/incubator-netbeans/javahelp/external/binaries-list to have hash CA70822C47A67FC3A11670270567C2D01566DAE1 actually had hash DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
    
    Total time: 1 second
    

    我在那里报告的 https://issues.apache.org/jira/browse/NETBEANS-787 . 它没有引起注意,因为我不能在任何CI服务上、在Ubuntu Docker映像或在VirtualBox映像中复制它,实际上只有在我的Ubuntu 18.04上(因此,问题应该具有低优先级,我假设检查问题跟踪程序的开发人员正在处理它,因此我想,我可能会找到一种自我复制的方法。

    由于删除源根和新克隆并不能解决问题,因此我需要找到导致失败的文件(我假设只有源根之外的配置文件才是原因)。这可能是我想不出的其他原因。我不记得是否在源根目录之外设置过什么。

    我可能会等待构建系统迁移到Maven(这个想法流传了多少年?),但我认为它不是解决这个特定问题的有效方法:)

    1 回复  |  直到 6 年前
        1
  •  0
  •   Kalle Richter    6 年前

    显然 ant 构建系统或它在引擎盖下使用的工具无法下载存储在 ~/.hgexternalcache 但是没有任何有用的反馈就失败了。因此,可以通过删除缓存目录来解决此问题。

    此问题已通过指向此答案的链接进行了更新,并标记为“已解决”。