English 中文(简体)
Java Equivalent of distcc
原标题:

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases.

An increasing number of our large projects are built in Java these days, however. Does anyone know of something equivalent or similar for Java? While it would be great if it would go down to the javac level, our multi-module projects would benefit from being able to distribute each maven 2 sub-project to a different machine. (Tying into maven might actually be better, as that would make it possible to distribute tests and packaging, which often take a significant portion of our build time.)

Thanks for any information or pointers!

最佳回答

To my knowledge, there is no equivalent of distcc in the Java world.

As mentioned by Aaron, many Continuous Integration servers (open source like Hudson or commercial like Bamboo, TeamCity) have support for distributed builds but I don t think that this will solve your issue. AFAIK, these tools distribute build jobs (i.e. a whole multi-modules maven build), not the build of the modules of a multi-modules build (which might have dependencies, need the output of the previous module and might thus not being parallelized anyway). In other words, this is useful if you have many projects/branches on a build farm (at least for Hudson, I have less knowledge of the others solutions).

问题回答

Try a CI server like TeamCity. They can spread project builds on several agents.

Here s a related question on doing parallel builds in Maven:

Maven: how to do parallel builds?

One of the questions has a link to a Jira ticket to enable this functionality, which would provide much of the benefit I m looking for:

http://jira.codehaus.org/browse/MNG-3004

I ll definitely be watching that ticket with interest. :)





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签