Interface MvnRepoJarFile
- All Superinterfaces:
FileResource, InputResource, IOResource, JarFile, Resource, ZipFile
- All Known Subinterfaces:
MvnRepoLibraryJarFile
- All Known Implementing Classes:
DefaultMvnRepoJarFile, DefaultMvnRepoLibraryJarFile
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 Summary
Modifier and TypeMethodDescriptionstatic MvnRepoJarFileof(List<org.eclipse.aether.repository.RemoteRepository> repositories, String coordinates, Path path) Creates a new Maven repository JAR file resource from the given values.Returns the Maven repository reference for this JAR file.List<org.eclipse.aether.repository.RemoteRepository> Returns the repositories used to resolve this JAR file.Methods inherited from interface FileResource
cleanup, pathMethods inherited from interface InputResource
inputStreamMethods inherited from interface IOResource
outputStreamMethods inherited from interface Resource
asOf, asOfLocalized, isNewerThan, name, type
-
Method Details
-
reference
Returns the Maven repository reference for this JAR file.- Returns:
- the Maven repository resource
-
repositories
List<org.eclipse.aether.repository.RemoteRepository> repositories()Returns the repositories used to resolve this JAR file.- Returns:
- the repositories
-
of
static MvnRepoJarFile of(List<org.eclipse.aether.repository.RemoteRepository> repositories, String coordinates, Path path) Creates a new Maven repository JAR file resource from the given values.- Parameters:
repositories- the repositoriescoordinates- the coordinatespath- the path- Returns:
- the maven repository jar file
-