Check out maven profile. It's able to help you to deal with configuration divergence in different environments.
How do I separate configuration for maven command line mojo invocation from global plugin configuration?
-
07-12-2021 - |
Question
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow