find pom dependencies by classname

dependencies, java, maven-2, pom.xml

Solution

since version 6.1, Netbeans can add to pom.xml the dependency you need for a given class

Problem

How can I found the dependency by classname? In particular, I want to include this class org.mortbay.jetty.testing.ServletTester in my project, how do I do that? And how did you find the answer?

Original source