All -

I have multiple source projects, each having a source code tree, and
each producing its own jar file.

Currently, I'm using Eclipse, and my eclipse-workspace directory looks
something like this:

myproduct-core
myproduct-componentA
myproduct-componentB

The latter two depend on myproduct-core at compile time and runtime.

How do I implement this in Maven 2.0?

Do I need to have myproduct-core produce a jar file that goes in the
Maven
repository?  Or can it work in Maven as seamlessly as it works in
Eclipse,
with some way to indicate that the component source trees depend on the
core source tree?

I looked at dependencies in Maven 2.0, but I only find two
possibilities,
each daunting at best:

1) have the component depend on an artifact (namely, the 
myproduct-core jar file).  For this to work, I think I'd need to
push the core jar file into the repository whenever it is built.
How would I do this in such a way that it would happen
automatically when building one of the components that rely
on it?  And how would Maven know when the core jar file is out of date?

2) have the core source tree in a subdirectory.  This is problematic
because I have multiple component source trees that would need to
have this subdirectory.  I could use symbolic links in Unix/Cygwin,
but not all developers would have this option available, and anyway
this would be a supreme kludge.

Any help would be greatly appreciated.

Thanks,
Keith Bennett

P.S. My main information resources were:

http://docs.codehaus.org/display/MAVENUSER/Multi-modules+projects

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

"Better Builds with Maven", free Maven 2 book available at
http://www.mergere.com/m2book_download.jsp.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to