When I want to list all the classes in a given artifact, I have to use jar command to show files in the corresponding .jar file.
For example, I want to list all the classes in the artifact
I have to run
This method has some disadvantages:
- The jar file may not be downloaded, so it may not be in ~/.m2/repository.
- It's kind of tedious to type such a long filename.
- The output is shown in raw filenames, e.g., org/apache/commons/lang3/SystemUtils.class, but I generally want a package + class name org.apache.commons.lang3.SystemUtils.
So I would expect a goal called show with an argument artifact, so I can type
What do you guys think? Thanks.