Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Version handling & svn

Just to be sure, the current m2e should cover multi module projects w/o issue.

One thing: multi module maven projects will map to Eclipse projects not as cleanly as one would want. The parent project will show and all the child modules folders, but you will also have each child module as an Eclipse project. There's a lot of discussion on this, this one talks about it: Sub-Projects in eclipse.

Agreed with the maven release plugin, working with multi module projects these commands really help:

mvn release:set
mvn release:commit

Full list of commands can be found here: maven-release-plugin.

Hope that helps.


On Tue, Nov 12, 2013 at 3:22 PM, Adrien Rivard <adrien.rivard@xxxxxxxxx> wrote:
You may also want to look at the maven-release-plugin, the buildnumber-maven-plugin and maybe the versions-maven-plugin.

Apart from that I think you are trying to do things with m2e that it does not really cover.
All the stuff like packaging releasing... are expected to be done via plain maven (or eventually via the equivalent "run as maven ..." .

On Wed, Nov 13, 2013 at 12:02 AM, Marcus Malcom <malcomm314@xxxxxxxxx> wrote:
This isn't exactly m2e related, but you will want to do a google search on "maven multi module" and you should get what you need. Taking a quick look, this seems pretty nice:

Hope this helps.


On Tue, Nov 12, 2013 at 2:51 PM, Mauro Condarelli <mc5686@xxxxxxxxx> wrote:
First of all a disclaimer: I am a quite used to eclipse, but a newbie to maven, so please be lenient if I ask stupid (or plain obvious) questions and redirect me to the Right Manual (TM).

I have a non-trivial program composed by three eclipse projects, plus one that's used just for building.

I sat up the projects giving the standard version: 1.0.0-SNAPSHOT and this is working, building everything and producing a deployable set of files (jars, runtime and launcher).
So far, so good.

Now I'm approaching delivery and I need to switch from SNAPSHOT to releases.
I tried changing manually the versions (1.0.0-SNAPSHOT -> 1.0.1) but that screws completely dependencies.

I would like:
1) to have the version stored only in one place (the master POM).
2) get dependency handling (all modules/projects should have the same version number).
3) have automatic versioning (the last number in the version triplet should be the SVN commit number).

I think all this is possible (I've found references all over the internet, but they were for pain maven, not for maven handled by eclipse), but all my attempts have met failure.

Can someone be so kind to point me in the right direction, pretty please?

Thanks in Advance
m2e-users mailing list

m2e-users mailing list

Adrien Rivard

m2e-users mailing list

Back to the top