On a unix system or Git Bash on Windows, cd to project root and do:
find . -name \*.jar
If you need this automatically as part of the build process then it is a
different thing. If so, consider writing a maven plugin for that. I doubt such
already exists. If on a unix system only!, there might be a plugin available
for executing external commands where the above find can be done. .
Regards,
Tommy Svensson
> 9 juni 2022 kl. 22:51 skrev Karl Heinz Marbaise :
>
> Hi,
>
> On 07.06.22 05:22, Laurian Angelescu wrote:
>> Is it possible to invoke *mvn* on the command line to output either 1) the
>> paths to all target folders where jars get packaged or 2) the file paths of
>> the jars themselves?
>>
>> For example, in a multi-module project like
>> https://github.com/apache/httpcomponents-core.git, I would like to invoke:
>>
>> *mvn *
>>
>> and have output to standard out:
>>
>> //httpcore5/target/httpcore5-5.2-beta1.jar
>> //httpcore5-h2/target/httpcore5-h2-5.2-beta1.jar
>> ...
>> etc.
>>
>> I want to essentially be able to get a list of the JARs created in *any
>> *Maven
>> multimodule project.
>>
>
> Can you explain why you need those directory information? What kind of
> problem are you trying to solve?
>
> Kind regards
> Karl Heinz Marbaise
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org