Interface MvnRepoJarFile

All Superinterfaces:
FileResource, InputResource, IOResource, JarFile, Resource, ZipFile
All Known Subinterfaces:
MvnRepoLibraryJarFile
All Known Implementing Classes:
DefaultMvnRepoJarFile, DefaultMvnRepoLibraryJarFile

public interface MvnRepoJarFile extends JarFile
A JarFile that has been downloaded from a Maven repository. Unlike a MvnRepoResource, a resource of this type represents a local file. This interface merely preserves information about the Maven repository resource from which it originated.
  • Method Details

    • reference

      Returns the Maven repository reference for this JAR file.
      Returns:
      the Maven repository resource
    • of

      static <T extends JarFile> T of(ResourceType<T> fileType, String coordinates, Path path)
      Creates a new Maven repository JAR file resource from the given values.
      Type Parameters:
      T - the resource type
      Parameters:
      fileType - the requested type
      coordinates - the coordinates
      path - the path
      Returns:
      the maven repository jar file