Hi, we are trying to automate our release process. I am trying to use
Maven, it really simplifies many things. While using scm plugin's
prepare-release goal i have the following problem:
when i execute the command "maven scm:prepare-release" maven prompts
for a TAG_NAME (">What is the new tag name?"). is there a way to skip
this question? I have tried
maven scm:prepare-release -Dtag_name=test_release_1_0_1
but maven still asked me the tag name.
I would like to execute the command "maven scm:prepare-release" from a
bash script so i need a way to supply tag_name to scm:prepare-release
goal.
thanks...
ilkin ulas Balkanay - ilkinulas@gmail.com
Neil Padgen - 29 Jul 2005 12:14 GMT
> Hi, we are trying to automate our release process. I am trying to use
> Maven, it really simplifies many things. While using scm plugin's
[quoted text clipped - 6 lines]
>
> but maven still asked me the tag name.
Unfortunately this seems to be hard-coded in the plugin.jelly script:
<i:ask
question="What is the new tag name?"
answer="tag_name"
default="${tag_name}"
/>
<i:ask
question="What is the new version?"
answer="version_name"
default="${tag_name}"
/>
You could try modifying the script to only ask the question if a variable
hasn't already been set (see the genapp plugin for a way that this is
done).
-- Neil