About Apache Maven scm plugin

I

ilkinulas

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 - (e-mail address removed)
 
N

Neil Padgen

ilkinulas said:
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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top