Maven Dependencies and mavendependencies cannot be found in Maven projects of eclipse.

Source: Internet
Author: User

Maven Dependencies and mavendependencies cannot be found in Maven projects of eclipse.
I have come back for food. Stupid birds do not have to fly first, but they must stick to it.

Record a primary error today

For example, we create a maven project in eclipse to run our web project.

 

 

 

 

After the project is built, all javax-servlet packages report errors.

 I don't know why yet. If you want to know why, please move to the end

I tried to change the eclipse configuration file for half a day, but it is still useless. I can only view the project video I watched and see how it was built.

 

  

First, it is a pom Project

Then inherit the pom jar

 

I have no problem. Then I created the following project again.

Is it Mao or not?

---------------------------------------------------------------- Straight split line -----------------------------------------------------------------------------------------------

 

 

All right, careful friends already know the reason.

Have you seen it? Read the official maven manual to find out,This is a pom project. It does not load the jar package,

This is the tag that is available only when the pom project is created!

In the future, it will be reliable to look at the manual honestly. Otherwise, we will see the famous saying "from deleting the database to running the road" in the future.

Therefore, this blog article should not be called Maven Dependencies not found in the solution project.

It is called the <dependencyManagement> label, but I believe many old brothers are looking for bugs in this way, but I don't know where the problem is,

I always search for bugs and don't know the real problems, so I think this title is reliable.

 

Related Article

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.