通过类名查找 pom 依赖项

2022-01-15 00:00:00 dependencies java pom.xml maven-2

如何通过类名找到依赖关系?

How can I found the dependency by classname?

特别是,我想在我的项目中包含这个类 org.mortbay.jetty.testing.ServletTester,我该怎么做?您是如何找到答案的?

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?

推荐答案

从 6.1 版本开始,Netbeans 可以 将给定类所需的依赖项添加到 pom.xml

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

相关文章