Most likely because you are using a repository manager (nexus / artifactory?) and a settings.xml that is incorrect configured.
http://maven.40175.n5.nabble.com/Plugins-snapshot-resolution-td4833804.html and http://maven.40175.n5.nabble.com/settings-xml-td131025.html for a solution that "works for me(tm)" /james -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jeff MAURY Sent: 04 January 2012 16:02 To: Maven Users List Subject: Re: Maven is using SNAPSHOT versions of plugins SNAPSHOT are not available in central repository. Jeff MAURY On Wed, Jan 4, 2012 at 2:17 PM, Abid Hussain <[email protected]> wrote: > Hi all, > > trying to create a project using the archetype-plugin fails because > maven tries to use a SNAPSHOT version of the plugin: > [INFO] Unable to find resource > 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.3-SNAPSHOT' > in repository central (http://central) [INFO] > ---------------------------------------------------------------------- > -- > [ERROR] BUILD FAILURE > [INFO] > ---------------------------------------------------------------------- > -- [INFO] A required plugin was not found: Plugin could not be found - > check that the goal name is correct: Unable to download the artifact > from any repository > > Same happens when trying to perform the maven-eclipse-plugin. So my > question is: why does maven try to use SNAPSHOT versions which do not > exist? Can the cause of the problem be in my local configuration? > > Regards, > > Abid > -- > NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! > Jetzt informieren: http://www.gmx.net/de/go/freephone > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury ************************************************************************************** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [email protected] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
