Netbeans 构建过程似乎每次都会重建所有 Jars
我们有一个由多个模块组成的项目(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会升级到 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.