Maven 2 & 3

Issue warning in case parent.relativePath points at POM with different groupId/artifactId