[IDEA] The pom.xml dependency of the maven project in IDEA does not take effect.

question:

  Today, the poi-related jar package needs to be introduced into the web project. After checking, I found that although the dependencies in pom.xml have been downloaded to the local repository repository, they have not been added to the External Libraries of the project path.

 

Solution:

  After google and Baidu, I didn't find the same type of problem, so I had to explore it myself. There are other solutions close to this problem. I found that there is a window for managing Maven Project in IntelliJ:

View –> Tool Windows –> Maven Projects

 

 

  

   If the Dependencies folder is not found, it means that there is no dependency in the project, but the content required for the dependency has been added to the pom.xml file, and there is no locked jar package in the dependency. Later found: Need to re-import Maven's pom.xml file content:

 

   Re-import to find all the dependent packages in External Libraries.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325041462&siteId=291194637