如何使用与Eclipse项目的持续集成? [英] How do I use continuous integration with an Eclipse project?
问题描述
我一直在使用maven2和hudson做我的持续集成,但我发现Eclipse和Maven不能一起玩。当然有一个插件,但很可怕的将maven项目变成eclipse喜欢的东西,并且构建时间和单元测试太长。
我正在考虑切换回一个纯eclipse项目没有蚂蚁和没有maven涉及。有了无限插件和可能的JavaRebel代理,它将给我一个非常快的构建部署测试周期。但是我仍然想要自动和测试,所以:
I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times and unit test are too long. I'm considering switching back to a pure eclipse project with no ant and no maven involved. With the infinitest plugin and possible the JavaRebel agent, it would give me a very fast build-deploy-test cycle. However I'd still like to have automatic and testing as well, so:
如何使用Eclipse项目的持续集成?
How do I use continuous integration with an Eclipse project?
有命令行方式吗?
是否有一个已经支持它的构建服务器?
Is there a build server that already supports it natively?
推荐答案
我管理找到一个很好的解决方案。我使用maven和eclipse只是无限工作
I managed find a good solution. I simply got infinitest to work when using maven and eclipse
在Eclipse-> Project Properties-> Java Build Path-> Source中取消选中名为Allow output
用于源文件夹的文件夹
In Eclipse->Project Properties->Java Build Path->Source uncheck the box called: "Allow output folders for source folders"
这将使您的项目具有多个输出路径,然后Eclipse将
开始报告测试类为部分类路径。 Infinitest现在
找到它并开始运行测试!
That will enable your project to have more than one output path and Eclipse will then start reporting the test-classes as being part of the class path. Infinitest now finds it and starts running tests!
所有我做的是使用官方maven eclipse插件,并添加到我的POM
All i did was use the official maven eclipse plugin and add this to my POM
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<!-- <scope>provided</scope> -->
</dependency>
<dependency>
<groupId>org.infinitest</groupId>
<artifactId>infinitest</artifactId>
<scope>test</scope>
<version>4.0</version>
</dependency>
</dependencies>
这篇关于如何使用与Eclipse项目的持续集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!