Class ActiveProjectArtifact
java.lang.Object
org.apache.maven.project.artifact.ActiveProjectArtifact
- All Implemented Interfaces:
Comparable<org.apache.maven.artifact.Artifact>
,org.apache.maven.artifact.Artifact
@Deprecated
public class ActiveProjectArtifact
extends Object
implements org.apache.maven.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
ConstructorsConstructorDescriptionActiveProjectArtifact
(MavenProject project, org.apache.maven.artifact.Artifact artifact) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(org.apache.maven.artifact.metadata.ArtifactMetadata metadata) Deprecated.int
compareTo
(org.apache.maven.artifact.Artifact a) Deprecated.boolean
Deprecated.org.apache.maven.artifact.handler.ArtifactHandler
Deprecated.Deprecated.List
<org.apache.maven.artifact.versioning.ArtifactVersion> Deprecated.Deprecated.Deprecated.Deprecated.org.apache.maven.artifact.resolver.filter.ArtifactFilter
Deprecated.Deprecated.Deprecated.getFile()
Deprecated.Deprecated.getId()
Deprecated.Collection
<org.apache.maven.artifact.metadata.ArtifactMetadata> Deprecated.org.apache.maven.artifact.repository.ArtifactRepository
Deprecated.getScope()
Deprecated.org.apache.maven.artifact.versioning.ArtifactVersion
Deprecated.getType()
Deprecated.Deprecated.org.apache.maven.artifact.versioning.VersionRange
Deprecated.boolean
Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
selectVersion
(String version) Deprecated.void
setArtifactHandler
(org.apache.maven.artifact.handler.ArtifactHandler handler) Deprecated.void
setArtifactId
(String artifactId) Deprecated.void
setAvailableVersions
(List<org.apache.maven.artifact.versioning.ArtifactVersion> versions) Deprecated.void
setBaseVersion
(String baseVersion) Deprecated.void
setDependencyFilter
(org.apache.maven.artifact.resolver.filter.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
(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) Deprecated.void
setResolved
(boolean resolved) Deprecated.void
setResolvedVersion
(String version) Deprecated.void
Deprecated.void
setVersion
(String version) Deprecated.void
setVersionRange
(org.apache.maven.artifact.versioning.VersionRange newRange) Deprecated.toString()
Deprecated.void
updateVersion
(String version, org.apache.maven.artifact.repository.ArtifactRepository localRepository) Deprecated.
-
Constructor Details
-
ActiveProjectArtifact
Deprecated.
-
-
Method Details
-
getFile
Deprecated.- Specified by:
getFile
in interfaceorg.apache.maven.artifact.Artifact
-
getGroupId
Deprecated.- Specified by:
getGroupId
in interfaceorg.apache.maven.artifact.Artifact
-
getArtifactId
Deprecated.- Specified by:
getArtifactId
in interfaceorg.apache.maven.artifact.Artifact
-
getVersion
Deprecated.- Specified by:
getVersion
in interfaceorg.apache.maven.artifact.Artifact
-
setVersion
Deprecated.- Specified by:
setVersion
in interfaceorg.apache.maven.artifact.Artifact
-
getScope
Deprecated.- Specified by:
getScope
in interfaceorg.apache.maven.artifact.Artifact
-
getType
Deprecated.- Specified by:
getType
in interfaceorg.apache.maven.artifact.Artifact
-
getClassifier
Deprecated.- Specified by:
getClassifier
in interfaceorg.apache.maven.artifact.Artifact
-
hasClassifier
public boolean hasClassifier()Deprecated.- Specified by:
hasClassifier
in interfaceorg.apache.maven.artifact.Artifact
-
setFile
Deprecated.- Specified by:
setFile
in interfaceorg.apache.maven.artifact.Artifact
-
getBaseVersion
Deprecated.- Specified by:
getBaseVersion
in interfaceorg.apache.maven.artifact.Artifact
-
setBaseVersion
Deprecated.- Specified by:
setBaseVersion
in interfaceorg.apache.maven.artifact.Artifact
-
getId
Deprecated.- Specified by:
getId
in interfaceorg.apache.maven.artifact.Artifact
-
getDependencyConflictId
Deprecated.- Specified by:
getDependencyConflictId
in interfaceorg.apache.maven.artifact.Artifact
-
addMetadata
public void addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata) Deprecated.- Specified by:
addMetadata
in interfaceorg.apache.maven.artifact.Artifact
-
getMetadataList
Deprecated.- Specified by:
getMetadataList
in interfaceorg.apache.maven.artifact.Artifact
-
setRepository
public void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) Deprecated.- Specified by:
setRepository
in interfaceorg.apache.maven.artifact.Artifact
-
getRepository
public org.apache.maven.artifact.repository.ArtifactRepository getRepository()Deprecated.- Specified by:
getRepository
in interfaceorg.apache.maven.artifact.Artifact
-
updateVersion
public void updateVersion(String version, org.apache.maven.artifact.repository.ArtifactRepository localRepository) Deprecated.- Specified by:
updateVersion
in interfaceorg.apache.maven.artifact.Artifact
-
getDownloadUrl
Deprecated.- Specified by:
getDownloadUrl
in interfaceorg.apache.maven.artifact.Artifact
-
setDownloadUrl
Deprecated.- Specified by:
setDownloadUrl
in interfaceorg.apache.maven.artifact.Artifact
-
getDependencyFilter
public org.apache.maven.artifact.resolver.filter.ArtifactFilter getDependencyFilter()Deprecated.- Specified by:
getDependencyFilter
in interfaceorg.apache.maven.artifact.Artifact
-
setDependencyFilter
public void setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter) Deprecated.- Specified by:
setDependencyFilter
in interfaceorg.apache.maven.artifact.Artifact
-
getArtifactHandler
public org.apache.maven.artifact.handler.ArtifactHandler getArtifactHandler()Deprecated.- Specified by:
getArtifactHandler
in interfaceorg.apache.maven.artifact.Artifact
-
getDependencyTrail
Deprecated.- Specified by:
getDependencyTrail
in interfaceorg.apache.maven.artifact.Artifact
-
setDependencyTrail
Deprecated.- Specified by:
setDependencyTrail
in interfaceorg.apache.maven.artifact.Artifact
-
setScope
Deprecated.- Specified by:
setScope
in interfaceorg.apache.maven.artifact.Artifact
-
getVersionRange
public org.apache.maven.artifact.versioning.VersionRange getVersionRange()Deprecated.- Specified by:
getVersionRange
in interfaceorg.apache.maven.artifact.Artifact
-
setVersionRange
public void setVersionRange(org.apache.maven.artifact.versioning.VersionRange newRange) Deprecated.- Specified by:
setVersionRange
in interfaceorg.apache.maven.artifact.Artifact
-
selectVersion
Deprecated.- Specified by:
selectVersion
in interfaceorg.apache.maven.artifact.Artifact
-
setGroupId
Deprecated.- Specified by:
setGroupId
in interfaceorg.apache.maven.artifact.Artifact
-
setArtifactId
Deprecated.- Specified by:
setArtifactId
in interfaceorg.apache.maven.artifact.Artifact
-
isSnapshot
public boolean isSnapshot()Deprecated.- Specified by:
isSnapshot
in interfaceorg.apache.maven.artifact.Artifact
-
compareTo
public int compareTo(org.apache.maven.artifact.Artifact a) Deprecated.- Specified by:
compareTo
in interfaceComparable<org.apache.maven.artifact.Artifact>
-
setResolved
public void setResolved(boolean resolved) Deprecated.- Specified by:
setResolved
in interfaceorg.apache.maven.artifact.Artifact
-
isResolved
public boolean isResolved()Deprecated.- Specified by:
isResolved
in interfaceorg.apache.maven.artifact.Artifact
-
setResolvedVersion
Deprecated.- Specified by:
setResolvedVersion
in interfaceorg.apache.maven.artifact.Artifact
-
setArtifactHandler
public void setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler handler) Deprecated.- Specified by:
setArtifactHandler
in interfaceorg.apache.maven.artifact.Artifact
-
toString
Deprecated. -
isRelease
public boolean isRelease()Deprecated.- Specified by:
isRelease
in interfaceorg.apache.maven.artifact.Artifact
-
setRelease
public void setRelease(boolean release) Deprecated.- Specified by:
setRelease
in interfaceorg.apache.maven.artifact.Artifact
-
getAvailableVersions
Deprecated.- Specified by:
getAvailableVersions
in interfaceorg.apache.maven.artifact.Artifact
-
setAvailableVersions
public void setAvailableVersions(List<org.apache.maven.artifact.versioning.ArtifactVersion> versions) Deprecated.- Specified by:
setAvailableVersions
in interfaceorg.apache.maven.artifact.Artifact
-
isOptional
public boolean isOptional()Deprecated.- Specified by:
isOptional
in interfaceorg.apache.maven.artifact.Artifact
-
getSelectedVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getSelectedVersion() throws org.apache.maven.artifact.versioning.OverConstrainedVersionExceptionDeprecated.- Specified by:
getSelectedVersion
in interfaceorg.apache.maven.artifact.Artifact
- Throws:
org.apache.maven.artifact.versioning.OverConstrainedVersionException
-
isSelectedVersionKnown
public boolean isSelectedVersionKnown() throws org.apache.maven.artifact.versioning.OverConstrainedVersionExceptionDeprecated.- Specified by:
isSelectedVersionKnown
in interfaceorg.apache.maven.artifact.Artifact
- Throws:
org.apache.maven.artifact.versioning.OverConstrainedVersionException
-
setOptional
public void setOptional(boolean optional) Deprecated.- Specified by:
setOptional
in interfaceorg.apache.maven.artifact.Artifact
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-