You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roland Bali <ro...@gmail.com> on 2009/02/17 10:10:20 UTC

Snapshots from local repository

Hi,

This question might have been answered before but I haven't been able to
find a answer.

I have one project which has version 0.5-SNAPSHOT. I install this project to
my local repository. Another project references it as version 0.5 and I
thought the snapshot version would be picked up, but it isn't

How can allow SNAPSHOTs to be found in my local repository? I know about the
repository-tag in settings.xml but how do I reference my local repository?

Kind regards,
Roland

Re: Snapshots from local repository

Posted by Roland Bali <ro...@gmail.com>.
Hmm... feeling kind of stupid right now.... :)

Nope it didn't occur to me until I read your post that, of course, 0.5 >
0.5-SNAPSHOT.

/Roland

On Tue, Feb 17, 2009 at 6:45 PM, Wayne Fay <wa...@gmail.com> wrote:

> > I have one project which has version 0.5-SNAPSHOT. I install this project
> to
> > my local repository. Another project references it as version 0.5 and I
> > thought the snapshot version would be picked up, but it isn't
>
> SNAPSHOTs should be resolved just fine from your local repository cache.
>
> How exactly is the dependency declared in your project? If it says
> <version>[0.5]</version> then only 0.5 will work. You realize that 0.5
> > 0.5-SNAPSHOT, right?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Snapshots from local repository

Posted by Wayne Fay <wa...@gmail.com>.
> I have one project which has version 0.5-SNAPSHOT. I install this project to
> my local repository. Another project references it as version 0.5 and I
> thought the snapshot version would be picked up, but it isn't

SNAPSHOTs should be resolved just fine from your local repository cache.

How exactly is the dependency declared in your project? If it says
<version>[0.5]</version> then only 0.5 will work. You realize that 0.5
> 0.5-SNAPSHOT, right?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org