我将普通的 java 项目转换为 Maven 项目,在进行此更改后,我开始注意到 Eclipse 在我所做的每次保存中都在工作区中的所有项目中运行完整构建。
这对于工作来说不太舒服,我希望 Eclipse 中的自动构建仅构建受更改影响的项目,而不是所有工作区。
最佳答案
我认为您需要禁用 eclipse 中的“自动构建”选项。
By default, the Eclipse workbench is configured to build projects automatically. However you should disable this option, otherwise your entire project will be rebuilt whenever, for example, you save a change to your makefile or source files. Click Project > Build Automatically and ensure there is no checkmark beside the Build Automatically menu item.
您可以使用 eclipse 的 maven 功能构建您的项目。
选择项目并右键单击→ 选择“运行方式”选项→ 选择“Maven 包”选项
关于java - Eclipse 在使用 Maven 时在每次保存中运行完整构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30023983/