Hi Torsten,
I have faced a similar situation and unfortunately have not come up with
a "silver bullet" solution. I too would be interested if anyone else
has one. Fortunately for us, so far all of our projects that use maven
are small enough that we can put all modules in a single
(multi-component) VOB. However, I'm sure the day will come where we
need to work in a multi-module project across VOBs, so I've put some
thought into it.
I assume that the issue arises because your VOB tags are not the same in
your Unix region(s) as in your Windows region(s). Obviously one option
would be to make the VOB tags all the same (e.g. /vobs/my_vob and
\my_vob), but this is not always possible. If it's not, the only other
thing I can suggest is to use properties to define the relative path to
the VOB roots; the properties would be defined in profiles that are
activated based on OS family. For example:
...
<profiles>
<profile>
<id>unix_vobs</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<properties>
<my_vob>../../my/vob</my_vob>
</properties>
</profile>
<profile>
<id>windows_vobs</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<my_vob>../my_vob</my_vob>
</properties>
</profile></profiles>
...
Then in your POM define the path as such:
<relativePath>${my_vob}</relativePath>
You could also activate the profile based on the presence of a 'file'
(i.e. the VOB root); I don't see any advantage/disadvantage of doing it
one way or the other.
Hope this helps!
Doron
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: June 17, 2008 11:17
To: [email protected]
Subject: relativePath in <parent> section, if modules in different VOBs
Hi,
actually we have 2 ClearCase VOBs (databases) - one for the test-team,
the other for developement.
Both maven builds should use the same company-parent pom.xml:
<parent>
<groupId>com.mycompany</groupId>
<artifactId>global-parent</artifactId>
<version>1.9.4</version>
<!-- TODO how to define if in different VOB?....-->
<relativePath>../pom.xml</relativePath>
</parent>
This works fine, because the parent is referenced via its <version> But
what about the <relativePath>?
How can I setup a relative path, if the parent resides in a different
ClearCase VOB?
Thanx, Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]