System.out.println(String.format("Checking [%s] for newer version...", gav));
ArtifactInstallFactory installFactory = artifactInstallFactoryProvider.get();
if (localrepo != null)
installFactory.setLocalRepository(localrepo);
VersionRangeResult rangeResult = installFactory.findVersions(gav);
Version newestVersion = rangeResult.getHighestVersion();
VersionNumber currentVersion = new VersionNumber(gav.version);
VersionNumber availableVersion = new VersionNumber(newestVersion.toString());