Where can I obtain the maven-source-plugin?

29,024

Solution 1

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.

Solution 2

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

Solution 3

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?

Share:
29,024
Thomas Owens
Author by

Thomas Owens

Professionally, I'm a software engineer focusing on agile and lean software development and software process improvement. I work to help engineers, teams, and organizations be successful. I have experience with a wide variety of types of software, ranging from embedded systems to desktop applications to web applications. In my spare time, I'm a runner, a photographer, and a casual gamer. Find me on LinkedIn, Twitter, Reddit, Medium, GitHub, Quora, and ProjectManagement.com. Support my freely available (CC BY and CC BY-SA) content through Patreon, PayPal, Buy me a Coffee, or my Amazon Wishlist.

Updated on July 09, 2022

Comments

  • Thomas Owens
    Thomas Owens almost 2 years

    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?