Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

About Apache Maven scm plugin

Thread view: 
ilkinulas - 28 Jul 2005 13:26 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.