Explict code paths for Maven 2 and Maven 3 when checking if artifact is an explicit dependency