Hi,

When I specify a property for a plugins goal on the command line, like:

   mvn kilt:reformat -Dformat="<key> = <value>\n"

this works as expected, as long as this property (in this case "format")
isn't set in the pom for that plugin. Otherwise the configuration in the
pom.xml apparently takes precedence before the parameter that is given on
the command line. I would expect it the other way around.

This is the definition of the above mentioned property in the ReformatMojo:

  @Parameter(property="format", defaultValue = "<key> = <value>\\n",
required = true)
  private String format;

Do I need to configure something differently in the Mojo to be able to
override settings that are already set in the pom.xml?


(If someone is curios: the above mentioned plugin is this one:
https://github.com/hupfdule/kilt/tree/master/kilt-maven-plugin)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to