@Override
	public ResourceRef resolve(String resource) {
		ResourceRef result = null;

		if (DependencyUtil.looksLikeAGav(resource)) {
			result = ResourceRef.forLazyFileResource(resource, ref -> {
				ModularClassPath mcp = depResolver.apply(resource);
				// We possibly get a whole bunch of artifacts, but we're only interested in
				// the one we asked for which we assume is always the first one in the list
				// (hopefully we're right).
				return mcp.getArtifacts().get(0).getFile();
			});
		}

		return result;
	}
A <code>ResourceResolver</code> that, when given a resource string which
looks like a Maven GAV, will try to resolve that dependency and return a
reference to the downloaded artifact JAR.
src/main/java/dev/jbang/source/resolvers/GavResourceResolver.java