Hi,

I used to get the error, "The plugin
org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
version could be found" every time I tried "mvn clean", or issued a
command that in turn called this plugin.

C:\dev\selenium-rc\trunk>mvn clean
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Selenium RC
[INFO]   Selenium RC Server (Coreless)
[INFO]   Selenium RC Server
[INFO]   Selenium Translator
[INFO]   Selenium RC Client Drivers
[INFO]   Selenium RC Java Client Driver
[INFO]
----------------------------------------------------------------------------
[INFO] Building Selenium RC
[INFO]    task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does
not exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Aug 07 12:45:37 IST 2007
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------


I checked the faqs page:
(http://docs.codehaus.org/display/MAVENUSER/FAQs-1#FAQs-1-novalidversionHowdoIresolvethe%22%3Cpluginname%3Edoesnotexistornovalidversion%22error%3F)
.. which doesn't help much. Neither am I upgrading nor am I behind a
proxy. Changing the versions also didn't help.

But anyway, after some reading up on maven, I've solved it by handling
the issue in its raw form - copying files from web and putting them in
an appropriate location on my box.

If my *hunch* is right, this may be happening due to a convention
followed by Maven wherein it (perhaps) downloads only those files which
are not SNAPSHOT versions. SNAPSHOTs are meant to be picked up locally.
The web repo of maven-clean-plugin is a SNAPSHOT version while other
plugins are not.
(http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-clean-plugin/)

I guess this could be the problem for other similar issues. For some
reason, the web repo for some plugins gets updated with SNAPSHOT
versions, when it should not have been.

Mailing this since I did not find similar info either in faqs nor in
mailing lists.

FYI,
Thanks,
praveen


       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to