Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一个实用程序或 maven 命令可以递归地列出存储库中的所有类?它可以用一个简单的递归shell脚本并使用“jar -tf”粗略地编写,但是,我假设这可能已经以更优雅的方式完成,无论是在maven本身中,还是在其他一些工具中
命令行不存在这样的工具。但是,这个 eclipse m2eclipse插件可以让你浏览任何 maven 存储库。具体来说,对于 maven 中央存储库,有一个REST API可让您从中检索信息。无论如何,您的脚本方法可能不会有问题。
实际上存在一个命令行工具,效果很好:https ://code.google.com/p/rjar (它也有一个 UI 选项)