1. The following error is reported when compiling with Maven. The developer uses the same setting locally XML file compilation is OK
Could not resolve dependencies for project Could not transfer artifact Blocked mirror for repositories
2. The solution is to find the data because it is found in 3.8.1. In later versions, all HTTP protocol repositories are lost in the block, which can be solved by setting the values of mirror of and blocked attributes in the mirror to false. In consideration of setting XML is a general-purpose file, so we do not intend to modify it, but reduce the Maven version to 3.6 three
3. After reducing the version, rebuild and solve the problem
Read More:
- [Solved] Idea 2021.3 Maven 3.8.1 Error: Blocked mirror for repositories
- [Solved] Error: Blocked mirror for repositories maven intellij Mac
- MVN compile Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin…
- [Solved] Docker-maven-plugin Build Mirror Error: failed: Connection refused: connect
- [Solved] O2oa compile error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- Maven (http://repo1.maven.org/maven2/): Failed to transfer file and PKIX path building failed: sun.secu
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- [Solved] Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on
- IDEA Create maven project error: Error running‘[org.apache.maven.pluginsmaven-archetype-pluginRELEASE
- [Solved] Maven Publish Error: Failed to execute goal org.apache.maven.pluginsmaven-deploy-plugin2.8.2deploy
- [Solved] IDEA Maven Error: Cannot resolve xxx & Maven Dependencies Error
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- CORS error has been blocked by CORS policy [How to Solve]
- [Solved] org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject…