Maven+eclipse:failure to transfer

Source: Internet
Author: User

Configure the MAVEN environment, then create a MAVEN project in Eclipse and add dependencies:

<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>

Pom File Error:

Failure to transfer commons-logging:commons-logging:jar:1.1.1 from Https://repo.maven.apache.org/maven2 is cached in The local repository, resolution won't be
reattempted until the update interval of the central have elapsed or updates are forced. Original error:could not transfer artifact commons-logging:commons-logging:jar:1.1.1 from/
To Central (HTTPS://REPO.MAVEN.APACHE.ORG/MAVEN2): The operation was cancelled. Org.eclipse.aether.transfer.ArtifactTransferException:Failure to transfer commons-
logging:commons-logging:jar:1.1.1 from Https://repo.maven.apache.org/maven2 .....

Asked degree Niang, did not find a solution, finally saw a person said common package is MAVEN Class Library Basic package, the first download down, I went to see the next, found that the local MAVEN class library does already have the common-logging directory, Found in the 1.1.1 version of the directory, found commons-logging-1.1.1.jar.lastupdated, the normal jar package behind a. lastupdated suffix, I have a commons-logging-1.1.1.jar from the official website, replaced the comm Ons-logging-1.1.1.jar.lastupdated, then in Eclipse, select items-Right-click-maven-update project,ok error disappears.

If you encounter a similar problem in the future, check the local class library for any. lastupdated suffix files, record them, and remind yourself later.

Maven+eclipse:failure to transfer

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.