Springboot (Ruoyi) running missing solution after the local package jar is packaged

       Recently, I encountered such a problem, that is, it runs normally in the development environment (IEDA), but when maven is used to make a jar package, the package is missing. For a novice like me, it took a long time. Spent a lot of time and effort. I would like to record this. If it is wrong, please criticize and correct!

Solution steps:

1. Create a new lib folder and put the local jar package under the lib file

2. Introduce the missing jar package dependencies in the pom.xml file in ruoyi-system, as shown in the following figure:

 3. Add the following key code in the build-->plugins-->plugin-->configuration of the pom.xml file of ruoyi-admin (remember to add it, otherwise all previous efforts will be wasted)

<includeSystemScope>true</includeSystemScope>

Add the location as follows

 At this point, after reusing the maven tool clean, you can repackage.

Guess you like

Origin blog.csdn.net/weixin_52890053/article/details/131811055