About Apache Maven scm plugin

Discussion in 'Java' started by ilkinulas, Jul 28, 2005.

  1. ilkinulas

    ilkinulas Guest

    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, Jul 28, 2005
    #1
    1. Advertising

  2. ilkinulas

    Neil Padgen Guest

    ilkinulas wrote:

    > 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
    Neil Padgen, Jul 29, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    447
  2. Marcin Cenkier
    Replies:
    1
    Views:
    5,391
    Marcin Cenkier
    Apr 12, 2006
  3. krabhi
    Replies:
    1
    Views:
    9,271
    Marco Meschieri
    Aug 9, 2006
  4. Christine Mayer

    [OFFTOPIC] Maven 1.1 + tomcat plugin

    Christine Mayer, Dec 19, 2007, in forum: Java
    Replies:
    0
    Views:
    457
    Christine Mayer
    Dec 19, 2007
  5. manos
    Replies:
    0
    Views:
    218
    manos
    Oct 6, 2007
Loading...

Share This Page