Hey Ossi,
I have a similar structure for one of our projects.
In the parent pom you can specify a relative path for the module:
<modules>
<module>../module-1</module>
<module>../module-2</module>
<module>../module-3</module>
</modules>
Enjoy!
Evan
ossi petz wrote:
hallo
this might be obvious for everyone. but well - i could not find clear
recommendations on how to do this the best way.
i have a multi-module build:
parent pom.xml
- module-1
- module-2
- module-3
the modules are stored in a subversion repository:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3
currently the parent pom is at
http://repos/trunk/pom.xml
to ease working with the parent pom in eclipse (allow working like
other projects), i moved the parent pom into an own module:
parent-module which is stored beside the other modules in subversion:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3
http://repos/trunk/module-parent
but i dont want to copy the parent pom everytime to /trunk/pom.xml
and in future we may have additional parent poms for that location.
using a continous integration server and let it point to the parent
pom seems only to work if the directory structure is normalized
(parent pom and its modules in the same folder)
so: can the parent pom be stored just 'somewhere', and reference the
modules with a relatvive path? same for the modules?
will a continuous integration server be able to understand that if i
point it to http://repos/trunk/module-parent (so the modules are not
directly in subdirectories)?
and will such relative module settups conflict with the release steps?
or does that not matter at all?
any feedback would be welcome :)
regards
ossi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]