From the course: Introduction to Maven

Unlock this course with a free trial

Join today to access over 25,100 courses taught by industry experts.

Dependency goals

Dependency goals

- [Instructor] Of all the plugins in the Maven ecosystem, I find the most value from running specific goals from the dependency plugin. I want to walk through a couple of them with you, starting with the dependency:analyze. So what I want to do is go straight to the terminal, and let's validate where we're at. Let's go into the child project. And what I want to do is run a mvn dependency:analyze. And we're going to expand our terminal when this gives us output. So, what you'll see is we have some notifications down here, and this is really important because this is part of the value of dependency:analyze. It tells us that we have not used the slf4j-jdk14 JAR, but it also notes that it's a runtime JAR. This is very common what you will see in dependency:analyze, because the runtime JARs don't actually get used until they're run. Now the test JARs are kind of in a mixed bag. Sometimes you'll see them, sometimes you won't. In this case, we're not actually using either one of these…

Contents