Support

Forums

Contact Me

Posts Tagged 'm2eclipse'

Maven multi module support in M2Eclipse

apache_maven

Maven projects are created using the New "Maven projects" from M2Eclipse, see here for more details
http://docs.codehaus.org/display/M2ECLIPSE/Creating+Maven+projects

Maven Modules are different beast, as they are suppose to have a parent in their hierarchy, if you use Maven
you are already understanding what the differences are.

You can get in troubles if you try to make a lot of maven projects in eclipse, although it may seems natural to do so. A lot
of people have gone that path, and this may work if you use the relativePath trick

  • parent (contains the super pom)
  • common-api, reference the parent using the <relativePath>../parent/pom.xml</relativePath>
  • common-core reference the parent using the <relativePath>../parent/pom.xml</relativePath>
  • common-spring reference the parent using the <relativePath>../parent/pom.xml</relativePath>
  • services-api   ...you get the idea
  • services-core
  • services-spring

Read more: Maven multi module support in M2Eclipse

Donations

Thank You for supporting my work