Maven updates the remote repository too slowly.

Source: Internet
Author: User

Maven updates the remote repository too slowly.

1. When maven updates and downloads the jar package, the download speed is extremely slow because the jar package is downloaded from a foreign server by default.

 

2. Accelerate jar package download by setting the image

 

3. In the maven installation directory, configure the image in/config/settings. xml.

 

4. Add the image to mirrors in line 2 of the configuration file.

The parameters in id, mirrof, and name can be entered at will, mainly the url address. The url address can be a domestic maven library address that is relatively fast.

 

5. After adding the image, update and download the jar package quickly.

 

6. If you find that the update speed is still slow in myeclipse, you can use the command line method to update the jar package.

Mvn clean, mvn install

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.