Listing items on the Java classpath from the current project only

前端 未结 1 1840
耶瑟儿~
耶瑟儿~ 2021-01-15 18:12

I have a Java project with a large classpath - many of the items are imported from different .jar files that have been added as dependencies (via Maven).

I\'m lookin

相关标签:
1条回答
  • 2021-01-15 18:30

    There is no way to do this unless you create your own metadata.

    To the JVM, there is no distinction between items in the classpath. A jar is a jar is a jar.

    You can use the maven-dependency-plugin to write out a list of the dependencies that are local, and not transitive, and write that into a file, and put that file in your application.

    0 讨论(0)
提交回复
热议问题