Run custom build; passing maven parameters

Hi,



I'm executing the maven goal release:branch. I'm specifying the custom branchName by using "Run custom build..." feature. The property -DbranchName=RC-XXXX is added (see attachment). Unfortunately the build exits with following error:



[18:58:16][de.wigeogis.experiments:howto-release-reactor-project] Error  configuring: org.apache.maven.plugins:maven-release-plugin. Reason:  Invalid or missing parameters: [Mojo parameter [name: 'branchName';  alias: 'null']] for mojo:  org.apache.maven.plugins:maven-release-plugin:2.1:branch


The additional parameter specified inside of the form has been ignored!


What is the ordinary way for specifying additional maven parameters?


thanks in advance
golbie


Attachment(s):
run_custom_build.png
2 comments
Comment actions Permalink

Katarina,

To pass additional system properties (equivalent of setting "-D<property>=<value>) please choose "System Property" when adding build parameters. The resulting parameter must look like this:

system.branchName       RC-1.12.1

0
Comment actions Permalink

hi Nikita!

thank you! It works.

golbie

0

Please sign in to leave a comment.