How do I disable maven build when using Maven 2.0 integration for eclipse?

妖精的绣舞 提交于 2019-12-01 06:05:51

To disable the Maven Project Builder, right-click on your project then Preferences > Builders and uncheck the Maven Project Builder (you cannot modify the default maven builder).

alt text http://www.imagebanana.com/img/fikqaidv/screenshot_010.png

If this removes "too much" things, you can maybe create your own custom Maven builder. Click New, select Maven Build and configure it as you want.

alt text http://www.imagebanana.com/img/rwkmm7jb/screenshot_010.png


Disabling it seems to stop eclipse from knowing about the related projects causing the java build to fail. Is there a some sort of dummy, no-operation goal I can use for auto build goals?

I guess you would have to add the related projects in the Project References (or to uncheck Resolve dependencies from Workspace projects).

Is there a way to disable it for all 6 related projects in the workspace simultaneously?

I don't think so.


At the end, all this tweaks looks like ugly hacks. If you're not satisfied by the m2eclipse plugin, maybe you should use the maven-eclipse-plugin instead (i.e. run mvn eclipse:eclipse) instead to generate the .project and .classpath files and import your projects as Existing Project into Eclipse.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!