Let's recall what we did in Adding Dependencies in Chapter 1, Maven in a Nutshell. You have used
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.
Newly proxied and deployed artifacts are immediately indexed after they arrive in the repository, which is the why we can ...