Maven 2 & 3

add getModules() method which return a MavenProject List instead of module name String list