4

I checked out an open-source project from SourceForge's SVN source control using the Eclipse Maven plugin. After it checks out, I get this error in the pom.xml file:

Error resolving version for plugin 'org.apache.maven.plugins:maven-source-plugin' from the repositories [local (C:\Documents and Settings\thomas.owens\.m2\repository), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository

I'm fairly new to Maven, but I followed the installation instructions for Apache Maven and the Eclipse plugin. It seems weird that this plugin would not be found in the central plugin repository for Maven or my local repository, when I can clearly see a directory located at C:\Documents and Settings\thomas.owens\.m2\repository\org\apache\maven\plugins\maven-source-plugin that contains a single resolver-status.properties file.

Any thoughts as to why this plugin might not be found and where I can find it?

Thomas Owens
  • 107,741
  • 94
  • 299
  • 427

4 Answers4

8

The problem that I was encountering was not an issue with the maven-source-plugin, but incorrect proxy settings that was preventing the connection to the repositories. The answers to this question on the use of Maven with a proxy helped me to find the mistake and correct it.

Community
  • 1
  • 1
Thomas Owens
  • 107,741
  • 94
  • 299
  • 427
6

That plugin in in the central repo (see here).

Perhaps you just need to run with -U to update:

mvn -U clean install

Or in Eclipse right-click on the project and select Maven -> Update Dependencies and (perhaps) Maven -> Update Project Configuration

Roy Truelove
  • 20,716
  • 17
  • 105
  • 152
1

Check if you are able to see Maven in Eclipse, Window > Preferences.

If so, select Maven and go to installations and check if the folder, in where maven was installed, is properly set. Then, set your setting.xml file, it should be in /(maven installation folder)/conf/

Then, right click in your project go to Maven > Update Maven Dependencies.

Did it help?

wleao
  • 2,208
  • 1
  • 16
  • 17
0

Which project?
Perhaps there is a bug in their pom.
Or perhaps they require a 'standardized' develop environment with specific environment variables set, or a specific setting in user.home/.m2/settings.xml

crowne
  • 8,132
  • 2
  • 31
  • 45