Re: About Apache Maven scm plugin



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

.



Relevant Pages

  • Re: RFD: How To Recognize Bad Javascript Code
    ... Elements consist of tags ... Your example `script' elements are empty where they should have ... | Using the pseudo-protocol javascript in the href is never valid. ... Some web developers use this to work ...
    (comp.lang.javascript)
  • Re: Community problem
    ... >I belong to a small web community that is based around a horse racing game. ... >On the site we have a disscussion forum for the members to post messages, ... The script he uses is placed in the message ... Any unclosed tag in the same position would probably do the same. ...
    (comp.lang.javascript)
  • Re: Retrieving special characters
    ... getting more confused about handling special characters. ... In HTML will be concidered as a tag, ... does not concider them as control characters such as tag delimiters. ... Script Archive is the most classic exploited script. ...
    (comp.lang.php)
  • Re: Help-Need confirmation page email address to be assigned to a javascript variable - Stuc
    ... I have tried that and just awaiting results from the tracking company...but ... as you say the problem lies in the statement between the no script tags ... JavaScript - and JavaScript is not available if a tag is ...
    (microsoft.public.frontpage.programming)
  • Re: Double-document.write(...) insert
    -like space?

    ... What is with all that voodoo scripting by breaking up tags that have no ... Then why not just write the image tag anyway? ... It isn't the word script that ends it, it is the character sequence </ that can end it - it is up to the browser. ... want to use it based on a JavaScript value, I have to do this nested ...
    (comp.lang.javascript)