public static ResourceLoader createMavenArtifactLoader ( final MavenResolver mavenResolver , final ArtifactCoordinates coordinates , final String rootName ) throws IOException { File fp = mavenResolver . resolveJarArtifact ( coordinates ) ; if ( fp == null ) return null ; JarFile jarFile = JDKSpecific . getJarFile ( fp , true ) ; return ResourceLoaders . createJarResourceLoader ( rootName , jarFile ) ; }
A utility method to create a Maven artifact resource loader for the given artifact coordinates .