here is my problem:

I have 2 independent projects A and B, both having dependencies on, say
security.jar and encryption.jar.

I could implement my dependencies as modules, but as far as I understand,
security.jar and encryption.jar projects would have to be subdirectories of
each of project A & B. That would mean code duplication and I certainly want
to avoid it.

I can also simply reference security.jar and encryption.jar as a standard
dependency. Maven would then fetch them on demand from the team repository.

What makes the latter solution a little it cumbersome to me is that
security.jar is depending on encryption.jar and both of them are depending
on commons-logging.jar and junit.jar, as well as projects A & B.

So implementing those dependencies as modules seem to be the cleanest way to
me, ensuring that encryption.jar has its commons-logging.jar and junit.jar,
that in turn security.jar has it's encryption.jar and lastly that both A & B
have all these dependencies just by declaring a dependence on security.jar.
But it would mean including the module dependencies in subdirectories as I
understand it.

I'm new to Maven and trying to mimic the way my ant scripts were built, so
please let me know if this is not the way Maven2 dependencies work.

So my question would be: how can I get a mix of modules and dependencies? I
need modules but external to my parent project. Is that possible? Or is
Maven2 able to work the dependencies between projects?

thanks in advance for sharing any common experience.

/nodje
-- 
View this message in context: 
http://www.nabble.com/combining-module---lib-dependencies-tf4513968s177.html#a12874823
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to