Unable to download .jar files inside m2 repository using maven dependencies

11,721

This issue got fixed when I add the mirrors on settings.xml which is located in C:\Program Files\Maven\apache-maven-3.0.4\conf\settings.xml from the below URL

http://repo1.maven.org/maven2/.meta/repository-metadata.xml

After updating the XML, try Maven > Update Project..

Share:
11,721
Prashanth Sams
Author by

Prashanth Sams

Author of Selenium Essentials O'Reilly | PacktPub | Amazon.in | Amazon.com | Amazon (Kindle) | Google | Barnes&Noble | Apple Store Selenium WebDriver, Appium, API, Locust, Cucumber, Docker, Helm, Kubernetes, Jenkins, Jenkins job-dsl, AWS, Git, Github, Gitlab, Ruby, Python, JavaScript, TypeScript, Groovy, Shell, Protractor, Java, Grafana, Prometheus, Datadog, Graphite, CasperJS, Behave, JBehave Blog: http://www.seleniumworks.com/ https://devopsqa.wordpress.com/ Skype: prashanth.sams Official Site: http://prashanthsams.com Twitter: https://twitter.com/prashanthsams GitHub: https://github.com/prashanth-sams LinkedIn: https://www.linkedin.com/in/prashanth-sams-58208953/ Google+: https://plus.google.com/u/0/104394276212961437513/posts Facebook: https://www.facebook.com/groups/selenimusers/

Updated on June 05, 2022

Comments

  • Prashanth Sams
    Prashanth Sams almost 2 years

    This is the error thrown,

    Failure to transfer org.codehaus.plexus:plexus-utils:jar:3.0 from http://mirrors.ibiblio.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of ibiblio.org has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:3.0 from/to ibiblio.org (http://mirrors.ibiblio.org/ maven2): Access denied to http://mirrors.ibiblio.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar. Error code 403, Forbidden

    In Pic,

    enter image description here


    I have the same issue in two different machines [One of the machines with Proxy and other without proxy (Personnel laptop)]

    I'm using

    1. Eclipse Kepler
    2. JDK 1.6
    3. Maven 3.0.4

    No luck after lots of attempts; Some of them are listed below:

    • downgraded JDK [Java] from 1.7 to 1.6
    • added proxy on settings.xml under [C:\Users\prashanth_sams\.m2]

      enter image description here

    • added mirror in settings.xml under C:\Program Files\Maven\apache-maven-3.0.4\conf\settings.xml

    enter image description here

    • located specific Maven version location externally

    enter image description here

    But, instead of jar files, I see the following two files present inside the repo with suffix, .lastUpdated

    Is there any other mirrors to be added in the settings.xml? Any help is highly welcome!

    enter image description here