More Maven2-ing

January 2nd, 2006 by Hen

Continuum doesn’t work with Maven-1 multiprojects, so that’s given me impetus to migrate the GenJava component set over to maven-2. GenJava is a series of simple Commons-like utilities; which primarily exist as a personal feeder into Commons libraries and as a way to play with a Commons-like structure.

Lesson’s learned [many thanks to Brett for helping on IRC]:

  • The extends tag is now a parent tag with a block of subtags. Check the bottom of the Maven-2 Getting Started guide out.
  • There is an automatic default of ‘../’ when running mvn package in a subdirectory.
  • Migrating is really easy when your subcomponent project.xmls are tiny.
  • Mirrored repositories are something to learn about pronto; I couldn’t build a couple because ibiblio was refusing to answer.
  • testResource’s seem to have changed. I used to load “/foo.xml” from the classpath, now I hve to load “foo.xml”.
  • If you set the scm in the parent pom, the children will automatically append their artifactId.
  • JUnit is no longer automatically a dependency. So time to specify it manually, and remember the scope tag.

That’s all that jumps to mind for the moment.

Comments are closed.