REVIEW-3068: Avoid making extra HEAD request for POM.