You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/07/17 12:19:00 UTC

[jira] [Updated] (MDEP-645) List classes in a given artifact

     [ https://issues.apache.org/jira/browse/MDEP-645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold updated MDEP-645:
---------------------------------------
    Affects Version/s: 3.1.3

> List classes in a given artifact
> --------------------------------
>
>                 Key: MDEP-645
>                 URL: https://issues.apache.org/jira/browse/MDEP-645
>             Project: Maven Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.1.3
>            Reporter: John Lin
>            Assignee: Elliotte Rusty Harold
>            Priority: Minor
>              Labels: intern
>
> 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
> {code}
> org.apache.commons:commons-lang3:3.6
> {code}
> I have to run
> {code}
> jar tf ~/.m2/repository/org/apache/commons/commons-lang3/3.6/commons-lang3-3.6.jar
> {code}
> 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
> {code}
> mvn dependency:show -Dartifact=org.apache.commons:commons-lang3:3.6
> {code}
> to show
> {code}
> org.apache.commons.lang3.CharUtils
> org.apache.commons.lang3.RandomStringUtils
> ...
> {code}
> What do you guys think? Thanks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)