From the course: Introducing Maven

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Dependency goals

Dependency goals

From the course: Introducing Maven

Start my 1-month free trial

Dependency goals

- [Instructor] Of all the plugins in the Maven ecosystem, I find the most value from running specific goals from the dependency plugin, and I want to walk through a couple of them with you, so you too can see the value of them. Let's go ahead and jump into our terminal, and let's go into our individual project. From within this project, I want you to execute a goal on the dependency plugin, so dependency:analyze. We'll allow this goal to run, and what you'll see here is we actually get a warning section at the very end. This tells us some very interesting information. The first one, is that we have a dependency that we haven't declared that we're actually using. So the commons io dependency we're using, but it hasn't been declared in our POM file. We're getting it transitively, but because we're using it we should mention it as being compile time. This is a very good warning to know because if that dependency goes and changes things I'm going to have compilation problems. We also have…

Contents