https://blog.csdn.net/weixin_33400820/article/details/78855594?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.4242
The Maven project was created in IntelliJ, and the dependencies of slf4j and log4j were added to pom.xml. However, when writing the program, we found that IntelliJ had no text assistance about slf4j and log4j at all. After checking, we found that although the dependencies in pom.xml had been downloaded to the local repository, they were not added to the extended libraries of the project path
as shown in the figure:
After Google and Baidu, they didn’t find the same type of problems, so they had to explore their own solutions. They found that there was a management window for Maven project in IntelliJ
View –> Tool Windows –> Maven Projects
If the dependencies folder is not found, there is no dependency in the project, but the content required for dependency has been added to the pom.xml file. Later, it is found that the content of Maven’s pom.xml file needs to be re imported, as shown in the figure:
Re import can find all the dependent packages in external libraries
Read More:
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Maven project pom.xml The solution of error report in execution of
- Error in pom.xml dependency version number in idea
- Error in pom.xml file of sub module of Maven aggregation project
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- Where’s Maven pom.xml Configure aliyun warehouse in
- Maven of springboot project pom.xml Unknown error in the first line of the file
- New Maven project– pom.xml report errors
- Import Maven project pom.xml File error
- About maven Pom.xml Personal solutions to reporting errors!!!
- Maven project pom.xml Solutions to error reporting
- [save] Maven’s pom.xml Labeled xsi:schemaLocation Error report
- Error in Maven POM file: multiple annotations found at this line solution
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally
- Error in STS importing POM file of Maven project
- Error in the project tag in the POM file of Maven project: failure to transfer
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea
- About the steps to create Maven’s (WEB) dependency using in idea
- Android is Stuck in Download maven-metadata.xml [How to Solve]