javadoc suggests bracket version bracket or [version] for exact match 
http://maven.apache.org/plugins/maven-enforcer-plugin/rules/versionRanges.html 
if you specify a specifiv version such as <version>1.3</version>and you get any 
other version such as 1.1 or 1.2 then that is a bugperhaps a 1.2 or 1.1 was 
installed into 1.3 and you never had thie opportunity to update the .pom and 
plugin.xml to proper version? If you can provide a complete testcase on this 
behaviour...then please file a bug 
herehttp://jira.codehaus.org/browse/MNG#selectedTab=com.atlassian.jira.plugin.system.project%3Apopularissues-panel
 Thanks,Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 > Subject: "No versions available" but actually local repository contains it!
> Date: Wed, 25 Jul 2012 09:27:05 +0200
> From: k...@quipsy.de
> To: users@maven.apache.org
> 
> I have a very strange problem with Maven 3.0.4 running on JDK 1.6.0_26
> on Win 7 Pro SP1 (64 Bit):
> 
>  
> 
> When I want to compile, Maven says that it cannot resolve a dependency:
> "No versions available for org.hamcrest:hamcrest-core:jar:[1.3,1.3]
> within specified range". But actually, Maven in fact successfully
> downloaded exactly that JAR and POM in exactly that version from Nexus
> (hence, from Maven Central in turn), as I can see the JAR and POM in
> both, my local repository and my Nexus instance! The weird thing is, if
> I replace [1.3] by [1.2] it does NOT complain about missing dependency!
> Weird, isn't it?
> 
>  
> 
> And it gets even more weird: If I change my POM to relax the requested
> range from [1.2] to simply "1.2" (without braces, just to see what
> happens) it downloads version 1.1. But for what, if a 1.2 and 1.3
> already are there?
> 
>  
> 
> How can I fix this? I definitively need version 1.3, which IS available
> in my local repository, my Nexus instance and Maven Central!
> 
>  
> 
> Thanks a lot!
> 
> Markus
> 
>  
> 
>  
> 
                                          

Reply via email to