On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain <siddh...@gmail.com> wrote:

> Thanks for your help. To keep the discussion focused, the ask is how to add
> additional dependencies/jars to the classpath when running a program using
> mvn exec:java and from what i understand it is not possible.
>

Correction: it is possible. But actually you want to do it from the command
line only, which (as documented) would require exec-maven-plugin's java
goal's additionalClasspathElements property to have a corresponding
user.property that you could specify with a -D flag, which, as documented,
it does not.

Best,
Laird

Reply via email to