I'm using the cargo plugin to deploy my app to a remote server during the build. To do this, I have a configuration element for the cargo plugin. Since there are two executions that use this single configuration, I use a global configuration element, i.e. it's not inside the executions.
I also want to execute a CLI invocation of the cargo:run mojo on this pom. However, I don't want this execution to use the configuration at all.
How can I do this?
Check out maven profile. It's able to help you to deal with configuration divergence in different environments.