首页 > 其他分享 >How do I disable maven build when using Maven 2.0 integration for eclipse

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

时间:2023-07-31 10:36:41浏览次数:47  
标签:do eclipse maven disable build 2.0 projects Maven


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 of this 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)




eclipse maven-2 build preferences m2eclipse




 



feedback

share | improve this question


edited May 19 '10 at 13:20






Paul R
57.8k 5 43 108



May 19 '10 at 13:18






Stein G. Strindhaug
3,283 10 25



100% accept rate


1 Answer



active oldest votes



up vote 2 down vote accepted


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).

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.


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.




 

share | improve this answer


edited May 19 '10 at 13:59







May 19 '10 at 13:25






Pascal Thivent
190k 18 224 420



 

标签:do,eclipse,maven,disable,build,2.0,projects,Maven
From: https://blog.51cto.com/u_16174476/6905806

相关文章

  • Eclipse使用SVN
    Eclipse使用SVN[转]1.下载所需软件   1.1SVN服务端(svn-1.4.3-setup.exe)       http://subversion.tigris.org/project_packages.html   1.2把SVN设置成window服务(SVNService.exe)       我没有下载地址,如有需要,留下你的email   1.......
  • 在 Eclipse Galileo 中更快地编写 Java 代码使用新的 toString() 生成器
    http://www.ibm.com/developerworks/cn/opensource/os-eclipse-codegen/这个代码生成技巧使用EclipseGalileo中的新特性。但是,您也可以使用在这里介绍的、旧版本Eclipse(如Ganymede)中的某些技巧(如生成getters和setters)。代码生成概述在日常使用的Eclipse特性中,Source菜单......
  • Eclipse中如何恢复已删除文件
    http://tech.ddvip.com/2008-12/122855149998075.htmlhttp://zhangjunhd.blog.51cto.com/如果,在开发中,(Eclipse)删除了一些文件后又发现需要这些文件该怎么办?现在删除T1.java和T4.properties。鼠标右键点击项目名ZJ,选择RestorefromLocalhistory。选择需要恢复的文......
  • docker 容器技术--资源限制
    资源限制资源类型      可压缩资源CPU磁盘网络。。。不可压缩资源内存。。。资源限制原理--CGROUPCGROUP概念LinuxCgroup全称LinuxControlGroup,是Linux内核的一个功能,用来限制,控制与分离一个进程组群的资源(如CPU、内存、磁盘输入输出等)。这个项目最早是......
  • 使用Eclipse构建Maven的SpringMVC项目
    使用Eclipse构建Maven的SpringMVC项目      首先Eclipse需要安装Maven的插件,地址:http://m2eclipse.sonatype.org/sites/m2e。     用MyEclipse安装Maven插件,建出的Maven项目有些问题。一是,发布tomcat的时候resources总是不会被发布到tomcat下;二是,把WEB-INF下的cla......
  • window.open()参数传递及获取
    window.open()参数传递及获取原文链接:https://wenku.csdn.net/answer/cd7f78922c64bad2c7854b55a947fcc0window.open()是JavaScript中打开新窗口的方法。它可以接受三个参数,分别是要打开的URL、窗口名称和窗口特性。其中,窗口特性可以是一个字符串,包含多个用逗号隔开的键值对,用于......
  • 第一篇博客 markdown初体验
    C:\程序相关\java学习\markdown学习#标题##二级标题###三级标题####四级标题#####五级标题字体两个*号包裹加粗一个星号包裹斜体三个星号包裹加粗斜体u标签包裹下划线xiahuaxian两个~号包裹删除线删除线注释图片![证件照](C:\Users\User\Pictures\CameraRol......
  • window.open()打开窗口的几种方式,a标签的href
    window.open()打开窗口的几种方式原文链接:https://www.jianshu.com/p/ed4c911105451.在当前窗口打开百度,并且使URL地址出现在搜索栏中.window.open("http://www.baidu.com/","_search");window.open("http://www.baidu.com/","_self");2.在一个新的窗口打开百度window.......
  • 为什么不建议在 Docker 中跑 MySQL
    容器的定义:容器是为了解决“在切换运行环境时,如何保证软件能够正常运行”这一问题。目前,容器和Docker依旧是技术领域最热门的词语,无状态的服务容器化已经是大势所趋,同时也带来了一个热点问题被大家所争论不以:数据库MySQL是否需要容器化?认真分析大家的各种观点,发现赞同者仅仅是......
  • 代码随想录第四天|力扣24.两两交换链表节点、力扣19.删除链表的倒数第N个结点、力扣面
    两两交换链表中的节点(力扣24.)dummyhead.next=head;cur=dummyhead;while(cur.next!=null&&cur.next.next!=null)temp=cur.next;temp1=cur.next.next.next;cur.next=cur.next.next;cur.next.next=temp;temp.next=temp1;cur=cur.next.next;returndummyhead.n......