public class MavenRemoteRepository extends Object implements RepositoryPlugin, RegistryPlugin, Plugin
RepositoryPlugin.Strategy| 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 range)
Return a URL to a matching version of the given bundle.
|
File |
get(String bsn,
String version,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
Return a URL to a matching version of the given bundle.
|
Maven |
getMaven() |
String |
getName() |
List<String> |
list(String regex)
Return a list of bsns that are present in the repository.
|
File |
put(Jar jar)
Put a JAR file in 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) |
List<Version> |
versions(String bsn)
Return a list of versions.
|
public File[] get(String bsn, String range) throws Exception
RepositoryPluginget in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundlerange - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.Exception - when anything goes wrongpublic File get(String bsn, String version, RepositoryPlugin.Strategy strategy, Map<String,String> properties) throws Exception
RepositoryPluginget in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversion - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.strategy - Get the highest or the lowestException - when anything goes wrongpublic Maven getMaven()
public boolean canWrite()
RepositoryPlugincanWrite in interface RepositoryPluginpublic File put(Jar jar) throws Exception
RepositoryPluginput in interface RepositoryPluginExceptionpublic List<String> list(String regex) throws Exception
RepositoryPluginlist in interface RepositoryPluginregex - if not null, match against the bsn and if matches, return
otherwise skipExceptionpublic List<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)
Copyright © 2015 aQute SARL. All Rights Reserved.