maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <>
Subject Re: modules, dependencies, whatelse?
Date Mon, 15 Oct 2012 16:49:58 GMT
> The problem with this is that I also need to build standalone jars of myLib2
> and myLib3, and they need myLib1 themselves. Their code refers to classes in
> myLib1 and myLib3 code defers also to classes in myLib2. myLib2 and myLib3 do
> not even compile if they don't have myLib1/myLib2 listed as dependency in
> their pom file. But if I list them as dependecies, those are expected to be
> found in a repository or manually installed. Otherwise if I list them as
> modules, I'm forced to packaging="pom", so no standalone jars...

Just set things up as you've been told and build your projects from
the top/parent each time, not from the children. Then the reactor
finds the files it needs when it builds each library. Use packaging of
"jar" in each lib, and use packaging "pom" for the top parent.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message