views:

227

answers:

3

Hello,

I'm working with a small team of developers. My job is to convert a Make project (with Intellij Idea 9.0) into a Maven 2 project.

The problem is : we spend a lot of time during the development. With Make, only one complete build was required and then any change did not consume a lot of time (almost instantaneously). On the other hand, with Maven 2, a little change takes a lot of time to run.

Any solution ? Thanks.

alt text

+4  A: 

On the other hand, with Maven 2, a little change takes a lot of time to run.

I'm not really sure that this has to be true. For a single Maven project, the compile phase doesn't need to recompile all source from scratch, just what has been updated since the last run (assuming you haven't done a clean, etc.).

Without further details though it's hard to offer any advice. Have you converted to Maven and are finding that it seems to be excessively re-building many parts of your projects? If so, please provide more details as Pascal mentions aboves. Or is this just a question driven by fear?

matt b
+1, this question sounds like a free claim, it doesn't provide any fact or data.
Pascal Thivent
+8  A: 

The problem you're facing and its description are not clear (what is your project structure, how you build it, how much time does it take to compile one change, etc) but here are some practices that could help:

  • Use incremental builds (i.e. don't use clean at each build).
  • Use binary dependencies (i.e. multiple modules with dependencies vs of a huge monolithic module).
  • Use advanced reactor options for smart reactor build (to build only the required subset of modules).
  • Use Maven Shell (if you're not aware of this project, CHECK IT OUT).

Personally, I'm not experiencing "lot of time to run" problems with my projects.

Pascal Thivent
Thanks, but just tips. It's not cool, I find that it's not appropriate in an entreprise development.I hope that Maven 3 will fixe this problem.
SeyZ
@SeyZ I have no idea of what are you talking about. What problem? What do you want to be "fixed"? I don't have any problem with Maven which is a great tool for "enterprise development". Now, if you think that Make is more appropriate, well, what can I say, maybe stick with it.
Pascal Thivent
+1  A: 

IntelliJ can load the module/project configuration from the pom files. This means that during development, use IntelliJ's build based of the pom files (which is incremental and quick) and only use maven stand alone for continous integration and releases.

Peter Lawrey