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 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
-
getGroupId
-
getArtifactId
-
getVersion
-
setVersion
-
getScope
-
getType
-
getClassifier
-
hasClassifier
-
setFile
-
getBaseVersion
-
setBaseVersion
Deprecated.- Specified by:
setBaseVersion
in interfaceArtifact
-
getId
-
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
-
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
-
getVersionRange
Deprecated.- Specified by:
getVersionRange
in interfaceArtifact
-
setVersionRange
Deprecated.- Specified by:
setVersionRange
in interfaceArtifact
-
selectVersion
Deprecated.- Specified by:
selectVersion
in interfaceArtifact
-
setGroupId
-
setArtifactId
Deprecated.- Specified by:
setArtifactId
in interfaceArtifact
-
isSnapshot
-
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<Artifact>
-
setResolved
public void setResolved(boolean resolved) Deprecated.- Specified by:
setResolved
in interfaceArtifact
-
isResolved
-
setResolvedVersion
Deprecated.- Specified by:
setResolvedVersion
in interfaceArtifact
-
setArtifactHandler
Deprecated.- Specified by:
setArtifactHandler
in interfaceArtifact
-
toString
-
isRelease
-
setRelease
-
getAvailableVersions
Deprecated.- Specified by:
getAvailableVersions
in interfaceArtifact
-
setAvailableVersions
Deprecated.- Specified by:
setAvailableVersions
in interfaceArtifact
-
isOptional
-
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
-
equals
-