problem in running release:prepare goal from hudson

View: New views
3 Messages — Rating Filter:   Alert me  

problem in running release:prepare goal from hudson

by DebasisM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
 I am using maven release plugin for our release.while executing the goal release:prepare it is prompting for  some question.like version no,tag no e.t.c.

but I want to run release:prepare goal from hudson.Is it possible for the release plugin to take the version no and tag no from a well known properties file.

Thanks,
Debasis

Re: problem in running release:prepare goal from hudson

by Dan Tran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need run release:prepare goal in batch mode by passing -B into mvn command

ie.

mvn -B release:prepare

-D



On Sun, Nov 1, 2009 at 9:48 PM, Mr Debasis <debasis1982@...> wrote:

>
> Hi All,
>  I am using maven release plugin for our release.while executing the goal
> release:prepare it is prompting for  some question.like version no,tag no
> e.t.c.
>
> but I want to run release:prepare goal from hudson.Is it possible for the
> release plugin to take the version no and tag no from a well known
> properties file.
>
> Thanks,
> Debasis
> --
> View this message in context: http://old.nabble.com/problem-in-running-release%3Aprepare-goal-from-hudson-tp26156030p26156030.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: problem in running release:prepare goal from hudson

by DebasisM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Dan.really it helps.

but there are some more problem looks like in release plugin.

1.while executing the goal release:prepare it is committing the pom file twice.
   one is -preparerelease versionno . second is-preparation for next development iteration
2.suppose my releaseversion no is 3.0 .previous was 2.9.
 In first commit i,e prepare release my pom file version is getting changed to 3.0 including the submodules.
 but again in the second commit i,e preparation for next development iteration the pom version is getting modified to 2.9 including submodules.which i don't want.

is there any way to prevent this second committ for next development iteration.i want only one committ i,e prepare release.i don't want my version no should go back to the previous version.

3.release:perform runs two goal one is site-deploy and other is deploy goal.
i want only one goal should be fired that is deploy during release:perform.is it possible??

Thanks,
Debasis



 
Dan Tran wrote:
You need run release:prepare goal in batch mode by passing -B into mvn command

ie.

mvn -B release:prepare

-D



On Sun, Nov 1, 2009 at 9:48 PM, Mr Debasis <debasis1982@gmail.com> wrote:
>
> Hi All,
>  I am using maven release plugin for our release.while executing the goal
> release:prepare it is prompting for  some question.like version no,tag no
> e.t.c.
>
> but I want to run release:prepare goal from hudson.Is it possible for the
> release plugin to take the version no and tag no from a well known
> properties file.
>
> Thanks,
> Debasis
> --
> View this message in context: http://old.nabble.com/problem-in-running-release%3Aprepare-goal-from-hudson-tp26156030p26156030.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org