The maven mirror setting is wrong and the private library cannot be accessed

Recently, in order to improve the development efficiency, some spring boot self-registration components have been sorted out
and released to the company's nexus self-built library.

But on a colleague's machine it fails to update.
Check the configuration, try to upgrade the maven version, and
later found that the aliyun image in the configuration file can be removed.

But back on my own machine, the settings.xml in the .m2 directory has always had mirror configuration.
Suddenly remembered that the mirrorOf configuration of the mirror on my colleague's machine is *
<mirror>
   <id>nexus-aliyun</id>
   [color=darkred][b]<mirrorOf>central</mirrorOf>[/b][/color]
   <name>Nexus aliyun</name>
   <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
 </mirror>

The reason is found here.

Because * means to find all dependent libraries from this image, but in fact Alibaba Cloud only mirrors the central warehouse.
Then, private repositories are blocked.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326081808&siteId=291194637