Jason Dillon wrote:

Write a base project.xml containing the common deps (like commons-logging) and
other common info, write a base maven.xml that fires up a reactor that calls the
'jar:install-snapshot' goal, and life will be much easier already. Declare all
intra-project dependencies as SNAPSHOT to make sure you always get the latest
generated jar.

The problem with this approach is that all modules now have extra bits on their class-path, which is not desired.

huh? If it is a common dep, it should be there, if its not, it should not be? Does not compute?


Also, I have tried using SNAPSHOT for intra-project depends, but Maven still tries to download newer versions from the remote repo which is silly and just slows things down.

http://maven.apache.org/reference/user-guide.html#Building%20Offline

you can use the '-o' switch with maven to make it not connect at all.

cheers!

- Leo





Reply via email to