[Solved] Maven compile error: Blocked mirror for repositories

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: