How do I find the packages defined in a jar?

前端 未结 5 1223
醉酒成梦
醉酒成梦 2020-12-17 18:05

I have a bunch of JAR files (from a maven2 project) and maven reports some package could not be found (org.openanzo.client.jena to be exact). I want to dig into the JAR file

5条回答
  •  有刺的猬
    2020-12-17 18:42

    Assuming maven downloaded the jar files,the files will be loaded in to a local repository. You could use maven browser that comes packaged with Eclipse to browse and search for artifacts in your repository.(usually in userdir/.m2/repository)

    Note:You can explore your repository directly if you want. You will understand the packages that were downloaded. But I suggest using the plugin.

    If you are using Intellij IDEA, each project contains a tree called External Library that allows you to search and explore your libraries.

提交回复
热议问题