You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by NGUYEN Cong Kinh <co...@it-sudparis.eu> on 2009/12/09 17:31:58 UTC

how to easily release a version and change to new version?

Hello everybody,

I have a problem with automatically deploying modules in Maven. I 
suppose that I have a Maven's hierachy as the following:

- trunk
  + pom.xml
  +-- A
     + pom.xml
     +-- A1
         + pom.xml
         +-- A11
          ...
         +-- A12
         ...
     +-- A2
     +-- A3
  +-- B
     +-- B1

...

Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 
0.1.8 and start the 0.1.9-SNAPSHOT version. Is there any way to only do 
something in the trunk/pom.xml, I can then easily release 0.1.8 and 
change  to 0.1.9-SNAPSHOT.

Thanks in advance,
Kinh

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


Re: how to easily release a version and change to new version?

Posted by Dan Tran <da...@gmail.com>.
this will get you started

mvn -B release:prepare release:perform

after that tailor it to your desired

-Dan


On Wed, Dec 9, 2009 at 8:48 AM, Laird Nelson <lj...@gmail.com> wrote:
> On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh <
> cong_kinh.nguyen@it-sudparis.eu> wrote:
>
>> Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8
>> and start the 0.1.9-SNAPSHOT version. Is there any way to only do something
>> in the trunk/pom.xml, I can then easily release 0.1.8 and change  to
>> 0.1.9-SNAPSHOT.
>>
>
> http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html,
> probably.
>
> Best,
> Laird
>

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


Re: how to easily release a version and change to new version?

Posted by Laird Nelson <lj...@gmail.com>.
On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh <
cong_kinh.nguyen@it-sudparis.eu> wrote:

> Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8
> and start the 0.1.9-SNAPSHOT version. Is there any way to only do something
> in the trunk/pom.xml, I can then easily release 0.1.8 and change  to
> 0.1.9-SNAPSHOT.
>

http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html,
probably.

Best,
Laird