Hi,

I have put the challange to the twitterverse yesterday, but got no replies (
http://twitter.com/#!/AndreasEK/status/42638034545549312). I think it is not
possible at the moment.

Challenge: Given a hg repository with a multi-module maven project, how can
you release a single module?
Bonus: Make the multi-module layout a flat directory structure (i.e. all
modules are in root of hg repositories, even the parent)

First I tried to invoke the build from that modules' directory, but during
release:perform the whole repository is cloned on the built is started on
the repository root instead of the module.

-> Can I specify in the scm developerconnection the actual path within the
repository, that should be used, for hg repository? I couldn't find it
documented anywere.

Then I tried to run the release-build from the repository root with "-f
project/pom.xml" and also passed that with -Darguments="-f project/pom.xml"
to the forked release builds, but the -f options seems to be ignored, while
other options seem to get through.

-> This would be nice to find out in the documentation of the release
plugin.

Then I tried to run the release from the root again, created a dummy pom.xml
in the root that does nothing else than having the real parent/pom.xml as a
module. And Also created a release.properties file. In that file I used the
project.dev* and project.rel.* settings for all modules in the build, kept
the dev-version in sync with what the current version in the repository is,
and only increased the version for a single module. Hoping that the other
modules get ignored during the release, because the target version is the
same. That did not work out.

Now, I'm running out of ideas, clueless, and feel like I want maven to do
something that it is not built to do. Can you help me out with new ideas?

-- 
Mit freundlichen Grüßen / Best regards

Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory

codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland
tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0)
175.2664109
www.codecentric.de | blog.codecentric.de | www.meettheexperts.de |
www.more4fi.de

Sitz der Gesellschaft: Düsseldorf | HRB 63043
Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen
Schütz

Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche
und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige
Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie
bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter
Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl.
beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht
gestattet.

Reply via email to