简体   繁体   English

Apache NetBeans 9.0 ant构建失败

[英]Apache NetBeans 9.0 ant build failed

I was trying to upgrade my NetBeans to 9.0 following this link https://netbeans.apache.org/download/index.html#releases These are the steps I followed 我正尝试通过此链接https://netbeans.apache.org/download/index.html#releases将NetBeans升级到9.0,这些是我遵循的步骤

  1. Updated my brew using brew update 使用brew更新更新了我的brew
  2. Install ant using brew install ant 使用brew install ant安装ant
  3. move to directory incubator-netbeans and run command ant 移至目录incubator-netbeans并运行命令ant

Step three (3) start to build NetBeans modules, suddenly I got an error message that build failed. 第三步(3)开始构建NetBeans模块,突然我收到一条错误消息,提示构建失败。 I have tried to resolve this problem and also tried checking SO if someone is having similar issue but to no avail. 我已经尝试解决此问题,并且还尝试检查SO,如果有人遇到类似问题但无济于事。 Thanks 谢谢

NB: I'm using Java 8 注意:我正在使用Java 8

Error gotten 错误得到

BUILD FAILED /Users/username/NetBeansProjects/incubator-netbeans/nbbuild/build.xml:128: Download of 85A67D883A879E7BF767758A8413B690DEF29735-saxon9B-9.1.0.2.jar produced content with hash D366BF19293519AF7A258E23A51CC87359F06EEA when 85A67D883A879E7BF767758A8413B690DEF29735 was expected 失败的/Users/username/NetBeansProjects/incubator-netbeans/nbbuild/build.xml:128:下载85A67D883A879E7BF767758A8413B690DEF29735-saxon9B-9.1.0.2.jar产生的内容带有哈希值D366BF19293519AF7A258E23A51CC873F69E758A

I finally solved this issue using the following steps: 我终于使用以下步骤解决了这个问题:

  1. Whenever I'm faced with build failed, I re-run the ant. 每当遇到构建失败时,我都会重新运行蚂蚁。
  2. I closed all NetBeans instances present and re-run again 我关闭了所有存在的NetBeans实例,然后再次运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM