27

I am trying to locate an evil plugin that includes a stoneage version of a certain jar file. How do I do that ?

3 Answers 3

22

mvn dependency:resolve-plugins gives a list of dependencies for each plugin

Sign up to request clarification or add additional context in comments.

2 Comments

NB that (for me) if I have some local dependencies specified that override a parent, mvn dependency:resolve-plugins still prints out the parent version in error (but the specified ones are used correctly). Be warned.
Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (default-cli) on project xxx: Nested: Failure to find org.apache.maven.plugins:maven-project-info-reports-plugin:jar:3.1 in repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced :(
13

also, mvn -X will spit out all kinds of info, i believe it includes dependency versions.

1 Comment

you can see some outputs in target/ folder when using -X like details on compiler, surfire, etc... (see *tmp files too)
-3

mvn dependency:tree - shows you a tree of all dependencies including transitive dependencies

2 Comments

Note: This only displays project dependencies, not plugin dependencies.
@AlexMiller Of course, but you can always create a separate pom just for this purpose, and in that pom you specify the plugin artifactId, groupId and version in the dependencies section (not in the plugins section). Then mvn dependency:tree will work and will not re-download anything.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.