Advertisement
codeuniv

Maven Central MIRRORs (setup and links)

Jun 14th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. official Maven 2 repository is at:
  2. http://repo.maven.apache.org/maven2
  3. (hosted in the US) OR
  4. http://uk.maven.org/maven2
  5. (hosted in the UK)
  6.  
  7. MIRRORS:
  8. http://mirrors.ibiblio.org/pub/mirrors/maven2
  9. BEST MIRROR:
  10. http://repo1.maven.org/maven2
  11.  
  12. SETTING UP MIRROR:
  13.  
  14. https://stackoverflow.com/questions/30522679/plugin-org-apache-maven-pluginsmaven-clean-plugin2-5-or-one-of-its-dependencie
  15. +
  16. https://maven.apache.org/ref/3.6.1/maven-settings/settings.html
  17.  
  18. 1) Firstly delete your /home/user/.m2 folder (%userprofile%/.m2 on Win - same level as repository folder)
  19. 2) create .m2 folder at user home and repository folder within .m2
  20. 3) copy the default settings.xml to .m2 folder
  21. 4) Change mirrors as follows in the settings.xml as shown in below snap mirror_settings
  22. 5) mvn clean
  23.  
  24. ***********************************
  25. <?xml version="1.0" encoding="UTF-8"?>
  26. <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  27. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
  28. <mirrors>
  29. <mirror>
  30. <id>MavenCentral1</id>
  31. <name>Maven Central 1</name>
  32. <url>http://repo1.maven.org/maven2</url>
  33. <mirrorOf>central</mirrorOf>
  34. </mirror>
  35. </mirrors>
  36. </settings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement