Class AttachedArtifact

java.lang.Object
org.apache.maven.artifact.DefaultArtifact
org.apache.maven.project.artifact.AttachedArtifact
All Implemented Interfaces:
Comparable<org.apache.maven.artifact.Artifact>, org.apache.maven.artifact.Artifact

@Deprecated public class AttachedArtifact extends org.apache.maven.artifact.DefaultArtifact
Deprecated.
Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice. Use MavenProjectHelper.attachArtifact(org.apache.maven.project.MavenProject, java.io.File, java.lang.String) instead.
  • 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
    Constructor
    Description
    AttachedArtifact(org.apache.maven.artifact.Artifact parent, String type, String classifier, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
    Deprecated.
     
    AttachedArtifact(org.apache.maven.artifact.Artifact parent, String type, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
    Deprecated.
     
    List<org.apache.maven.artifact.versioning.ArtifactVersion>
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Collection<org.apache.maven.artifact.metadata.ArtifactMetadata>
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepository
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    org.apache.maven.artifact.versioning.VersionRange
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    void
    setArtifactId(String artifactId)
    Deprecated.
     
    void
    setAvailableVersions(List<org.apache.maven.artifact.versioning.ArtifactVersion> availableVersions)
    Deprecated.
     
    void
    setBaseVersion(String baseVersion)
    Deprecated.
     
    void
    setDownloadUrl(String downloadUrl)
    Deprecated.
     
    void
    setGroupId(String groupId)
    Deprecated.
     
    void
    setRelease(boolean release)
    Deprecated.
     
    void
    setRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
    Deprecated.
     
    void
    Deprecated.
     
    void
    setVersion(String version)
    Deprecated.
     
    void
    setVersionRange(org.apache.maven.artifact.versioning.VersionRange range)
    Deprecated.
     

    Methods inherited from class org.apache.maven.artifact.DefaultArtifact

    compareTo, equals, getArtifactHandler, getArtifactId, getBaseVersionInternal, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getFile, getGroupId, getId, getSelectedVersion, getType, hasClassifier, hashCode, isOptional, isResolved, isSelectedVersionKnown, selectVersion, setArtifactHandler, setBaseVersionInternal, setDependencyFilter, setDependencyTrail, setFile, setOptional, setResolved, setResolvedVersion, toString, updateVersion

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AttachedArtifact

      public AttachedArtifact(org.apache.maven.artifact.Artifact parent, String type, String classifier, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
      Deprecated.
    • AttachedArtifact

      public AttachedArtifact(org.apache.maven.artifact.Artifact parent, String type, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
      Deprecated.
  • Method Details

    • setArtifactId

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

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

      public void setAvailableVersions(List<org.apache.maven.artifact.versioning.ArtifactVersion> availableVersions)
      Deprecated.
      Specified by:
      setAvailableVersions in interface org.apache.maven.artifact.Artifact
      Overrides:
      setAvailableVersions in class org.apache.maven.artifact.DefaultArtifact
    • getBaseVersion

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

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

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

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

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

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

      public void setRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
      Deprecated.
      Specified by:
      setRepository in interface org.apache.maven.artifact.Artifact
      Overrides:
      setRepository in class org.apache.maven.artifact.DefaultArtifact
    • getScope

      public String getScope()
      Deprecated.
      Specified by:
      getScope in interface org.apache.maven.artifact.Artifact
      Overrides:
      getScope in class org.apache.maven.artifact.DefaultArtifact
    • setScope

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

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

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

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

      public void setVersionRange(org.apache.maven.artifact.versioning.VersionRange range)
      Deprecated.
      Specified by:
      setVersionRange in interface org.apache.maven.artifact.Artifact
      Overrides:
      setVersionRange in class org.apache.maven.artifact.DefaultArtifact
    • isRelease

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

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

      public boolean isSnapshot()
      Deprecated.
      Specified by:
      isSnapshot in interface org.apache.maven.artifact.Artifact
      Overrides:
      isSnapshot in class org.apache.maven.artifact.DefaultArtifact
    • addMetadata

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

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