title: Maven: retrieving the main module version from a sub-module
body: <p>My Maven projects are multi-module and in general the version numbers are not synced. For instance, I can have a master POM versioned as 1.2.3-SNAPSHOT and a sub-module versioned 3.4.5-SNAPSHOT (the main reason for not keeping them synced is that often a module is moved from a project to another and it has to keep its version).</p>
  
  <p>Now I want to put the main project version in a resource of the module containing the main (or the webapp, etc...), which of course is a sub-module. This means that I need to access the master pom version from a sub-module. </p>
  
  <p>Also be aware that my projects have got 3 or 4 levels; thus the master pom is the grandfather of the submodule, not just the parent.</p>
  
  <p>In spite of having some experience with Maven including advanced stuff, so far I've been unable to solve this problem.</p>
  
  <p>Thanks.</p>