Maven project relies on resolution of external jar times Java.lang.classnotfoundexception:Type com.xx.xx.xxx not present

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.