Class ActiveProjectArtifact
java.lang.Object
org.apache.maven.project.artifact.ActiveProjectArtifact
- All Implemented Interfaces:
Comparable<Artifact>,Artifact
Deprecated.
Wraps an active project instance to be able to receive updates from its artifact without affecting the original
attributes of this artifact.
TODO I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and
should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable.
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_COMPILE_PLUS_RUNTIME, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_RUNTIME_PLUS_SYSTEM, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(ArtifactMetadata metadata) Deprecated.intDeprecated.booleanDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getFile()Deprecated.Deprecated.getId()Deprecated.Deprecated.Deprecated.getScope()Deprecated.Deprecated.getType()Deprecated.Deprecated.Deprecated.booleanDeprecated.inthashCode()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidselectVersion(String version) Deprecated.voidsetArtifactHandler(ArtifactHandler handler) Deprecated.voidsetArtifactId(String artifactId) Deprecated.voidsetAvailableVersions(List<ArtifactVersion> versions) Deprecated.voidsetBaseVersion(String baseVersion) Deprecated.voidsetDependencyFilter(ArtifactFilter artifactFilter) Deprecated.voidsetDependencyTrail(List<String> dependencyTrail) Deprecated.voidsetDownloadUrl(String downloadUrl) Deprecated.voidDeprecated.voidsetGroupId(String groupId) Deprecated.voidsetOptional(boolean optional) Deprecated.voidsetRelease(boolean release) Deprecated.voidsetRepository(ArtifactRepository remoteRepository) Deprecated.voidsetResolved(boolean resolved) Deprecated.voidsetResolvedVersion(String version) Deprecated.voidDeprecated.voidsetVersion(String version) Deprecated.voidsetVersionRange(VersionRange newRange) Deprecated.toString()Deprecated.voidupdateVersion(String version, ArtifactRepository localRepository) Deprecated.
-
Constructor Details
-
ActiveProjectArtifact
Deprecated.
-
-
Method Details
-
getFile
-
getGroupId
-
getArtifactId
-
getVersion
-
setVersion
-
getScope
-
getType
-
getClassifier
-
hasClassifier
-
setFile
-
getBaseVersion
-
setBaseVersion
Deprecated.- Specified by:
setBaseVersionin interfaceArtifact
-
getId
-
getDependencyConflictId
Deprecated.- Specified by:
getDependencyConflictIdin interfaceArtifact
-
addMetadata
Deprecated.- Specified by:
addMetadatain interfaceArtifact
-
getMetadataList
Deprecated.- Specified by:
getMetadataListin interfaceArtifact
-
setRepository
Deprecated.- Specified by:
setRepositoryin interfaceArtifact
-
getRepository
Deprecated.- Specified by:
getRepositoryin interfaceArtifact
-
updateVersion
Deprecated.- Specified by:
updateVersionin interfaceArtifact
-
getDownloadUrl
-
setDownloadUrl
Deprecated.- Specified by:
setDownloadUrlin interfaceArtifact
-
getDependencyFilter
Deprecated.- Specified by:
getDependencyFilterin interfaceArtifact
-
setDependencyFilter
Deprecated.- Specified by:
setDependencyFilterin interfaceArtifact
-
getArtifactHandler
Deprecated.- Specified by:
getArtifactHandlerin interfaceArtifact
-
getDependencyTrail
Deprecated.- Specified by:
getDependencyTrailin interfaceArtifact
-
setDependencyTrail
Deprecated.- Specified by:
setDependencyTrailin interfaceArtifact
-
setScope
-
getVersionRange
Deprecated.- Specified by:
getVersionRangein interfaceArtifact
-
setVersionRange
Deprecated.- Specified by:
setVersionRangein interfaceArtifact
-
selectVersion
Deprecated.- Specified by:
selectVersionin interfaceArtifact
-
setGroupId
-
setArtifactId
Deprecated.- Specified by:
setArtifactIdin interfaceArtifact
-
isSnapshot
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<Artifact>
-
setResolved
public void setResolved(boolean resolved) Deprecated.- Specified by:
setResolvedin interfaceArtifact
-
isResolved
-
setResolvedVersion
Deprecated.- Specified by:
setResolvedVersionin interfaceArtifact
-
setArtifactHandler
Deprecated.- Specified by:
setArtifactHandlerin interfaceArtifact
-
toString
-
isRelease
-
setRelease
-
getAvailableVersions
Deprecated.- Specified by:
getAvailableVersionsin interfaceArtifact
-
setAvailableVersions
Deprecated.- Specified by:
setAvailableVersionsin interfaceArtifact
-
isOptional
-
getSelectedVersion
Deprecated.- Specified by:
getSelectedVersionin interfaceArtifact- Throws:
OverConstrainedVersionException
-
isSelectedVersionKnown
Deprecated.- Specified by:
isSelectedVersionKnownin interfaceArtifact- Throws:
OverConstrainedVersionException
-
setOptional
public void setOptional(boolean optional) Deprecated.- Specified by:
setOptionalin interfaceArtifact
-
hashCode
-
equals
-