2

Does child projects inherit profiles (and their properties) either from parent POM or via parent's module declaration? Does declaring the profile of the same name in child POM override all the properties set in parent POM, or worse, will declaring any profile hide all the parent profiles? What is the best practice to cope with the situation, where multiple child modules should use common properties with a certain profile, but also define their proprietary properties for this specific profile?

Edoardo
  • 657
  • 7
  • 24
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
  • 1
    Possible duplicate of [Inheriting Maven profiles](https://stackoverflow.com/questions/3695394/inheriting-maven-profiles) – Naman Sep 04 '17 at 12:35
  • It shouldn't be too difficult to test this - have you created some simple POMs and tried to use profiles in the manner you suggest? – D.B. Sep 04 '17 at 13:55

0 Answers0