I have a ModuleA in ProjectA and ModuleB in ProjectB. There is a profile in ProjectB which needs both the modules to be built. How do we achieve this ?
Basically, I want something like this,
<profile>
<id>test</id>
<modules>
<module>ModuleA</module> <!-- this throws error -->
<module>ModuleB</module>
</modules>
</profile>
I have gone through this question(How to include a maven module outside of the project context?), but the requirement here is to have a profile with both the modules and not add ModuleA as dependency in ProjectB