JAVA eclipse Maven project red exclamation point solution, eclipsemaven
I found that ch. qos. logback 1.1.1 encountered an error through Windows --> show view --> problems,
So I changed to ch. qos. logback 1.1.2 to solve the problem.
1 <! -- 1. log --> 2 <! -- Implement the slf4j interface and integrate --> 3 <dependency> 4 <groupId> ch. qos. logback </groupId> 5 <artifactId> logback-classic </artifactId> 6 <version> 1.1.2 </version> 7 </dependency>
Comprehensive solution provided on the Internet:
Solution 1:Select project --> right-click --> Maven --> Update Projects... to solve the problem.
Solution 2:If the preceding operations cannot be solved, choose Windows --> show view --> problems to view the cause of the problem in this view.
Solution 3:It may be because the jar files in the local repository conflict. In this case, we recommend that you back up the local repository, delete the local repository, and re-build the project.
Solution 4:It may be caused by the maven installation path. When maven is decompressed under Program Files on drive C and maven-related configuration is performed, a red exclamation point is reported.
If you are on drive C, we recommend that you change the path again and put it on drive D. Note that Chinese characters are not displayed in the path.
Solution 5:It may be due to the order of Configuration During the configuration of the pom. xml file. In this case, we recommend that you configure all the items to be configured before saving the pom. xml file. We do not recommend that you save a part of the pom. xml file without configuring it.
Solution 6:It may have been a problem with the jar package in the local repository. You can first clear all the jar packages in the local repository and reconfigure them so that maven can download the jar package.