public class MavenRemoteRepository extends Object implements RepositoryPlugin, RegistryPlugin, Plugin
RepositoryPlugin.DownloadListener, RepositoryPlugin.PutOptions, RepositoryPlugin.PutResultDEFAULTOPTIONS| Constructor and Description |
|---|
MavenRemoteRepository() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files.
|
File |
get(String bsn,
String version,
Strategy strategy,
Map<String,String> properties) |
File |
get(String bsn,
Version version,
Map<String,String> properties,
RepositoryPlugin.DownloadListener... listeners)
Return a URL to a matching version of the given bundle.
|
String |
getLocation()
Return a location identifier of this repository
|
Maven |
getMaven() |
String |
getName() |
List<String> |
list(String regex)
Return a list of bsns that are present in the repository.
|
RepositoryPlugin.PutResult |
put(InputStream stream,
RepositoryPlugin.PutOptions options)
Put an artifact (from the InputStream) into the repository.
There is no guarantee that the artifact on the input stream has not been modified after it's been put in the repository since that is dependent on the implementation of the repository. |
void |
setMaven(Maven maven) |
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties.
|
void |
setRegistry(Registry registry) |
void |
setReporter(Reporter reporter)
Set the current reporter.
|
void |
setRepositories(URI... urls) |
SortedSet<Version> |
versions(String bsn)
Return a list of versions.
|
public File get(String bsn, String version, Strategy strategy, Map<String,String> properties) throws Exception
Exceptionpublic Maven getMaven()
public boolean canWrite()
RepositoryPlugincanWrite in interface RepositoryPluginpublic RepositoryPlugin.PutResult put(InputStream stream, RepositoryPlugin.PutOptions options) throws Exception
RepositoryPluginput in interface RepositoryPluginstream - The input stream with the artifactoptions - The put options. See RepositoryPlugin.PutOptions,
can be null, which will then take the default options
like new PutOptions().RepositoryPlugin.PutResultException - When the repository root directory doesn't exist, when
the repository is read-only, when the specified checksum
doesn't match the checksum of the fetched artifact (see
RepositoryPlugin.PutOptions.digest), when the
implementation wants to modify the artifact but isn't
allowed, or when another error has occurred.public List<String> list(String regex) throws Exception
RepositoryPluginlist in interface RepositoryPluginregex - A
null.Exceptionpublic SortedSet<Version> versions(String bsn) throws Exception
RepositoryPluginversions in interface RepositoryPluginExceptionpublic String getName()
getName in interface RepositoryPluginpublic void setRepositories(URI... urls)
public void setProperties(Map<String,String> map)
PluginsetProperties in interface Pluginmap - attributes and directives for this plugin's clausepublic void setReporter(Reporter reporter)
PluginsetReporter in interface Pluginpublic void setRegistry(Registry registry)
setRegistry in interface RegistryPluginpublic void setMaven(Maven maven)
public String getLocation()
RepositoryPlugingetLocation in interface RepositoryPluginpublic File get(String bsn, Version version, Map<String,String> properties, RepositoryPlugin.DownloadListener... listeners) throws Exception
RepositoryPluginget in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversion - Version requestedlisteners - Zero or more download listener that will be notified of
the outcome.Exception - when anything goes wrong, in this case no listeners
will be called back.Copyright © 2019 aQute SARL. All rights reserved.