You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2015/10/02 23:06:13 UTC

Is there a cache of version range resolutions?

I've just tried version ranges for the first time, and I hit a pothole.

Step 1: set version in dependency to: 7.14.0.c52.2. Run a build.

Step 2: change version in pom to  [7.13.500.c52.2,7.13.600.c52.2).

Now, mvn dependency:whatever shows the correct resolution, but an
actual build stubbornly uses the 7.14.0.c52.2 version in the
karaf-maven-plugin.

Completely wiping ~/.m2/repository fixed this.

Can anyone give me higher-precision coordinates for what data I need
to nuke when this happens?

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


Re: Is there a cache of version range resolutions?

Posted by Stephen Connolly <st...@gmail.com>.
IIRC don't version ranges only work with Major.Minor.Patch-(Qualifier or
Build) formatted version numbers, eg 3.2.1-07

On Friday 2 October 2015, Benson Margulies <bi...@gmail.com> wrote:

> I've just tried version ranges for the first time, and I hit a pothole.
>
> Step 1: set version in dependency to: 7.14.0.c52.2. Run a build.
>
> Step 2: change version in pom to  [7.13.500.c52.2,7.13.600.c52.2).
>
> Now, mvn dependency:whatever shows the correct resolution, but an
> actual build stubbornly uses the 7.14.0.c52.2 version in the
> karaf-maven-plugin.
>
> Completely wiping ~/.m2/repository fixed this.
>
> Can anyone give me higher-precision coordinates for what data I need
> to nuke when this happens?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org
> <javascript:;>
>
>

-- 
Sent from my phone

Re: Is there a cache of version range resolutions?

Posted by Benson Margulies <bi...@gmail.com>.
I use 3.2.5. I've since confirmed that version ranges don't work the
same way as the release plugin, so in some sense this problem is moot.
But, still, the problem is the mysterious caching of a
previously-selected version.

On Sun, Oct 4, 2015 at 5:07 PM, Karl Heinz Marbaise <kh...@gmx.de> wrote:
> Hi,
>
> On 10/2/15 11:06 PM, Benson Margulies wrote:
>>
>> I've just tried version ranges for the first time, and I hit a pothole.
>>
>> Step 1: set version in dependency to: 7.14.0.c52.2. Run a build.
>>
>> Step 2: change version in pom to  [7.13.500.c52.2,7.13.600.c52.2).
>>
>> Now, mvn dependency:whatever shows the correct resolution, but an
>> actual build stubbornly uses the 7.14.0.c52.2 version in the
>> karaf-maven-plugin.
>
>
> Which Maven version do you use?
>
> Kind regards
> Karl Heinz Marbaise
>
>>
>> Completely wiping ~/.m2/repository fixed this.
>>
>> Can anyone give me higher-precision coordinates for what data I need
>> to nuke when this happens?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


Re: Is there a cache of version range resolutions?

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

On 10/2/15 11:06 PM, Benson Margulies wrote:
> I've just tried version ranges for the first time, and I hit a pothole.
>
> Step 1: set version in dependency to: 7.14.0.c52.2. Run a build.
>
> Step 2: change version in pom to  [7.13.500.c52.2,7.13.600.c52.2).
>
> Now, mvn dependency:whatever shows the correct resolution, but an
> actual build stubbornly uses the 7.14.0.c52.2 version in the
> karaf-maven-plugin.

Which Maven version do you use?

Kind regards
Karl Heinz Marbaise

>
> Completely wiping ~/.m2/repository fixed this.
>
> Can anyone give me higher-precision coordinates for what data I need
> to nuke when this happens?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



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