code: public static int compareMavenVersions(String v1, String v2) {
  		return parseMavenVersion(v1).compareTo(parseMavenVersion(v2));
  	}
docs: Compare two Maven versions.
  
  @param v1 first Maven version.
  @param v2 second Maven version.
  @return an integer that the sign indicates if v1 is lower, equal ot greater than v2.