If there is no problem with the project package org.apache.poi.xwpf.usermodel||mvn idea:idea

 When running the ruoyi project today, the following error was reported. A bunch of errors such as org.apache.poi.xwpf.usermodel does not exist. I can enter the jar package by pressing Ctrl+class name, which means that maven has downloaded the package, and the local maven warehouse has this jar package. . . Compiled N times, file -> invalidated cleared the cache of idea N times/restarted idea/reinstalled/and changed the poi version and it didn't work.

Solution:

Enter the project path with cmd, execute  the mvn idea:idea  command, and the problem is solved.
As shown below:

Or maven install it. 

Note: The mvn idea:idea command is a command for downloading incomplete dependencies

The idea imports the maven project, and when the program is executed, the program is reported not to be found (the corresponding jar packages exist), the solution

The reason for this problem may be that the idea did not automatically generate the xxx.iml file when importing the project.

Solution steps:

Open cmd and enter the project path

Execute the command mvn idea:module to generate the iml file.

Guess you like

Origin blog.csdn.net/u014285237/article/details/130676227