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

后端 未结 0 1425
情话喂你
情话喂你 2021-01-13 07:50

How do I stop the \"Maven 2.0 integration\" plugin from running maven build, while keeping \"build automatically\" checked?

I\'m pretty sure it used to be some check

相关标签:
回答
  • 2021-01-13 08:37

    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.

    0 讨论(0)
  • 消灭零回复
提交回复
热议问题