Nathan Coast wrote on Tuesday, July 13, 2004 12:44 PM: > Hi, > > I'm a little unsure as to the 'correct' way to handle > dependencies in a > project made up of multiple sub-projects. > > up to now I have been declaring dependencies to fixed > versions of each > component and installing each component into the local repo e.g. > jar:install. Is this the correct way or should I be using > jar:install-snapshot and declaring dependency versions something like > 1.5-SNAPSHOT?
Normally you avoid to use snapshot in interdependent projects, since you will normally build your project with fixed dependencies. But within the same multiproject, it is quite normal to use a snapshot. Depending on the nature of your project, you might want to share the version anyway between all your subprojects (e.g. jakarta-commons is a counter example). > Do the install-snapshot goals do anything different from the normal > install goals besides adding the SNAPSHOT suffix? Ah, no. The install-snapshot will *replace* a SNAPSHOT suffix in the version with a timestamp. This is only used, if you have to depend on an unreleased component, that does not belong to your project. I'll do so sometimes for projects of the jakarta commons sandbox, because I like to use a specific version, but will not try to keep up to very change (escpecially since the API is not finalized yet). -- J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
