Package aQute.bnd.maven
Class MavenRepository
- java.lang.Object
-
- aQute.bnd.maven.MavenRepository
-
- All Implemented Interfaces:
BsnToMavenPath,Plugin,RepositoryPlugin
@Deprecated public class MavenRepository extends java.lang.Object implements RepositoryPlugin, Plugin, BsnToMavenPath
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin
RepositoryPlugin.DownloadListener, RepositoryPlugin.PutOptions, RepositoryPlugin.PutResult
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerloggerDeprecated.(package private) static java.lang.StringMAVEN_REPO_LOCALDeprecated.(package private) java.lang.StringnameDeprecated.static java.lang.StringNAMEDeprecated.(package private) ReporterreporterDeprecated.(package private) java.io.FilerootDeprecated.-
Fields inherited from interface aQute.bnd.service.RepositoryPlugin
DEFAULTOPTIONS
-
-
Constructor Summary
Constructors Constructor Description MavenRepository()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanWrite()Deprecated.Answer if this repository can be used to store files.(package private) java.io.File[]find(java.lang.String groupId, java.lang.String artifactId, VersionRange range)Deprecated.(package private) voidfind(java.util.List<java.lang.String> bsns, java.util.regex.Pattern pattern, java.io.File base, java.lang.String name)Deprecated.java.io.Fileget(java.lang.String bsn, Version version, java.util.Map<java.lang.String,java.lang.String> properties, RepositoryPlugin.DownloadListener... listeners)Deprecated.Return a URL to a matching version of the given bundle.private java.io.File[]get(java.lang.String bsn, java.lang.String version)Deprecated.java.io.Fileget(java.lang.String bsn, java.lang.String range, Strategy strategy, java.util.Map<java.lang.String,java.lang.String> properties)Deprecated.java.lang.String[]getGroupAndArtifact(java.lang.String bsn)Deprecated.java.lang.StringgetLocation()Deprecated.Return a location identifier of this repositoryjava.lang.StringgetName()Deprecated.java.util.List<java.lang.String>list(java.lang.String regex)Deprecated.Return a list of bsns that are present in the repository.RepositoryPlugin.PutResultput(java.io.InputStream stream, RepositoryPlugin.PutOptions options)Deprecated.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.voidsetProperties(java.util.Map<java.lang.String,java.lang.String> map)Deprecated.Give the plugin the remaining properties.voidsetReporter(Reporter processor)Deprecated.Set the current reporter.voidsetRoot(java.io.File f)Deprecated.java.lang.StringtoString()Deprecated.java.util.SortedSet<Version>versions(java.lang.String bsn)Deprecated.Return a list of versions.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface aQute.bnd.service.RepositoryPlugin
getIcon, getStatus, isOk, isRemote
-
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
Deprecated.
-
NAME
public static final java.lang.String NAME
Deprecated.- See Also:
- Constant Field Values
-
MAVEN_REPO_LOCAL
static final java.lang.String MAVEN_REPO_LOCAL
Deprecated.
-
root
java.io.File root
Deprecated.
-
reporter
Reporter reporter
Deprecated.
-
name
java.lang.String name
Deprecated.
-
-
Method Detail
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
canWrite
public boolean canWrite()
Deprecated.Description copied from interface:RepositoryPluginAnswer if this repository can be used to store files.- Specified by:
canWritein interfaceRepositoryPlugin- Returns:
- true if writable
-
get
private java.io.File[] get(java.lang.String bsn, java.lang.String version) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
find
java.io.File[] find(java.lang.String groupId, java.lang.String artifactId, VersionRange range)Deprecated.
-
list
public java.util.List<java.lang.String> list(java.lang.String regex)
Deprecated.Description copied from interface:RepositoryPluginReturn a list of bsns that are present in the repository.- Specified by:
listin interfaceRepositoryPlugin- Parameters:
regex- Aglob pattern to be matched against bsns present in the repository, or null.- Returns:
- A list of bsns that match the pattern parameter or all if pattern is null; repositories that do not support browsing or querying should return an empty list.
-
find
void find(java.util.List<java.lang.String> bsns, java.util.regex.Pattern pattern, java.io.File base, java.lang.String name)Deprecated.
-
put
public RepositoryPlugin.PutResult put(java.io.InputStream stream, RepositoryPlugin.PutOptions options) throws java.lang.Exception
Deprecated.Description copied from interface:RepositoryPluginPut 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.- Specified by:
putin interfaceRepositoryPlugin- Parameters:
stream- The input stream with the artifactoptions- The put options. SeeRepositoryPlugin.PutOptions, can benull, which will then take the default options like new PutOptions().- Returns:
- The result of the put, never null. See
RepositoryPlugin.PutResult - Throws:
java.lang.Exception- 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 (seeRepositoryPlugin.PutOptions.digest), when the implementation wants to modify the artifact but isn't allowed, or when another error has occurred.
-
versions
public java.util.SortedSet<Version> versions(java.lang.String bsn) throws java.lang.Exception
Deprecated.Description copied from interface:RepositoryPluginReturn a list of versions.- Specified by:
versionsin interfaceRepositoryPlugin- Throws:
java.lang.Exception
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Deprecated.Description copied from interface:PluginGive the plugin the remaining properties. When a plugin is declared, the clause can contain extra properties. All the properties and directives are given to the plugin to use.- Specified by:
setPropertiesin interfacePlugin- Parameters:
map- attributes and directives for this plugin's clause
-
setReporter
public void setReporter(Reporter processor)
Deprecated.Description copied from interface:PluginSet the current reporter. This is called at init time. This plugin should report all errors and warnings to this reporter.- Specified by:
setReporterin interfacePlugin
-
getGroupAndArtifact
public java.lang.String[] getGroupAndArtifact(java.lang.String bsn)
Deprecated.- Specified by:
getGroupAndArtifactin interfaceBsnToMavenPath
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getNamein interfaceRepositoryPlugin- Returns:
- The name of the repository
-
get
public java.io.File get(java.lang.String bsn, java.lang.String range, Strategy strategy, java.util.Map<java.lang.String,java.lang.String> properties) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
setRoot
public void setRoot(java.io.File f)
Deprecated.
-
getLocation
public java.lang.String getLocation()
Deprecated.Description copied from interface:RepositoryPluginReturn a location identifier of this repository- Specified by:
getLocationin interfaceRepositoryPlugin
-
get
public java.io.File get(java.lang.String bsn, Version version, java.util.Map<java.lang.String,java.lang.String> properties, RepositoryPlugin.DownloadListener... listeners) throws java.lang.ExceptionDeprecated.Description copied from interface:RepositoryPluginReturn a URL to a matching version of the given bundle. If download listeners are specified then the returned file is not guaranteed to exist before a download listener is notified of success or failure. The callback can happen before the method has returned. If the returned file is null then download listeners are not called back. The intention of the Download Listeners is to allow a caller to obtain references to files that do not yet exist but are to be downloaded. If the downloads were done synchronously in the call, then no overlap of downloads could take place.- Specified by:
getin interfaceRepositoryPlugin- Parameters:
bsn- Bundle-SymbolicName of the searched bundleversion- Version requestedlisteners- Zero or more download listener that will be notified of the outcome.- Returns:
- A file to the revision or null if not found
- Throws:
java.lang.Exception- when anything goes wrong, in this case no listeners will be called back.
-
-