如何自动配置Eclipse? [英] How does one automate configuration of Eclipse?

查看:125
本文介绍了如何自动配置Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个在项目上工作的团队往往需要一个Eclipse的常见配置。这包括一般配置和项目特定配置。例如,一般来说,每个人都希望分享缩进,安装某些插件(比如说m2eclipse,testng,egit,Spring支持)。此外,对于项目,您可能需要特定的插件配置(例如,对于m2eclipse,设置自定义Maven设置文件,为eclipse构建事件配置额外的Maven目标)或定制的Eclipse目标平台,或者甚至设置 - 某些自定义启动器。



目前,我的团队执行一系列手动步骤来尝试配置正确的一切。这对于新开发人员来说是一件乏味的,容易出错的问题。说明书也会过时。



这种配置在多大程度上可以自动化?应该怎么做?

解决方案

没有修改的最简单的东西是拥有一个常用的首选项文件(Export-> General- >首选项),然后每个人都可以加载。使用与现在相同的Java安装工作最好。



这些天可能会丢弃插件,但我没有使用它。使用默认包创建本地存储库也是有益的,具体取决于所需的所有插件。然后你可以安装它,它将拉入引用。本地缓存可能是非常有益的,因为某些存储库相当慢。


A team working on a project will tend to need a common configuration of Eclipse. This includes general configuration and project specific configuration. For example, generally, everyone might wish to share indentation, installation of certain plugins (say m2eclipse, testng, egit, Spring support). Further, for a project, you might want specific plug-in configurations (e.g., for m2eclipse, setting up a custom Maven settings file, configuring extra Maven targets for eclipse build events), or a custom Eclipse target platform, or even just to set-up certain custom launchers.

Currently, my team executes a series of manual steps to try and get everything configured correctly. This is tedious, error-prone and difficult for new developers to follow. Instructions also tend to get out-dated.

To what extent can this sort of configuration be automated? How should it be done?

解决方案

The simplest thing available without modifications is to have a common preferences file (Export->General->Preferences), which everybody can then load. Works the best with the same Java installations present.

It is possible to drop in plugins these days but I have not worked with it. Also it might be beneficial to create a local repository with a default package depending on all the plugins you want. Then you can just install that and it will pull in the references. A local cache might be very beneficial as some repositories are quite slow.

这篇关于如何自动配置Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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