Maven - Accessing Parent Pump Child Properties

In a project structure with multiple modules



If I have the following properties in parent.pom



How can I access parent pump properties from any of the baby pumps? I tried this on a baby pump but it didn't work.




source to share

2 answers

If you have a real multi-module build, you should never define modules for different versions. They should have the same version that allows possible other things to be released. Otherwise, you shouldn't use a multi-module setup than using separate separate modules that are separate.



This should work. One possible reason I can think of is that perhaps you don't actually inherit from the pom where these properties are defined (i.e. they are not defined as yours <parent>

directly or indirectly), but you have only the main pump that brings your projects together. However, this is an assumption.



All Articles