code: public static MavenArtifactUrlReference.VersionResolver asInProject() {
          return new MavenArtifactUrlReference.VersionResolver() {
  
              @Override
              public String getVersion(final String groupId, final String artifactId) {
                  return getArtifactVersion(groupId, artifactId);
              }
  
          };
      }
docs: Utility method for creating an artifact version resolver that will get the version out of
  maven project.
  
  @return version resolver