O'Reilly logo

Apache Maven 2 Effective Implementation by Maria Odea Ching, Brett Porter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Searching for artifacts in Archiva

Let's recall what we did in Adding Dependencies in Chapter 1, Maven in a Nutshell. You have used Logger and LogFactory in the ExampleAction class and got a compilation failure when you built the project. In order for Maven to build it successfully, you have to add the artifact that has that class as a dependency in your project's POM. However, what if you don't know which artifact that is?

A simple solution to this problem is to search for it in Archiva. As we already did some proxying above, the slf4j-api.jar should already be in our proxy cache internal so we can try to search for it.

Note

Newly proxied and deployed artifacts are immediately indexed after they arrive in the repository, which is the why we can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required