// FIXME
private Coordinate promptVersion(final DependencyFacet deps, final Coordinate dependency,
Predicate<Dependency> filter)
{
Coordinate result = dependency;
final List<Coordinate> versions = deps.resolveAvailableVersions(DependencyQueryBuilder.create(dependency)
.setFilter(filter == null ? new NonSnapshotDependencyFilter() : filter));
if (versions.size() > 0)
{
Coordinate deflt = versions.get(versions.size() - 1);
result = deflt;
// result = prompt.promptChoiceTyped("Use which version of '" + dependency.getArtifactId()
// + "' ?", versions, deflt);
}
return result;