Today, at work, I encountered such a wonderful exception:
Java.lang.classnotfoundexception:Type Com.ys.yahu.vo.file.MobileFileVo Not present
It's obvious why the class can't be found, but this class is what Maven relies on.
A number of methods have been tried:
Update maven, local repository Delete this package re-download is not resolved
Think it is eclipse does not compile the problem, so follow Baidu to other methods set up also did not solve
Even deleted Items re-downloaded in SVN are not resolved ...
Booting on a colleague machine is absolutely no problem.
Because the work to be done with this jar does not matter, the use of the whole place is commented out, the project can start normally ...
But in the process of work, and found a funny question ... Is my JS debugger debugging also can't get into the ..., directly to me jump to the corresponding controller.
Also on the colleague machine is completely no problem, the mentality is a bit of a collapse
So starting to locate the problem should be the eclipse issue.
I re-installed a eclipse, is no problem, but unwilling to the amount, or want to find out the reasons ...
Turned over the blog, according to the above operation once, although not resolved, but the idea is very good, to recommend the next 54944262
This is the time to think of Eclipse's problem of identifying Maven repositories, so the settings for the Eclipse Maven repository are changed:
Actually changed the path of the User Settings, the file was put into a new path, I reloaded maven dependency
After loading, the problem is solved, and JS debugger debugging breakpoint can go in .... (It feels magical.)
Then the user Settings path to the original path, there is no problem ..., the exception can not be reproduced, so no
It can only be said that eclipse sometimes there are some inexplicable problems, the problem is also the solution of the inexplicable ..., if you have a similar situation of friends can refer to the following: Of course, re-install eclipse can also solve, worry
Maven project relies on resolution of external jar times Java.lang.classnotfoundexception:Type com.xx.xx.xxx not present