This article is a mirror article of machine translation, please click here to jump to the original article.

View: 33703|Reply: 2

[Source] Eclipse IDE Maven sets up Alibaba Cloud image acceleration

[Copy link]
Posted on 5/25/2021 9:17:26 AM | | | |
Apache Maven is a software project management and understanding tool. Based on the concept of Project Object Model (POM), Maven can manage project builds, reports, and documentation from a central information.

Maven can be understood as a Nuget package in .NET. By default, it downloads package sources from foreign sites, so the speed will be very slow, and you need to configure the domestic image source to speed up the download speed.

Create a new settings.xml file in the C:\Users\\\{username}\\\.m2 folder (if there is no folder, you can create it yourself), and the content is as follows:


Open the eclipse tool, find the top toolbar Window -> Preferences -> Maven -> User Settings -> Browser and browse the settings.xml you want to add your own configuration, as shown in the figure below:



The accelerated renderings are as follows:



(End)





Previous:JS exports the file via GET POST download
Next:ddl-auto attribute of hibernate
 Landlord| Posted on 6/15/2021 10:07:44 PM |
ideaSet up the Alibaba Cloud image in the Maven repository
https://www.itsvse.com/thread-7045-1-1.html
 Landlord| Posted on 10/23/2025 10:06:29 AM |
thereinto<mirrorOf>*</mirrorOf>is a rule used to configure a mirror, indicating that the image will replace all remote repositories. Even if you configure in pom.xml<repositories>, Maven still downloads dependencies from Alibaba Cloud images (such as Alibaba Cloud public repositories)!It overwrites the download sources for all repositories, causing the repositories defined in your pom.xml to become invalid。 Cause of the problem: Mirror has a higher priority than Repository!

pom.xml configuration, for example:

To exclude specific repositories from being mirrored, the mirrorOf adjustment in settings.xml is as follows:
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com