How do I disable maven build when using Maven 2.0 integration for eclipse
来源:互联网 发布:linux软件 编辑:程序博客网 时间:2024/04/28 16:29
http://stackoverflow.com/questions/2865803/how-do-i-disable-maven-build-when-using-maven-2-0-integration-for-eclipse
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 box to disable maven build before, but after upgrading Ubuntu; eclipse seems to have been updated in the process, and now I cannot find any way to turn off the maven build. The maven build takes literally minutes (about 5 minutes or so), while just running java build used to finish in seconds.
Is it no longer possible to disable it or have they just hidden it well?
If it's not possible, will eclipse be able to compile my maven project without the plugin?
(Trying to google for a solution the closes I got to an answer was several archives ofthis old post where the answer essentially were "You should be able to disable Maven builder in project preferences..." which doesn't really help because I cannot find any on/off settings there)
1 Answer
To disable the Maven Project Builder, right-click on your project thenPreferences > Builders and uncheck the Maven Project Builder (you cannot modify the default maven builder).
If this removes "too much" things, you can maybe create your own custom Maven builder. ClickNew, select Maven Build and configure it as you want.
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 uncheckResolve 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 themaven-eclipse-plugin
instead (i.e. run mvn eclipse:eclipse
) instead to generate the.project
and .classpath
files and import your projects asExisting Project into Eclipse.
- How do I disable maven build when using Maven 2.0 integration for eclipse
- Maven Integration for Eclipse
- How Do I Disable Firewall? for CentOS, RedHat,etc...
- Missing requirement: Maven Integration for Eclipse
- Maven Integration for Eclipse JDK Warning
- Maven Eclipse Plugin vs. Maven Integration for Eclipse
- Eclipse安装Maven插件Maven Integration for Eclipse
- Eclipse安装Maven插件Maven Integration for Eclipse
- ssh(maven+jetty)一 (m2e:maven integration for eclipse)
- How do I disable Magento Compiler?
- How do I disable Magento Compiler?
- How do I disable the screensaver/lock?
- Eclipse.ini参数设置(Maven Integration for Eclipse JDK Warning)
- Eclipse.ini参数设置(Maven Integration for Eclipse JDK Warning)
- maven安装以及eclipse配置maven 和maven Integration for eclipse
- Maven学习笔记之How do I filter resource files
- Eclipse安装Maven插件后,Eclipse启动问题:Maven Integration for Eclipse JDK Warning。
- how do I delete an Eclipse project when I've already deleted the folder and contents?
- 上网如何赚钱
- 11g R2 RAC 环境下开启归档模式的方法
- IBOutlet和IBAction
- Android中Context详解 ---- 你所不知道的Context
- C# 实现的多线程异步Socket数据包接收器框架(3)
- How do I disable maven build when using Maven 2.0 integration for eclipse
- Google面试题集锦(内附答案/解析)
- Android中Toast的用法简介
- GBK、Shift-JIS、BIG5编码检测算法
- opencv 车牌定位及分割
- HTTP消息头字段
- operator++()和operator++(int) 区别
- poj1015审判员
- android socket通信问题