Java – how to find which Maven dependencies are missing
•
Java
I have a web project and a POM XML file It has enough dependencies to compile and package, but not enough to start the project In my IDE, it shows that everything is normal, but it has an error when starting the application When I add an external POM from another application XML, my application starts
So what are the ways to find out which dependencies are missing and how to determine which dependencies are needed to use this or that in the future?
Solution
You can use MVN dependency: analyze to determine which dependencies are used and declared or used, as well as undeclared or unused and declared dependencies
I hope this will help
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码