You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexander Kaiser <al...@gmail.com> on 2014/05/01 13:58:33 UTC

Spring snapshots

Hi,

I am trying to understand mavens downloading of snapshots (maven 3.0.4,
vanilla install)

I use only spring RELEASE (3.1.4.RELEASE) builds in my pom and I have no
repository definitions in the pom.
When I display the dependency tree with mvn dependency:tree I also see that
my project has no dependencies on snapshots.

Nevertheless, every day, maven pulls in loads of snapshots from the spring
snapshot repository.

How can I avoid downloading the snapshots?

-- 
Alexander

Re: Spring snapshots

Posted by Alexander Kaiser <al...@gmail.com>.
Hi Karl,

thanks for your reply.

No, there are no repository definitions in settings.xml.

Alex


2014-05-01 14:31 GMT+02:00 Karl Heinz Marbaise <kh...@gmx.de>:

> Hi,
>
> > Hi,
>
>
>> I use only spring RELEASE (3.1.4.RELEASE) builds in my pom and I have no
>> repository definitions in the pom.
>>
>
> Do you have repository definitions in your settings.xml file ?
>
> --
> Kind regards
> Karl-Heinz Marbaise
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Alexander

Re: Spring snapshots

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

 > Hi,
>
> I use only spring RELEASE (3.1.4.RELEASE) builds in my pom and I have no
> repository definitions in the pom.

Do you have repository definitions in your settings.xml file ?

-- 
Kind regards
Karl-Heinz Marbaise


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


RE: Spring snapshots

Posted by Martin Gainty <mg...@hotmail.com>.
when invoking mvn why not pass the repositoryId of the NON-SNAPSHOT repository you want  e.g.?
<repository>
    <id>jboss</id>
    <name>JBoss Repository</name>
    <url>http://repository.jboss.com/maven2</url>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
</repository>mvn -DrepositoryId=jboss WhateverTarget

?
Martin 



> Date: Thu, 1 May 2014 13:58:33 +0200
> Subject: Spring snapshots
> From: alexander.g.kaiser@gmail.com
> To: users@maven.apache.org
> 
> Hi,
> 
> I am trying to understand mavens downloading of snapshots (maven 3.0.4,
> vanilla install)
> 
> I use only spring RELEASE (3.1.4.RELEASE) builds in my pom and I have no
> repository definitions in the pom.
> When I display the dependency tree with mvn dependency:tree I also see that
> my project has no dependencies on snapshots.
> 
> Nevertheless, every day, maven pulls in loads of snapshots from the spring
> snapshot repository.
> 
> How can I avoid downloading the snapshots?
> 
> -- 
> Alexander
 		 	   		  

Re: Spring snapshots

Posted by Stephen Connolly <st...@gmail.com>.
Most likely somewhere in that spring dependency tree is a version range...
you could use dependency management to pin that to a non-range version


On 1 May 2014 12:58, Alexander Kaiser <al...@gmail.com> wrote:

> Hi,
>
> I am trying to understand mavens downloading of snapshots (maven 3.0.4,
> vanilla install)
>
> I use only spring RELEASE (3.1.4.RELEASE) builds in my pom and I have no
> repository definitions in the pom.
> When I display the dependency tree with mvn dependency:tree I also see that
> my project has no dependencies on snapshots.
>
> Nevertheless, every day, maven pulls in loads of snapshots from the spring
> snapshot repository.
>
> How can I avoid downloading the snapshots?
>
> --
> Alexander
>