The solution to the Red Fork error in Pom.xml

Source: Internet
Author: User

There is a solution to the Red Cross error in the Pom.xml one:

1. Put the mouse point in the wrong report to find Pom.xml reported the following error:

Multiple annotations found at the line:

-Failure to transfer org.slf4j:slf4j-log4j12:jar:1.7.21 from Http://repo1.maven.org/maven2 is cached in the local Reposi Tory, resolution won't be
reattempted until the update interval of the central have elapsed or updates are forced. Original error:could not transfer artifact org.slf4j:slf4j-log4j12:jar:1.7.21 from/
To Central (HTTP://REPO1.MAVEN.ORG/MAVEN2): connectexception

2. Delete the jar package from the Pom.xml

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.21</version>
</dependency>

Solution Two:

Right-click on the project, Properties,java build path, find the jar with the Red fork in the Meaven dependency, and delete the jar package from the Pom.xml.

The solution to the Red Fork error in Pom.xml

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.