0

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?

chad
  • 7,369
  • 6
  • 37
  • 56
  • possible duplicate of [Override Maven plugin configuration defined in pluginManagement from the command line](http://stackoverflow.com/questions/4660047/override-maven-plugin-configuration-defined-in-pluginmanagement-from-the-command) – Duncan Jones Dec 11 '12 at 20:55
  • @DuncanJones I'm more specifically interested in how to use the xml configuration elements for both the command line invocation as well as the build execution. I think that question is about -D params . . . – chad Dec 12 '12 at 15:41

1 Answers1

0

Check out maven profile. It's able to help you to deal with configuration divergence in different environments.

Gavin Xiong
  • 957
  • 6
  • 9