I need to execute sequence of two different maven goals that both accept argument with a same name, but I need to pass different value for this argument to each of these goals. To be more specific, I need to execute release:prepare followed by scm:checkin and both of these goals accept argument pushChanges which I need to set to false for the first goal and to true for the second goal (this is simplified scenario since between these two maven goals there is a third goal executed but that is not relevant). In addition due to design of our CI pipeline this all needs to be done using maven command line (parameters cannot be set in pom.xml for individual plugins).
Any idea on how this can be achieved in an elegant way ?