How to List Missing Maven Project Dependencies

I have a Maven project with 100 dependencies. Some of these dependencies are not available.

When I run mvn install against the parent pom file (this parent pom refers to other projects), I get errors that some Maven dependencies cannot find. But I have to add these dependencies before I can find out what other dependencies might be missing.

Is there a Maven team that will list the missing dependencies for the project?

Update: Other options are cleaning the repository folder and trying to rebuild using the Eclipse / Maven plugin. Missing dependencies for all projects are displayed on the problems tab.

+5
source share
1 answer

Maven shows you all the dependencies that are not in the first tier. It is also impossible to show the intersection of dependencies, because without the tricks included in these dependencies, Maven has no information about further dependencies. Thus, the only solution in this situation is to add all the missing dependencies (absolutely with pom files), and then re-execute maven ( install or just mvn dependency:resolve )

+1
source

Source: https://habr.com/ru/post/1205805/


All Articles