I have a maven project which extends an existing parent project (It's the "standard product" from which my product will be a "Customized product").
The parent declares a org.codehaus.cargo / cargo-maven2-plugin
and passes it some VM args under configuration
/ cargo.jvmargs
. Like this:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.18</version>
<configuration>
<container>
<containerId>tomcat8x</containerId>
[...]
<dependencies>
[...]
</dependencies>
</container>
<configuration>
<properties>
<cargo.jvmargs>-ArgA -ArgB -ArgC</cargo.jvmargs>
</properties>
<configfiles>
[...]
</configfiles>
<files>
[...]
</files>
</configuration>
</configuration>
</plugin>
Now in my custom project, I want to extend these jvm args with one more argument (Let's say -ArgD), so that the args are -ArgA -ArgB -ArgC -ArgD. I don't want to override the entire plugin only to do this one little change.
I know that I can specify this: cargo:run -Dcargo.jvmargs="-ArgD"
but the problem here is: All other args (ArgA, ArgB, ArgC) get overridden/removed, only ArgD will remain. What I need is something like cargo:run -Dcargo.jvmargs="current_cargo.jvmargs + -ArgD"
.
Is this possible somehow?