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: [email protected]
> To: [email protected]
> 
> 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
                                          

Reply via email to