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?
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?
Nexus允许您按类名以及 GroupId、ArtifactId 和 Version 搜索工件。Nexus 使用 Lucene 来索引工件。Sonatype 公共存储库允许您搜索主要存储库。
在搜索字段中输入 org.mortbay.jetty.testing.ServletTester 并点击搜索图标。您不会得到任何结果,因为默认情况下 Nexus 会搜索关键字。要优化搜索以匹配类名,请选择搜索页面上关键字搜索标签旁边的向下箭头,然后选择类名搜索(参见屏幕截图)。然后,您将找到匹配工件的列表。
(来源:sonatype.com)
Nexus 还集成了Opensearch,因此您可以将搜索添加到您的 Firefox / IE 7 搜索字段。有关设置的更多详细信息,请参阅Nexus 书。
还有一个视频,其中包含有关可用搜索选项的更多详细信息。
从 6.1 版开始,Netbeans 可以将给定类所需的依赖项添加到 pom.xml
使用http://www.jarvana.com/或使用 Intellij IDEA