Netbeans 构建过程似乎每次都会重建所有 Jars

发布于 2024-08-23 10:49:42 字数 325 浏览 3 评论 0原文

我们有一个由多个模块组成的项目(Netbeans 项目)。
当我告诉 Netbeans 编译顶级模块中的一个文件时,它开始检查所有依赖的模块,并为每个模块构建一个 jar(至少日志消息每次都会说两次)。

今天早上我已经完成了全面的清理和构建,除了顶层罐子之外,所有罐子都应该是最新的。但即使没有任何文件可供其他模块编译,每个模块的此过程也将花费大约一分钟的时间。更糟糕的是,每次中央模块被另一个模块引用时,它们都会出现一次。

谁能告诉我是否有办法帮助 Netbeans 专注于更改的源?

它是 Netbeans 6.7 并且 netbeans.conf 已设置为 -Xmx512m

We have a project consisting of several modules (Netbeans projects).
When i tell Netbeans to compile one of the files in the top level module, it starts to check all modules depended on and builds a jar for each one (at least that's what the log messages say twice every time).

I had done a full clean and build this morning and all the jars should be up to date except for the top level jar. But even though there aren't any files to compile for the other modules, this process will take about a minute per module. And to make matters worse central modules appear once for each time they are referenced by another module.

Can anyone tell me if there's a way to help Netbeans to focus on the changed sources?

It's Netbeans 6.7 and the netbeans.conf is already set to -Xmx512m

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终遇你 2024-08-30 10:49:42

我会升级到 NB 6.8,并确保在我的项目中尽可能多地使用保存时编译/保存时部署功能。

如果您在使用“保存时编译”时遇到问题,请将问题归档到 NetBeans 项目,以便他们可以得到解决。

I would upgrade to NB 6.8 and make sure that I used the Compile on save/deploy on save feature as much as possible for my projects.

If you are running into issues while using compile on save, file issues with the NetBeans project so they can get addressed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文