Would using basic batch/shell specifying the dependencies with the Java
classpath argument (without maven run) and the main runtime class be the
alternative?
Kind of a side question…when building with maven does it automate the addition
dependencies within the META-INF/MANIFEST.MF (1)
Could this help?
https://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html
Delany
On Fri, 6 Jan 2023 at 05:30, Siddharth Jain wrote:
> thanks. unfortunately this is exactly what i don't want to do. i am looking
> for a command line solution. i don't want my users to
I'm confused. Why would your users write additional entries intk your pom?
On Fri, Jan 6, 2023, 10:33 Delany wrote:
> Could this help?
>
> https://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html
> Delany
>
> On Fri, 6 Jan 2023 at 05:30, Siddharth Jain wrote:
>
> >
Hi All,
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.
I am using mvn dependency:build-classpath to get the full CP and then
On Fri, Jan 6, 2023 at 8:57 AM Laird Nelson wrote:
> On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain 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
On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain 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
I think as a user of maven the expected behavior (ask) is for the
additionalClasspathElements to support a user.property which it doesn't
currently. would be a good feature to add to maven exec plugin i believe.
thanks again to all for the help.
On Fri, Jan 6, 2023 at 9:33 AM Delany wrote:
>
The way to separate multiple classpaths is to have multiple poms. You can
make another child module (so that it inherits the base dependencies) and
add the extra dependencies and the exec:java to THAT module.
Delany
On Fri, 6 Jan 2023 at 18:55, Siddharth Jain wrote:
> Hi All,
>
> Thanks for