如何通过类名或罐子名称查找jar及其Maven Gav [英] How to find jar and its maven gav by class name or jar name
问题描述
我需要知道ApplicationContext属于哪个JAR,同时还需要它的maven gav(我想在一些spring jar中使用它).有没有一种通用的方法来搜索特定类所属的Jar.我发现 http://www.findjar.com 可以搜索jar,但不能搜索maven gav,那么 http://www.findmaven.net ?
I need to know ApplicationContext belongs to which JAR meanwhile its maven gav(I want it in some spring jar). Is there any generalized way of searching Jar to which a particular class belongs to. I find http://www.findjar.com can search the jar but not the maven gav, what about http://www.findmaven.net?
推荐答案
您可以使用 AdvancedSearch http://search.maven.org/
You can use the AdvancedSearch on http://search.maven.org/
对于像ApplicationContext这样的类名称,您将获得许多结果,因此您可能希望通过groupId限制查询.例如,您可以搜索: g:org.springframework c:ApplicationContext
For a class name like ApplicationContext, you'll get many results, so you might want to limit your query by groupId. For example, you could search for: g:org.springframework c:ApplicationContext
这篇关于如何通过类名或罐子名称查找jar及其Maven Gav的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!