如何使用m2e设置eclipse项目特定的验证偏好 [英] How to set eclipse project specific validation preferences with m2e

查看:211
本文介绍了如何使用m2e设置eclipse项目特定的验证偏好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用导入Maven项目调用从git导入maven项目进入eclipse时,m2e插件似乎会生成一个新的.project和.classpath以及某些其他文件,即使这些文件被签入。

When invoking importing maven projects into eclipse from git using "Import Maven Projects" the m2e plugins to seems to generate a new .project and .classpath and some other files even though those files are checked in.

为了解决这个问题,我不想检查任何eclipse的特定文件,但是对每个项目文件进行了定制,例如自定义保存操作,或者更改验证以忽略特定的事情或更改需要保留的动态Web项目的JavaScript配置,因此这些文件需要检查,或者这些设置需要由m2e生成。

To get around this problem I would like to not check in any eclipse specific files, but there are customizations made to each project file such as custom save actions, or changes to the validation to ignore specific things, or changes to the javascript configuration for a dynamic web project that need to be preserved, so either those files need to checked or those settings need to be generated by m2e.

任何方式使用m2e配置eclipse项目验证器?

Any way to use m2e to configure the eclipse project validators?

推荐答案

我们过去也有类似的问题。我们通过

We had a similar problem in the past. We solved it by


  • 不检查eclipse特定文件(svn ignore,git ignore,...)

  • 使用工作区机械插件来保持eclipse设置相同的开发机器/开发人员。

  • don't checkin eclipse specific files (svn ignore, git ignore, ...)
  • Use Workspace Mechanic plugin to keep eclipse settings the same accross development machines / developers.

这篇关于如何使用m2e设置eclipse项目特定的验证偏好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆