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.
  • Constructor Details

    • ActiveProjectArtifact

      public ActiveProjectArtifact(MavenProject project, org.apache.maven.artifact.Artifact artifact)
      Deprecated.
  • Method Details

    • getFile

      public File getFile()
      Deprecated.
      Specified by:
      getFile in interface org.apache.maven.artifact.Artifact
    • getGroupId

      public String getGroupId()
      Deprecated.
      Specified by:
      getGroupId in interface org.apache.maven.artifact.Artifact
    • getArtifactId

      public String getArtifactId()
      Deprecated.
      Specified by:
      getArtifactId in interface org.apache.maven.artifact.Artifact
    • getVersion

      public String getVersion()
      Deprecated.
      Specified by:
      getVersion in interface org.apache.maven.artifact.Artifact
    • setVersion

      public void setVersion(String version)
      Deprecated.
      Specified by:
      setVersion in interface org.apache.maven.artifact.Artifact
    • getScope

      public String getScope()
      Deprecated.
      Specified by:
      getScope in interface org.apache.maven.artifact.Artifact
    • getType

      public String getType()
      Deprecated.
      Specified by:
      getType in interface org.apache.maven.artifact.Artifact
    • getClassifier

      public String getClassifier()
      Deprecated.
      Specified by:
      getClassifier in interface org.apache.maven.artifact.Artifact
    • hasClassifier

      public boolean hasClassifier()
      Deprecated.
      Specified by:
      hasClassifier in interface org.apache.maven.artifact.Artifact
    • setFile

      public void setFile(File destination)
      Deprecated.
      Specified by:
      setFile in interface org.apache.maven.artifact.Artifact
    • getBaseVersion

      public String getBaseVersion()
      Deprecated.
      Specified by:
      getBaseVersion in interface org.apache.maven.artifact.Artifact
    • setBaseVersion

      public void setBaseVersion(String baseVersion)
      Deprecated.
      Specified by:
      setBaseVersion in interface org.apache.maven.artifact.Artifact
    • getId

      public String getId()
      Deprecated.
      Specified by:
      getId in interface org.apache.maven.artifact.Artifact
    • getDependencyConflictId

      public String getDependencyConflictId()
      Deprecated.
      Specified by:
      getDependencyConflictId in interface org.apache.maven.artifact.Artifact
    • addMetadata

      public void addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
      Deprecated.
      Specified by:
      addMetadata in interface org.apache.maven.artifact.Artifact
    • getMetadataList

      public Collection<org.apache.maven.artifact.metadata.ArtifactMetadata> getMetadataList()
      Deprecated.
      Specified by:
      getMetadataList in interface org.apache.maven.artifact.Artifact
    • setRepository

      public void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
      Deprecated.
      Specified by:
      setRepository in interface org.apache.maven.artifact.Artifact
    • getRepository

      public org.apache.maven.artifact.repository.ArtifactRepository getRepository()
      Deprecated.
      Specified by:
      getRepository in interface org.apache.maven.artifact.Artifact
    • updateVersion

      public void updateVersion(String version, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
      Deprecated.
      Specified by:
      updateVersion in interface org.apache.maven.artifact.Artifact
    • getDownloadUrl

      public String getDownloadUrl()
      Deprecated.
      Specified by:
      getDownloadUrl in interface org.apache.maven.artifact.Artifact
    • setDownloadUrl

      public void setDownloadUrl(String downloadUrl)
      Deprecated.
      Specified by:
      setDownloadUrl in interface org.apache.maven.artifact.Artifact
    • getDependencyFilter

      public org.apache.maven.artifact.resolver.filter.ArtifactFilter getDependencyFilter()
      Deprecated.
      Specified by:
      getDependencyFilter in interface org.apache.maven.artifact.Artifact
    • setDependencyFilter

      public void setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter)
      Deprecated.
      Specified by:
      setDependencyFilter in interface org.apache.maven.artifact.Artifact
    • getArtifactHandler

      public org.apache.maven.artifact.handler.ArtifactHandler getArtifactHandler()
      Deprecated.
      Specified by:
      getArtifactHandler in interface org.apache.maven.artifact.Artifact
    • getDependencyTrail

      public List<String> getDependencyTrail()
      Deprecated.
      Specified by:
      getDependencyTrail in interface org.apache.maven.artifact.Artifact
    • setDependencyTrail

      public void setDependencyTrail(List<String> dependencyTrail)
      Deprecated.
      Specified by:
      setDependencyTrail in interface org.apache.maven.artifact.Artifact
    • setScope

      public void setScope(String scope)
      Deprecated.
      Specified by:
      setScope in interface org.apache.maven.artifact.Artifact
    • getVersionRange

      public org.apache.maven.artifact.versioning.VersionRange getVersionRange()
      Deprecated.
      Specified by:
      getVersionRange in interface org.apache.maven.artifact.Artifact
    • setVersionRange

      public void setVersionRange(org.apache.maven.artifact.versioning.VersionRange newRange)
      Deprecated.
      Specified by:
      setVersionRange in interface org.apache.maven.artifact.Artifact
    • selectVersion

      public void selectVersion(String version)
      Deprecated.
      Specified by:
      selectVersion in interface org.apache.maven.artifact.Artifact
    • setGroupId

      public void setGroupId(String groupId)
      Deprecated.
      Specified by:
      setGroupId in interface org.apache.maven.artifact.Artifact
    • setArtifactId

      public void setArtifactId(String artifactId)
      Deprecated.
      Specified by:
      setArtifactId in interface org.apache.maven.artifact.Artifact
    • isSnapshot

      public boolean isSnapshot()
      Deprecated.
      Specified by:
      isSnapshot in interface org.apache.maven.artifact.Artifact
    • compareTo

      public int compareTo(org.apache.maven.artifact.Artifact a)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<org.apache.maven.artifact.Artifact>
    • setResolved

      public void setResolved(boolean resolved)
      Deprecated.
      Specified by:
      setResolved in interface org.apache.maven.artifact.Artifact
    • isResolved

      public boolean isResolved()
      Deprecated.
      Specified by:
      isResolved in interface org.apache.maven.artifact.Artifact
    • setResolvedVersion

      public void setResolvedVersion(String version)
      Deprecated.
      Specified by:
      setResolvedVersion in interface org.apache.maven.artifact.Artifact
    • setArtifactHandler

      public void setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler handler)
      Deprecated.
      Specified by:
      setArtifactHandler in interface org.apache.maven.artifact.Artifact
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • isRelease

      public boolean isRelease()
      Deprecated.
      Specified by:
      isRelease in interface org.apache.maven.artifact.Artifact
    • setRelease

      public void setRelease(boolean release)
      Deprecated.
      Specified by:
      setRelease in interface org.apache.maven.artifact.Artifact
    • getAvailableVersions

      public List<org.apache.maven.artifact.versioning.ArtifactVersion> getAvailableVersions()
      Deprecated.
      Specified by:
      getAvailableVersions in interface org.apache.maven.artifact.Artifact
    • setAvailableVersions

      public void setAvailableVersions(List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
      Deprecated.
      Specified by:
      setAvailableVersions in interface org.apache.maven.artifact.Artifact
    • isOptional

      public boolean isOptional()
      Deprecated.
      Specified by:
      isOptional in interface org.apache.maven.artifact.Artifact
    • getSelectedVersion

      public org.apache.maven.artifact.versioning.ArtifactVersion getSelectedVersion() throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Deprecated.
      Specified by:
      getSelectedVersion in interface org.apache.maven.artifact.Artifact
      Throws:
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
    • isSelectedVersionKnown

      public boolean isSelectedVersionKnown() throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Deprecated.
      Specified by:
      isSelectedVersionKnown in interface org.apache.maven.artifact.Artifact
      Throws:
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
    • setOptional

      public void setOptional(boolean optional)
      Deprecated.
      Specified by:
      setOptional in interface org.apache.maven.artifact.Artifact
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object