I want to create a maven project with the following structure:
A |--pom.xml |--B |--pom.xml |--C |--pom.xml
where A, B, and C are folders, and B pom.xml and C pom.xml are children of A pom.xml. I want to have the following section in B pom.xml:
<properties> <some.property>B</some.property> </properties>
And in C:
<properties> <some.property>C</some.property> </properties>
And I want to determine the value of several other properties based on the value of some property. So, for example, in pseudo-code, A will do something like this:
if ( some.property == 'B') then some.other.property = 'some-value-based-on-b' else if ( some.property == 'C') then some.other.property = 'some-value-based-on-c' ...
I want to run mvn clean install, referencing A pom.xml (which contains the module section pointing to B and C), so as far as I understand, I canโt use profiles for this (since in maven2 projects in the same reactor the same active profile is inherited.I can use maven3, but could not find if it will change anything).
Does anyone know how to do this?
Thanks,
source share