Regarding the recent maven project running in eclipse, the error-reporting solution is stepped on the pit summary + java.lang.NoClassDefFoundError

The following is a summary of my solutions, try the same, there is always one thing that suits you!

During the period, because of the vpn problem, the project could not be started on my computer, and it could be run after importing it on my colleague’s computer.

But after I fixed the vpn, there were still a bunch of problems

1. Delete the .lastupdated file in the warehouse

https://www.cnblogs.com/gcgc/p/10983197.html

2.maven update

Some jar packages have not been downloaded due to network reasons. Now come a wave of update to download again

 

3.clean

This is equivalent to deleting the class file in the target directory under the project, and then compiling and regenerating

 

4. Copy the jar package

java.lang.NoClassDefFoundError is generally a small jar package. Check the error report to see which folder in the warehouse is missing the jar package.

If a colleague has it, copy the colleague’s copy, if not, it will download it online. Anyway, I am missing an activemq-parent, and maven update has not been downloaded either.

If it doesn’t work, overwrite the folder in the maven warehouse with a colleague’s

5. Baidu + ask others

A person's power is limited after all, come on boy! 

Guess you like

Origin blog.csdn.net/JavaCoder_juejue/article/details/112621028