Reputation: 85
When a transitive dependency changes, there is no direct change in the project I am working on. When I update a dependency that itself brings in new dependencies since its previous version, transitive dependencies are difficult to track and it would be good to know if there is any new library added to the project I am building or the version of an existing transitive dependency has changed.
Is there a maven plugin that can detect a dependency change like this or a maven flag?
Upvotes: 1
Views: 1160
Reputation: 2933
Use mvn dependency:list -Dsort=true > file
to generate all dependencies into file. After POM changes generate second file. Then diff files to see changes
Upvotes: 2
Reputation: 2933
If you don't do any changes also transitive dependencies will not change. This can happen only if you change POM. For example you change version of used dependency.
If a library changes dependencies, version of the library will increase. To be affected by this changes you would need to use that new version in POM.
Upvotes: 1