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.