Hi, The reason for I thinking about not having version component in the <dependency> tag might result in a better version control in terms of same version being used across the different modules of the project. Though not very sure if I am genuine enough when I think that.
Actually when I want to avoid dependency versions, I want to do it in context of an individual project(irrespective of chil-parent relationship).My question was that for instance if I am using commons-logging in my dependency <dependencies> ... <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> <dependencies> Is there a way around to avoid the version component so that the latest version gets fetched from the repository? And as Wayne pointed out , is it a good thing to think about? Regards, Amit On Jan 19, 2008 10:44 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > I almost replied with this same content but decided against it. > > Amit, you realize that you are heading down a very ugly path if you > use any of these options, and you will get builds that are all but > impossible to reproduce etc, right? > > Wayne > > > > > On 1/19/08, Brian E. Fox <[EMAIL PROTECTED]> wrote: > > You can use dependencyManagment in a parent pom to avoid specifying the > > version in all your child poms. If you really want the "latest" you have > > two choices: > > LATEST - latest snapshot > > RELEASE - latest release > > > > Or you could specify a range like [0,) > > > > -----Original Message----- > > From: amit kumar [mailto:[EMAIL PROTECTED] > > Sent: Friday, January 18, 2008 8:38 AM > > To: Maven Users List > > Subject: Avoid Dependency version > > > > Hi, > > Can I make it possible for my dependencies(jar files) declared in > > <dependency> tags, not have version. Just like in case of plugin it > > happens, > > the latest on gets fetched? > > When I don't put a version in my dependency tag, it throws error. > > > > Regards, > > Amit > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]