From issues-return-166038-archive-asf-public=cust-asf.ponee.io@maven.apache.org Wed May 20 20:23:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EA226180637 for ; Wed, 20 May 2020 22:23:02 +0200 (CEST) Received: (qmail 5929 invoked by uid 500); 20 May 2020 20:23:02 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 5917 invoked by uid 99); 20 May 2020 20:23:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2020 20:23:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 34C26E30AF for ; Wed, 20 May 2020 20:23:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 1D17678238D for ; Wed, 20 May 2020 20:23:00 +0000 (UTC) Date: Wed, 20 May 2020 20:23:00 +0000 (UTC) From: "Jonathan Volfson (Jira)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MDEP-645) List classes in a given artifact MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MDEP-645?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D171125= 81#comment-17112581 ]=20 Jonathan Volfson commented on MDEP-645: --------------------------------------- Is this mojo looking for any artifact the user specifies or an artifact tha= t should be within the current project? > 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 > Reporter: John Lin > 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=C2=A0list=C2=A0all 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-lang= 3-3.6.jar > {code} > This method has some disadvantages: > # The jar file may not be downloaded, so it may not be in {{~/.m2/reposit= ory}}. > # 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.apac= he.commons.lang3.SystemUtils}}. > So I would expect a goal called {{show}} with an argument {{artifact}}, s= o I can type > {code} > mvn dependency:show -Dartifact=3Dorg.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)