Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- official Maven 2 repository is at:
- http://repo.maven.apache.org/maven2
- (hosted in the US) OR
- http://uk.maven.org/maven2
- (hosted in the UK)
- MIRRORS:
- http://mirrors.ibiblio.org/pub/mirrors/maven2
- BEST MIRROR:
- http://repo1.maven.org/maven2
- SETTING UP MIRROR:
- https://stackoverflow.com/questions/30522679/plugin-org-apache-maven-pluginsmaven-clean-plugin2-5-or-one-of-its-dependencie
- +
- https://maven.apache.org/ref/3.6.1/maven-settings/settings.html
- 1) Firstly delete your /home/user/.m2 folder (%userprofile%/.m2 on Win - same level as repository folder)
- 2) create .m2 folder at user home and repository folder within .m2
- 3) copy the default settings.xml to .m2 folder
- 4) Change mirrors as follows in the settings.xml as shown in below snap mirror_settings
- 5) mvn clean
- ***********************************
- <?xml version="1.0" encoding="UTF-8"?>
- <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
- <mirrors>
- <mirror>
- <id>MavenCentral1</id>
- <name>Maven Central 1</name>
- <url>http://repo1.maven.org/maven2</url>
- <mirrorOf>central</mirrorOf>
- </mirror>
- </mirrors>
- </settings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement