Modifier and Type | Method and Description |
---|---|
Artifact |
RepositoryEvent.getArtifact()
Gets the artifact involved in the event (if any).
|
Modifier and Type | Method and Description |
---|---|
void |
SyncContext.acquire(Collection<? extends Artifact> artifacts,
Collection<? extends Metadata> metadatas)
Acquires synchronized access to the specified artifacts and metadatas.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
Artifact.setFile(File file)
Sets the file of the artifact.
|
Artifact |
Artifact.setProperties(Map<String,String> properties)
Sets the properties for the artifact.
|
Artifact |
Artifact.setVersion(String version)
Sets the version of this artifact.
|
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
DeployResult.getArtifacts()
Gets the artifacts that got deployed.
|
Collection<Artifact> |
DeployRequest.getArtifacts()
Gets the artifact to deploy.
|
Modifier and Type | Method and Description |
---|---|
DeployResult |
DeployResult.addArtifact(Artifact artifact)
Adds the specified artifacts to the result.
|
DeployRequest |
DeployRequest.addArtifact(Artifact artifact)
Adds the specified artifacts for deployment.
|
Modifier and Type | Method and Description |
---|---|
DeployResult |
DeployResult.setArtifacts(Collection<Artifact> artifacts)
Sets the artifacts that got deployed.
|
DeployRequest |
DeployRequest.setArtifacts(Collection<Artifact> artifacts)
Sets the artifacts to deploy.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
Dependency.getArtifact()
Gets the artifact being depended on.
|
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
DependencyNode.getAliases()
Gets the known aliases for this dependency's artifact.
|
List<Artifact> |
DependencyNode.getRelocations()
Gets the sequence of relocations that was followed to resolve the artifact referenced by the dependency.
|
Modifier and Type | Method and Description |
---|---|
void |
DependencyNode.setArtifact(Artifact artifact)
Sets the artifact of the dependency.
|
Dependency |
Dependency.setArtifact(Artifact artifact)
Sets the artifact being depended on.
|
Constructor and Description |
---|
Dependency(Artifact artifact,
String scope)
Creates a mandatory dependency on the specified artifact with the given scope.
|
Dependency(Artifact artifact,
String scope,
boolean optional)
Creates a dependency on the specified artifact with the given scope.
|
Dependency(Artifact artifact,
String scope,
boolean optional,
Collection<Exclusion> exclusions)
Creates a dependency on the specified artifact with the given scope and exclusions.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
LocalRepositoryEvent.getArtifact()
Deprecated.
Gets the artifact that was updated.
|
Artifact |
MetadataGenerator.transformArtifact(Artifact artifact)
Enables the metadata generator to transform the specified artifact.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
MetadataGenerator.transformArtifact(Artifact artifact)
Enables the metadata generator to transform the specified artifact.
|
Modifier and Type | Method and Description |
---|---|
void |
UpdateCheckManager.checkArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
Checks whether an artifact has to be updated from a remote repository.
|
Collection<? extends Metadata> |
MetadataGenerator.finish(Collection<? extends Artifact> artifacts)
Allows for metadata generation based on the transformed artifacts.
|
Collection<? extends Metadata> |
MetadataGenerator.prepare(Collection<? extends Artifact> artifacts)
Prepares the generator to transform artifacts.
|
void |
UpdateCheckManager.touchArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
Updates the timestamp for the artifact contained in the update check.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
DefaultLocalRepositoryEvent.getArtifact() |
Modifier and Type | Method and Description |
---|---|
String |
SimpleLocalRepositoryManager.getPathForLocalArtifact(Artifact artifact) |
String |
SimpleLocalRepositoryManager.getPathForRemoteArtifact(Artifact artifact,
RemoteRepository repository,
String context) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultUpdateCheckManager.checkArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check) |
void |
DefaultUpdateCheckManager.touchArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check) |
Constructor and Description |
---|
DefaultLocalRepositoryEvent(LocalRepositoryEvent.EventType type,
RepositorySystemSession session,
Artifact artifact,
File file) |
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
InstallResult.getArtifacts()
Gets the artifacts that got installed.
|
Collection<Artifact> |
InstallRequest.getArtifacts()
Gets the artifact to install.
|
Modifier and Type | Method and Description |
---|---|
InstallResult |
InstallResult.addArtifact(Artifact artifact)
Adds the specified artifacts to the result.
|
InstallRequest |
InstallRequest.addArtifact(Artifact artifact)
Adds the specified artifacts for installation.
|
Modifier and Type | Method and Description |
---|---|
InstallResult |
InstallResult.setArtifacts(Collection<Artifact> artifacts)
Sets the artifacts that got installed.
|
InstallRequest |
InstallRequest.setArtifacts(Collection<Artifact> artifacts)
Sets the artifacts to install.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
LocalArtifactRequest.getArtifact()
Gets the artifact to query for.
|
Artifact |
LocalArtifactRegistration.getArtifact()
Gets the artifact to register.
|
Modifier and Type | Method and Description |
---|---|
File |
WorkspaceReader.findArtifact(Artifact artifact)
Locates the specified artifact.
|
List<String> |
WorkspaceReader.findVersions(Artifact artifact)
Determines all available versions of the specified artifact.
|
String |
LocalRepositoryManager.getPathForLocalArtifact(Artifact artifact)
Gets the relative path for a locally installed artifact.
|
String |
LocalRepositoryManager.getPathForRemoteArtifact(Artifact artifact,
RemoteRepository repository,
String context)
Gets the relative path for an artifact cached from a remote repository.
|
LocalArtifactRequest |
LocalArtifactRequest.setArtifact(Artifact artifact)
Sets the artifact to query for.
|
LocalArtifactRegistration |
LocalArtifactRegistration.setArtifact(Artifact artifact)
Sets the artifact to register.
|
Constructor and Description |
---|
LocalArtifactRegistration(Artifact artifact)
Creates a registration request for the specified (locally installed) artifact.
|
LocalArtifactRegistration(Artifact artifact,
RemoteRepository repository,
Collection<String> contexts)
Creates a registration request for the specified artifact.
|
LocalArtifactRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a query with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
ArtifactDescriptorResult.getArtifact()
Gets the artifact whose descriptor was read.
|
Artifact |
ArtifactRequest.getArtifact()
Gets the artifact to resolve.
|
Artifact |
ArtifactResult.getArtifact()
Gets the resolved artifact (if any).
|
Artifact |
ArtifactDescriptorRequest.getArtifact()
Gets the artifact whose descriptor shall be read.
|
Artifact |
VersionRangeRequest.getArtifact()
Gets the artifact whose version range shall be resolved.
|
Artifact |
VersionRequest.getArtifact()
Gets the artifact whose (meta-)version shall be resolved.
|
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
ArtifactDescriptorResult.getAliases()
Gets the known aliases for this artifact.
|
List<Artifact> |
ArtifactDescriptorResult.getRelocations()
Gets the relocations that were processed to read the artifact descriptor.
|
Modifier and Type | Method and Description |
---|---|
ArtifactDescriptorResult |
ArtifactDescriptorResult.addAlias(Artifact alias)
Records the specified alias.
|
ArtifactDescriptorResult |
ArtifactDescriptorResult.addRelocation(Artifact artifact)
Records the specified relocation hop while locating the artifact descriptor.
|
ArtifactDescriptorResult |
ArtifactDescriptorResult.setArtifact(Artifact artifact)
Sets the artifact whose descriptor was read.
|
ArtifactRequest |
ArtifactRequest.setArtifact(Artifact artifact)
Sets the artifact to resolve.
|
ArtifactResult |
ArtifactResult.setArtifact(Artifact artifact)
Sets the resolved artifact.
|
ArtifactDescriptorRequest |
ArtifactDescriptorRequest.setArtifact(Artifact artifact)
Sets the artifact whose descriptor shall be read.
|
VersionRangeRequest |
VersionRangeRequest.setArtifact(Artifact artifact)
Sets the artifact whose version range shall be resolved.
|
VersionRequest |
VersionRequest.setArtifact(Artifact artifact)
Sets the artifact whose (meta-)version shall be resolved.
|
Modifier and Type | Method and Description |
---|---|
ArtifactDescriptorResult |
ArtifactDescriptorResult.setAliases(Collection<Artifact> aliases)
Sets the aliases of the artifact.
|
ArtifactDescriptorResult |
ArtifactDescriptorResult.setRelocations(List<Artifact> relocations)
Sets the relocations that were processed to read the artifact descriptor.
|
Constructor and Description |
---|
ArtifactDescriptorRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties.
|
ArtifactRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties.
|
VersionRangeRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties.
|
VersionRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
ArtifactTransfer.getArtifact()
Gets the artifact being transferred.
|
Modifier and Type | Method and Description |
---|---|
ArtifactTransfer |
ArtifactTransfer.setArtifact(Artifact artifact)
Sets the artifact to transfer.
|
ArtifactUpload |
ArtifactUpload.setArtifact(Artifact artifact) |
ArtifactDownload |
ArtifactDownload.setArtifact(Artifact artifact) |
Constructor and Description |
---|
ArtifactDownload(Artifact artifact,
String context,
File file,
String checksumPolicy)
Creates a new download with the specified properties.
|
ArtifactUpload(Artifact artifact,
File file)
Creates a new upload with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
Set<Artifact> |
TestLocalRepositoryManager.getArtifactRegistration() |
Modifier and Type | Method and Description |
---|---|
String |
TestLocalRepositoryManager.getPathForLocalArtifact(Artifact artifact) |
String |
TestLocalRepositoryManager.getPathForRemoteArtifact(Artifact artifact,
RemoteRepository repository,
String context) |
void |
TestLocalRepositoryManager.setArtifactAvailability(Artifact artifact,
boolean available) |
Modifier and Type | Method and Description |
---|---|
List<Artifact> |
ArtifactDescription.getRelocations() |
Modifier and Type | Class and Description |
---|---|
class |
StubArtifact |
Modifier and Type | Method and Description |
---|---|
Artifact |
RepositoryTestContext.getArtifact() |
Artifact |
StubArtifact.setProperties(Map<String,String> properties) |
Artifact |
StubArtifact.setVersion(String version) |
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
TestDependencyNode.getAliases() |
List<Artifact> |
TestDependencyNode.getRelocations() |
Modifier and Type | Method and Description |
---|---|
void |
RepositoryTestContext.setArtifact(Artifact artifact) |
void |
TestDependencyNode.setArtifact(Artifact artifact) |
Modifier and Type | Method and Description |
---|---|
void |
TestDependencyNode.setAliases(Collection<Artifact> aliases)
Sets the known aliases for this dependency's artifact.
|
void |
TestDependencyNode.setRelocations(List<Artifact> relocations)
Sets the sequence of relocations that was followed to resolve this dependency's artifact.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
ArtifactTransferException.getArtifact() |
Constructor and Description |
---|
ArtifactNotFoundException(Artifact artifact,
RemoteRepository repository) |
ArtifactNotFoundException(Artifact artifact,
RemoteRepository repository,
String message) |
ArtifactTransferException(Artifact artifact,
RemoteRepository repository,
String message) |
ArtifactTransferException(Artifact artifact,
RemoteRepository repository,
String message,
Throwable cause) |
ArtifactTransferException(Artifact artifact,
RemoteRepository repository,
Throwable cause) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractArtifact
A skeleton class for artifacts that implements
Object.equals(Object) , Object.hashCode() and
Object.toString() . |
class |
DefaultArtifact
A simple artifact.
|
class |
DelegatingArtifact
An artifact that delegates to another artifact instance.
|
class |
SubArtifact
An artifact whose identity is derived from another artifact.
|
Modifier and Type | Method and Description |
---|---|
protected Artifact |
AbstractArtifact.newInstance(String groupId,
String artifactId,
String classifier,
String extension,
String version,
Map<String,String> properties,
File file)
Creates a new artifact with the specified coordinates, properties and file.
|
Artifact |
SubArtifact.setFile(File file) |
Artifact |
DelegatingArtifact.setFile(File file) |
Artifact |
AbstractArtifact.setFile(File file) |
Artifact |
DefaultArtifact.setFile(File file) |
Artifact |
SubArtifact.setProperties(Map<String,String> properties) |
Artifact |
DelegatingArtifact.setProperties(Map<String,String> properties) |
Artifact |
AbstractArtifact.setProperties(Map<String,String> properties) |
Artifact |
DefaultArtifact.setProperties(Map<String,String> properties) |
Artifact |
SubArtifact.setVersion(String version) |
Artifact |
DelegatingArtifact.setVersion(String version) |
Artifact |
AbstractArtifact.setVersion(String version) |
Artifact |
DefaultArtifact.setVersion(String version) |
Modifier and Type | Method and Description |
---|---|
protected abstract DelegatingArtifact |
DelegatingArtifact.newInstance(Artifact delegate)
Creates a new artifact instance that delegates to the specified artifact.
|
static String |
ArtifacIdUtils.toBaseId(Artifact artifact)
Creates an artifact identifier of the form
<groupId>:<artifactId>:<extension>[:<classifier>]:<baseVersion> . |
static String |
ArtifacIdUtils.toId(Artifact artifact)
Creates an artifact identifier of the form
<groupId>:<artifactId>:<extension>[:<classifier>]:<version> . |
static String |
ArtifacIdUtils.toVersionlessId(Artifact artifact)
Creates an artifact identifier of the form
<groupId>:<artifactId>:<extension>[:<classifier>] . |
Constructor and Description |
---|
DelegatingArtifact(Artifact delegate)
Creates a new artifact instance that delegates to the specified artifact.
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension)
Creates a new sub artifact.
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
File file)
Creates a new sub artifact.
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties)
Creates a new sub artifact.
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties,
File file)
Creates a new sub artifact.
|
Modifier and Type | Method and Description |
---|---|
Collection<Artifact> |
DefaultDependencyNode.getAliases() |
List<Artifact> |
AbstractDepthFirstNodeListGenerator.getArtifacts(boolean includeUnresolved)
Gets the artifacts associated with the list of dependency nodes generated during the graph traversal.
|
List<Artifact> |
DefaultDependencyNode.getRelocations() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultDependencyNode.setArtifact(Artifact artifact) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultDependencyNode.setAliases(Collection<Artifact> aliases)
Sets the known aliases for this dependency's artifact.
|
void |
DefaultDependencyNode.setRelocations(List<Artifact> relocations)
Sets the sequence of relocations that was followed to resolve this dependency's artifact.
|
Modifier and Type | Method and Description |
---|---|
URI |
RepositoryLayout.getPath(Artifact artifact)
Gets the URI to the location within a remote repository where the specified artifact would be stored.
|
URI |
MavenDefaultLayout.getPath(Artifact artifact) |
Modifier and Type | Method and Description |
---|---|
Artifact |
DefaultRepositoryEvent.getArtifact() |
Modifier and Type | Method and Description |
---|---|
DefaultRepositoryEvent |
DefaultRepositoryEvent.setArtifact(Artifact artifact)
Sets the artifact involved in the event.
|
Modifier and Type | Method and Description |
---|---|
File |
ChainedWorkspaceReader.findArtifact(Artifact artifact) |
List<String> |
ChainedWorkspaceReader.findVersions(Artifact artifact) |
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.