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.
- Author:
- Brett Porter 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(ArtifactMetadata metadata) Deprecated.int
Deprecated.boolean
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getFile()
Deprecated.Deprecated.getId()
Deprecated.Deprecated.Deprecated.getScope()
Deprecated.Deprecated.getType()
Deprecated.Deprecated.Deprecated.boolean
Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
selectVersion
(String version) Deprecated.void
setArtifactHandler
(ArtifactHandler handler) Deprecated.void
setArtifactId
(String artifactId) Deprecated.void
setAvailableVersions
(List<ArtifactVersion> versions) Deprecated.void
setBaseVersion
(String baseVersion) Deprecated.void
setDependencyFilter
(ArtifactFilter artifactFilter) Deprecated.void
setDependencyTrail
(List<String> dependencyTrail) Deprecated.void
setDownloadUrl
(String downloadUrl) Deprecated.void
Deprecated.void
setGroupId
(String groupId) Deprecated.void
setOptional
(boolean optional) Deprecated.void
setRelease
(boolean release) Deprecated.void
setRepository
(ArtifactRepository remoteRepository) Deprecated.void
setResolved
(boolean resolved) Deprecated.void
setResolvedVersion
(String version) Deprecated.void
Deprecated.void
setVersion
(String version) Deprecated.void
setVersionRange
(VersionRange newRange) Deprecated.toString()
Deprecated.void
updateVersion
(String version, ArtifactRepository localRepository) Deprecated.
-
Constructor Details
-
ActiveProjectArtifact
Deprecated.
-
-
Method Details
-
getFile
Deprecated. -
getGroupId
Deprecated.- Specified by:
getGroupId
in interfaceArtifact
-
getArtifactId
Deprecated.- Specified by:
getArtifactId
in interfaceArtifact
-
getVersion
Deprecated.- Specified by:
getVersion
in interfaceArtifact
-
setVersion
Deprecated.- Specified by:
setVersion
in interfaceArtifact
-
getScope
Deprecated. -
getType
Deprecated. -
getClassifier
Deprecated.- Specified by:
getClassifier
in interfaceArtifact
-
hasClassifier
public boolean hasClassifier()Deprecated.- Specified by:
hasClassifier
in interfaceArtifact
-
setFile
Deprecated. -
getBaseVersion
Deprecated.- Specified by:
getBaseVersion
in interfaceArtifact
-
setBaseVersion
Deprecated.- Specified by:
setBaseVersion
in interfaceArtifact
-
getId
Deprecated. -
getDependencyConflictId
Deprecated.- Specified by:
getDependencyConflictId
in interfaceArtifact
-
addMetadata
Deprecated.- Specified by:
addMetadata
in interfaceArtifact
-
getMetadataList
Deprecated.- Specified by:
getMetadataList
in interfaceArtifact
-
setRepository
Deprecated.- Specified by:
setRepository
in interfaceArtifact
-
getRepository
Deprecated.- Specified by:
getRepository
in interfaceArtifact
-
updateVersion
Deprecated.- Specified by:
updateVersion
in interfaceArtifact
-
getDownloadUrl
Deprecated.- Specified by:
getDownloadUrl
in interfaceArtifact
-
setDownloadUrl
Deprecated.- Specified by:
setDownloadUrl
in interfaceArtifact
-
getDependencyFilter
Deprecated.- Specified by:
getDependencyFilter
in interfaceArtifact
-
setDependencyFilter
Deprecated.- Specified by:
setDependencyFilter
in interfaceArtifact
-
getArtifactHandler
Deprecated.- Specified by:
getArtifactHandler
in interfaceArtifact
-
getDependencyTrail
Deprecated.- Specified by:
getDependencyTrail
in interfaceArtifact
-
setDependencyTrail
Deprecated.- Specified by:
setDependencyTrail
in interfaceArtifact
-
setScope
Deprecated. -
getVersionRange
Deprecated.- Specified by:
getVersionRange
in interfaceArtifact
-
setVersionRange
Deprecated.- Specified by:
setVersionRange
in interfaceArtifact
-
selectVersion
Deprecated.- Specified by:
selectVersion
in interfaceArtifact
-
setGroupId
Deprecated.- Specified by:
setGroupId
in interfaceArtifact
-
setArtifactId
Deprecated.- Specified by:
setArtifactId
in interfaceArtifact
-
isSnapshot
public boolean isSnapshot()Deprecated.- Specified by:
isSnapshot
in interfaceArtifact
-
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<Artifact>
-
setResolved
public void setResolved(boolean resolved) Deprecated.- Specified by:
setResolved
in interfaceArtifact
-
isResolved
public boolean isResolved()Deprecated.- Specified by:
isResolved
in interfaceArtifact
-
setResolvedVersion
Deprecated.- Specified by:
setResolvedVersion
in interfaceArtifact
-
setArtifactHandler
Deprecated.- Specified by:
setArtifactHandler
in interfaceArtifact
-
toString
Deprecated. -
isRelease
public boolean isRelease()Deprecated. -
setRelease
public void setRelease(boolean release) Deprecated.- Specified by:
setRelease
in interfaceArtifact
-
getAvailableVersions
Deprecated.- Specified by:
getAvailableVersions
in interfaceArtifact
-
setAvailableVersions
Deprecated.- Specified by:
setAvailableVersions
in interfaceArtifact
-
isOptional
public boolean isOptional()Deprecated.- Specified by:
isOptional
in interfaceArtifact
-
getSelectedVersion
Deprecated.- Specified by:
getSelectedVersion
in interfaceArtifact
- Throws:
OverConstrainedVersionException
-
isSelectedVersionKnown
Deprecated.- Specified by:
isSelectedVersionKnown
in interfaceArtifact
- Throws:
OverConstrainedVersionException
-
setOptional
public void setOptional(boolean optional) Deprecated.- Specified by:
setOptional
in interfaceArtifact
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-