4

Some of our new projects have been migrated to maven3 and some of the older projects are still using the maven2 compliant pom.xml files.

Can maven3 runtime execute maven2 compatible pom.xml files also?

Joe
  • 14,513
  • 28
  • 82
  • 144

3 Answers3

5

maven 3 is mostly compatible with maven 2 configuration. But there is still some incompatibilities.

For a full list you should check here there is also sometime problems with plugins (as Torsten suggested).


Resources:

On the same topic:

Community
  • 1
  • 1
Colin Hebert
  • 91,525
  • 15
  • 160
  • 151
1

Typically yes, but it may depend on the plugin version you are using.

Please note that e.g. the maven site plugin is different for maven 2 and maven 3 or some options of the maven enforcer plugin are no longer valid for maven 3. There might be others.

Torsten
  • 6,184
  • 1
  • 34
  • 31
1

Yes, it is. At first you may be alarmed by the fact that it reports a bunch of warnings and sometimes refuses to build before you take care of the problems, but this is actually better for you as (if you run into this) it simply tells you what was wrong with your project so far.

Other than that, the site plugin is completely re-written and you need to use the version for Maven 3. (Check here)

carlspring
  • 31,231
  • 29
  • 115
  • 197