Re: Can't resolve dependency with version range

2010-12-12 Thread Anders Hammar
Oh, yes. I don't recommend using anything but Maven 3.0.

/Anders

On Sat, Dec 11, 2010 at 00:38, Phillip Hellewell  wrote:

> On Fri, Dec 10, 2010 at 2:45 PM, Anders Hammar  wrote:
> > Maven 3.0 rocks! :-)
>
> Would you recommend it in a production environment?
>
> Phillip
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can't resolve dependency with version range

2010-12-10 Thread Phillip Hellewell
On Fri, Dec 10, 2010 at 2:45 PM, Anders Hammar  wrote:
> Maven 3.0 rocks! :-)

Would you recommend it in a production environment?

Phillip

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



Re: Can't resolve dependency with version range

2010-12-10 Thread Anders Hammar
Maven 3.0 rocks! :-)

/Anders
On Fri, Dec 10, 2010 at 22:36, Phillip Hellewell  wrote:

> On Fri, Dec 10, 2010 at 10:16 AM, Phillip Hellewell 
> wrote:
> > I tried starting from scratch with similar steps that I was using to
> > reproduce it yesterday, and now I can't reproduce it anymore.
> >
> > But if I do reproduce it again, I'll try the -U option to see if it helps
> :)
>
> I ran into it again, and adding -U sure enough worked.
>
> I don't understand why I should need -U though.  I mean, if it can't
> find it in the local repo, of course it ought to look in remote repos,
> and most the time it does.  Oh well, whatever is going on appears to
> be fixed in Maven 3.x, so I won't worry about it too much.
>
> Phillip
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can't resolve dependency with version range

2010-12-10 Thread Phillip Hellewell
On Fri, Dec 10, 2010 at 10:16 AM, Phillip Hellewell  wrote:
> I tried starting from scratch with similar steps that I was using to
> reproduce it yesterday, and now I can't reproduce it anymore.
>
> But if I do reproduce it again, I'll try the -U option to see if it helps :)

I ran into it again, and adding -U sure enough worked.

I don't understand why I should need -U though.  I mean, if it can't
find it in the local repo, of course it ought to look in remote repos,
and most the time it does.  Oh well, whatever is going on appears to
be fixed in Maven 3.x, so I won't worry about it too much.

Phillip

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



Re: Can't resolve dependency with version range

2010-12-10 Thread Phillip Hellewell
I tried starting from scratch with similar steps that I was using to
reproduce it yesterday, and now I can't reproduce it anymore.

But if I do reproduce it again, I'll try the -U option to see if it helps :)

Phillip

On Fri, Dec 10, 2010 at 10:11 AM, Phillip Hellewell  wrote:
> On Thu, Dec 9, 2010 at 11:37 PM, Anders Hammar  wrote:
>> Did you try forcing an update ("-U") with Maven 2? I don't know if that
>> should have worked, but I would have tried it...
>
> Interestingly, today it is working, even without a -U or anything.
>
> I wonder if there is some kind of time frame where Maven 2.x won't
> look at remote repo until a certain time has passed.  I could
> understand that kind of behavior for snapshots, but I don't understand
> doing it for version ranges.
>
> Phillip
>

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



Re: Can't resolve dependency with version range

2010-12-10 Thread Phillip Hellewell
On Thu, Dec 9, 2010 at 11:37 PM, Anders Hammar  wrote:
> Did you try forcing an update ("-U") with Maven 2? I don't know if that
> should have worked, but I would have tried it...

Interestingly, today it is working, even without a -U or anything.

I wonder if there is some kind of time frame where Maven 2.x won't
look at remote repo until a certain time has passed.  I could
understand that kind of behavior for snapshots, but I don't understand
doing it for version ranges.

Phillip

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



Re: Can't resolve dependency with version range

2010-12-09 Thread Anders Hammar
Did you try forcing an update ("-U") with Maven 2? I don't know if that
should have worked, but I would have tried it...

/Anders
On Fri, Dec 10, 2010 at 06:19, Phillip Hellewell  wrote:

> Ok, some good news.  I just did the same test with Maven 3.0.1 and it
> worked no problem.  It downloaded the new version from the remote repo
> like it was supposed to.
>
> But I don't know if I'm ready to migrate to Maven 3.x yet...
>
> Phillip
>
> On Thu, Dec 9, 2010 at 10:00 PM, Phillip Hellewell 
> wrote:
> > I'm using Maven 2.2.1.  It won't resolve a dependency with a locked
> > down version like [1.0.0.6] if the metadata xml file in the local repo
> > does not have that version.  It won't look in my remote repo, which
> > does have the version I need.  But if I delete the metadata xml
> > file(s) in my local repo, then it works.
> >
> > I searched the mail archives and found a lot of topics similar to
> > this, but I couldn't find a clear enough explanation to understand
> > whether I'm doing something wrong or if this is just a bug.
> >
> > Phillip
> >
> > P.S.  Here's an example output of the error.
> >
> > [ERROR] BUILD ERROR
> > [INFO]
> 
> > [INFO] Failed to resolve artifact.
> >
> > Couldn't find a version in [1.0.0.4, 1.0.0.5] to match range
> [1.0.0.6,1.0.0.6]
> >  ad.core:cppunitlite:zip:null
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2),
> >  adrepo-public (
> http://maven.example.com:8080/nexus/content/groups/public)
> >
> > Path to dependency:
> >1) ad.core:core:pom:1.0.0.46-SNAPSHOT
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can't resolve dependency with version range

2010-12-09 Thread Phillip Hellewell
Ok, some good news.  I just did the same test with Maven 3.0.1 and it
worked no problem.  It downloaded the new version from the remote repo
like it was supposed to.

But I don't know if I'm ready to migrate to Maven 3.x yet...

Phillip

On Thu, Dec 9, 2010 at 10:00 PM, Phillip Hellewell  wrote:
> I'm using Maven 2.2.1.  It won't resolve a dependency with a locked
> down version like [1.0.0.6] if the metadata xml file in the local repo
> does not have that version.  It won't look in my remote repo, which
> does have the version I need.  But if I delete the metadata xml
> file(s) in my local repo, then it works.
>
> I searched the mail archives and found a lot of topics similar to
> this, but I couldn't find a clear enough explanation to understand
> whether I'm doing something wrong or if this is just a bug.
>
> Phillip
>
> P.S.  Here's an example output of the error.
>
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
>
> Couldn't find a version in [1.0.0.4, 1.0.0.5] to match range [1.0.0.6,1.0.0.6]
>  ad.core:cppunitlite:zip:null
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  adrepo-public (http://maven.example.com:8080/nexus/content/groups/public)
>
> Path to dependency:
>        1) ad.core:core:pom:1.0.0.46-SNAPSHOT
>

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