You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Frank Mena <ma...@gmail.com> on 2005/10/31 17:47:25 UTC

Multi-Module problem

I had written this as a response to another post, but I think I am supposed
to put it in it's own post.


As an example, I have the following directory structure:

common
common1
common2
subcommon
subcommon1
subcommon2
project1
some1model1
some1model2
war
ear
project2
some2model1
some2model2
war
ear

With the above as an example, I build 2 different projects, each with it's
own ear. They both share modules from the "common" subtree. Also, I use jibx
(java-to-xml binding tool that does bytecode enhancement).

When I run the jibx task post-compile, it needs to have all the classes it
is going to bind in the classpath. For a given project, some of these
classes are are in the projects modules and some of them are in the common
submodules.

jibx need to be run before the modules are jar'ed into the repository. Is
there a way to do this? I was trying to create ${basedir} for the parent pom
(Would be nice to have ${parent.pom.basedir}

- Frank