|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.mercury.plexus.DefaultPlexusMercury
@Component(role=PlexusMercury.class) public class DefaultPlexusMercury
default implementation of Mercury plexus wrapper
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.mercury.plexus.PlexusMercury |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultPlexusMercury()
|
|
| Method Summary | |
|---|---|
LocalRepositoryM2 |
constructLocalRepositoryM2(java.lang.String id,
java.io.File rootDir,
java.util.Set<StreamObserverFactory> readerStreamObservers,
java.util.Set<StreamVerifierFactory> readerStreamVerifiers,
java.util.Set<StreamObserverFactory> writerStreamObservers,
java.util.Set<StreamVerifierFactory> writerStreamVerifiers)
construct local M2 repository and configure it with supplied attributes |
RemoteRepositoryM2 |
constructRemoteRepositoryM2(java.lang.String id,
java.net.URL serverUrl,
java.lang.String serverUser,
java.lang.String serverPass,
java.net.URL proxyUrl,
java.lang.String proxyUser,
java.lang.String proxyPass,
java.util.Set<StreamObserverFactory> readerStreamObservers,
java.util.Set<StreamVerifierFactory> readerStreamVerifiers,
java.util.Set<StreamObserverFactory> writerStreamObservers,
java.util.Set<StreamVerifierFactory> writerStreamVerifiers)
construct remote M2 repository and configure it with supplied attributes |
PgpStreamVerifierFactory |
createPgpReaderFactory(boolean lenient,
boolean sufficient,
java.io.InputStream pubRing)
create PGP factory to configure into repository reader for signature verification |
PgpStreamVerifierFactory |
createPgpWriterFactory(boolean lenient,
boolean sufficient,
java.io.InputStream secRing,
java.lang.String keyId,
java.lang.String keyPass)
create PGP factory to configure into repository writer for signature generation |
DependencyProcessor |
findDependencyProcessor()
lookup dependency processor in plexus and return the "default" implementation |
DependencyProcessor |
findDependencyProcessor(java.lang.String hint)
lookup dependency processor in plexus and return the requested implementation |
java.util.List<Artifact> |
read(java.util.List<Repository> repo,
ArtifactMetadata... artifacts)
|
java.util.List<Artifact> |
read(java.util.List<Repository> repos,
java.util.List<ArtifactMetadata> artifacts)
read given Artifact(s) from the repository |
java.util.List<ArtifactMetadata> |
resolve(java.util.List<Repository> repos,
ArtifactScopeEnum scope,
ArtifactMetadata metadata)
|
java.util.List<ArtifactMetadata> |
resolve(java.util.List<Repository> repos,
ArtifactScopeEnum scope,
ArtifactQueryList artifacts,
ArtifactInclusionList inclusions,
ArtifactExclusionList exclusions)
resolve Artifact dependencies. |
void |
write(Repository repo,
Artifact... artifacts)
write (deploy) given Artifact(s) to the repository |
void |
write(Repository repo,
java.util.Collection<Artifact> artifacts)
|
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPlexusMercury()
| Method Detail |
|---|
public DependencyProcessor findDependencyProcessor(java.lang.String hint)
throws RepositoryException
PlexusMercury
findDependencyProcessor in interface PlexusMercuryhint - the plexus hint to lookup by
RepositoryException
public DependencyProcessor findDependencyProcessor()
throws RepositoryException
PlexusMercury
findDependencyProcessor in interface PlexusMercuryRepositoryException
public RemoteRepositoryM2 constructRemoteRepositoryM2(java.lang.String id,
java.net.URL serverUrl,
java.lang.String serverUser,
java.lang.String serverPass,
java.net.URL proxyUrl,
java.lang.String proxyUser,
java.lang.String proxyPass,
java.util.Set<StreamObserverFactory> readerStreamObservers,
java.util.Set<StreamVerifierFactory> readerStreamVerifiers,
java.util.Set<StreamObserverFactory> writerStreamObservers,
java.util.Set<StreamVerifierFactory> writerStreamVerifiers)
throws RepositoryException
PlexusMercury
constructRemoteRepositoryM2 in interface PlexusMercuryRepositoryException
public LocalRepositoryM2 constructLocalRepositoryM2(java.lang.String id,
java.io.File rootDir,
java.util.Set<StreamObserverFactory> readerStreamObservers,
java.util.Set<StreamVerifierFactory> readerStreamVerifiers,
java.util.Set<StreamObserverFactory> writerStreamObservers,
java.util.Set<StreamVerifierFactory> writerStreamVerifiers)
throws RepositoryException
PlexusMercury
constructLocalRepositoryM2 in interface PlexusMercuryRepositoryException
public void write(Repository repo,
Artifact... artifacts)
throws RepositoryException
PlexusMercury
write in interface PlexusMercuryrepo - repository instance to search
RepositoryException
public void write(Repository repo,
java.util.Collection<Artifact> artifacts)
throws RepositoryException
write in interface PlexusMercuryRepositoryException
public java.util.List<Artifact> read(java.util.List<Repository> repos,
java.util.List<ArtifactMetadata> artifacts)
throws RepositoryException
PlexusMercury
read in interface PlexusMercuryrepos - repository instance to search
RepositoryException
public java.util.List<Artifact> read(java.util.List<Repository> repo,
ArtifactMetadata... artifacts)
throws RepositoryException
read in interface PlexusMercuryRepositoryException
public PgpStreamVerifierFactory createPgpReaderFactory(boolean lenient,
boolean sufficient,
java.io.InputStream pubRing)
throws StreamVerifierException
PlexusMercury
createPgpReaderFactory in interface PlexusMercurypubRing - - keyring with all acceptable public keys
StreamVerifierException
public PgpStreamVerifierFactory createPgpWriterFactory(boolean lenient,
boolean sufficient,
java.io.InputStream secRing,
java.lang.String keyId,
java.lang.String keyPass)
throws StreamVerifierException
PlexusMercury
createPgpWriterFactory in interface PlexusMercuryStreamVerifierException
public java.util.List<ArtifactMetadata> resolve(java.util.List<Repository> repos,
ArtifactScopeEnum scope,
ArtifactMetadata metadata)
throws RepositoryException
resolve in interface PlexusMercuryRepositoryException
public java.util.List<ArtifactMetadata> resolve(java.util.List<Repository> repos,
ArtifactScopeEnum scope,
ArtifactQueryList artifacts,
ArtifactInclusionList inclusions,
ArtifactExclusionList exclusions)
throws RepositoryException
PlexusMercury
resolve in interface PlexusMercuryscope - scope enumeration member indication the scope to resolve forinclusions - list of artifact metadatas to include - only these will be in the resolved classpathexclusions - list of artifact metadatas to exclude - is applied after the inclusion, if one is present
RepositoryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||