When should we move to Maven 3?

Our project badly needs to switch to Flexmojos4 in order to get a fix, but this requires Maven 3. Our project uses Maven extensively, and we really love it, but we set it up very much. Between the dozens of modules, we probably have over 50 XML configuration pages.

We also use Eclipse and actively use the M2Eclipse plug-in. We also use the following Maven plugins:

  • Resources
  • Buildnumber
  • SQL
  • Hibernate3
  • Flexmojos
  • Assembly
  • Jetty
  • Cargo
  • JAR / WAR

and several others. Reading on this blog makes me feel like Eclipse Indigo is when everything works together. When should we invest time to make a move?

+7
java flex maven-2 build-automation flexmojos
source share
2 answers

In fact, the "transition" should only be to simply upgrade the maven / m2eclipse installation. Maven 3 is almost completely backward compatible with Maven 2.

Check the compatibility notes to make sure that you are not breaking something that will be required to fix it.

+5
source share

(...) Makes me feel like Eclipse Indigo is when everything works together. When should we invest time to make a move?

No, now you can use Maven 3 and Eclipse 3.5 / 3.6 (I don’t even remember when I started using Maven 3).

Firstly, Maven 3 supports backward compatibility (see Maven 3 - Is it worth it? ), So, as I commented in Should I upgrade to Maven 3? :

why don't you just give it a try? Nothing needs to be “updated”, just install Maven 3 on your Maven 2 installation, change the PATH settings and try on the existing POM.

Secondly, m2eclipse 0.10 has been using Maven 3 as a built-in version for a long time (to resolve dependencies, even if you declare an “external” installation) and thus Maven 3 is ready. Just add the final version of Maven 3.0 as an external installation and there you go.

To summarize: Maven 3 is fully operational, I had almost nothing to change in my pots (only a few things to fix them thanks to the best Maven 3 post), it just works inside Eclipse, and it builds faster. Just give it a try.

PS: I use a script attached to the MNG-2730 to switch between the versions of maven that I have on my machine, if required.

+2
source share

All Articles