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