A very common mistake is routing problem, you should put jdk java project's path, until the default is jre
https://blog.csdn.net/lslk9898/article/details/73836745 in this blog there are solutions
I remember when establishing the project two points before the hook,
pom file written into the dependent code,
Finally, when the build goal was to fill clean package
The other should have little problem