public class MavenLocalRepository extends Object implements MavenRepository
| Constructor and Description |
|---|
MavenLocalRepository(File dir,
boolean releasesEnabled,
boolean snapshotsEnabled)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.AsyncSupplier<List<String>,net.lecousin.framework.exception.NoException> |
getAvailableVersions(String groupId,
String artifactId,
net.lecousin.framework.concurrent.threads.Task.Priority priority)
Return the list of available versions for the given artifact, or null if the artifact does not exist.
|
boolean |
isReleasesEnabled()
Return if releases libraries are enabled on this repository.
|
boolean |
isSame(String url,
boolean releasesEnabled,
boolean snapshotsEnabled)
Return true if this repository is the same as the given parameters.
|
boolean |
isSnapshotsEnabled()
Return if snapshots libraries are enabled on this repository.
|
net.lecousin.framework.concurrent.async.AsyncSupplier<MavenPOM,net.lecousin.framework.application.libraries.LibraryManagementException> |
load(String groupId,
String artifactId,
String version,
MavenPOMLoader pomLoader,
net.lecousin.framework.concurrent.threads.Task.Priority priority)
Load an artifact's POM file.
|
net.lecousin.framework.concurrent.async.AsyncSupplier<File,IOException> |
loadFile(String groupId,
String artifactId,
String version,
String classifier,
String type,
net.lecousin.framework.concurrent.threads.Task.Priority priority) |
File |
loadFileSync(String groupId,
String artifactId,
String version,
String classifier,
String type) |
String |
toString() |
public MavenLocalRepository(File dir, boolean releasesEnabled, boolean snapshotsEnabled)
public net.lecousin.framework.concurrent.async.AsyncSupplier<List<String>,net.lecousin.framework.exception.NoException> getAvailableVersions(String groupId, String artifactId, net.lecousin.framework.concurrent.threads.Task.Priority priority)
MavenRepositorygetAvailableVersions in interface MavenRepositorypublic net.lecousin.framework.concurrent.async.AsyncSupplier<MavenPOM,net.lecousin.framework.application.libraries.LibraryManagementException> load(String groupId, String artifactId, String version, MavenPOMLoader pomLoader, net.lecousin.framework.concurrent.threads.Task.Priority priority)
MavenRepositoryload in interface MavenRepositorypublic File loadFileSync(String groupId, String artifactId, String version, String classifier, String type)
loadFileSync in interface net.lecousin.framework.application.libraries.artifacts.LibrariesRepositorypublic net.lecousin.framework.concurrent.async.AsyncSupplier<File,IOException> loadFile(String groupId, String artifactId, String version, String classifier, String type, net.lecousin.framework.concurrent.threads.Task.Priority priority)
loadFile in interface net.lecousin.framework.application.libraries.artifacts.LibrariesRepositorypublic boolean isReleasesEnabled()
MavenRepositoryisReleasesEnabled in interface MavenRepositorypublic boolean isSnapshotsEnabled()
MavenRepositoryisSnapshotsEnabled in interface MavenRepositorypublic boolean isSame(String url, boolean releasesEnabled, boolean snapshotsEnabled)
MavenRepositoryisSame in interface MavenRepositoryCopyright © 2020. All rights reserved.