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

时间:2018-05-28 15:38:10

标签: java netbeans build ant

我遇到incubator-netbeans项目的以下ant构建失败:

> 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上(因此该问题应该具有较低的优先级,而且我&#39 ; m假设检查问题跟踪器的开发人员正在处理它,因此我想,我可能会找到一种方法来重现它。)

由于删除了源根和新克隆并没有解决问题,我需要找到一种方法来查找文件(我假设只有源根目录外的配置文件可能是原因)导致失败。可能是我无法想到的其他原因。我无法记住是否曾在源根目录之外设置过某些东西。

我可能会等待构建系统迁移到Maven(这个想法已经浮现了几十年?),但我认为这不是这个特定问题的有效解决方法:)

1 个答案:

答案 0 :(得分:0)

显然,ant构建系统或它在引擎盖下使用的工具不能下载存储在~/.hgexternalcache中的错误文件,但只是失败而没有任何有用的反馈。因此,可以通过删除缓存目录来解决该问题。

此问题已更新,并附有指向此答案的链接并标记为已解决。