I changed the subject since I think this is now more of a general local
repository question.

On Wed, Feb 3, 2010 at 2:08 PM, Anders Hammar <and...@hammar.net> wrote:

> Regarding why Maven tries to use 2.8-SNAPSHOT and isn't successful I'm
> somewhat puzzled. You didn't post the full error output, so I can't say for
> sure. Also, I need to know more about your Artifactory setup to spot the
> problem.
>


Ok, this is really weird, how could one's existing local repository affect
things? I was going to post a long email of things I've tried but the bottom
line is that when I went in to my local repository and deleted:
org/apache/maven/plugins/maven-eclipse-plugin/

The, 'mvn eclipse:eclipse' command worked just fine - the plugin downloaded
fine  ( I was trying this off a simple archetype jar project not using the
artifactory repo.)

I knew something had to be up since when I backed up (moved my repository to
repo.bak) and then ran mvn eclipse:eclipse the eclipse plugin worked just
fine. As soon as I put my old repo back I got the failure error shown at the
end of this post.

So now my question is: why in the world would my local repository affect
this? Did I have some kind of corrupt version of the plugin?

Here was the error I WAS getting BEFORE I manually removed the
maven-eclipse-plugin dir from my repo


[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

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-eclipse-plugin -Dversion=2.8-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-eclipse-plugin -Dversion=2.8-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]


  org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.8-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


  org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.8-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Reply via email to