Class AttachedArtifact

  • All Implemented Interfaces:
    java.lang.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, java.lang.String type, java.lang.String classifier, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
      Deprecated.
       
      AttachedArtifact​(org.apache.maven.artifact.Artifact parent, java.lang.String type, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addMetadata​(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
      Deprecated.
       
      java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion> getAvailableVersions()
      Deprecated.
       
      java.lang.String getBaseVersion()
      Deprecated.
       
      java.lang.String getDownloadUrl()
      Deprecated.
       
      java.util.Collection<org.apache.maven.artifact.metadata.ArtifactMetadata> getMetadataList()
      Deprecated.
       
      org.apache.maven.artifact.repository.ArtifactRepository getRepository()
      Deprecated.
       
      java.lang.String getScope()
      Deprecated.
       
      java.lang.String getVersion()
      Deprecated.
       
      org.apache.maven.artifact.versioning.VersionRange getVersionRange()
      Deprecated.
       
      boolean isRelease()
      Deprecated.
       
      boolean isSnapshot()
      Deprecated.
       
      void setArtifactId​(java.lang.String artifactId)
      Deprecated.
       
      void setAvailableVersions​(java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion> availableVersions)
      Deprecated.
       
      void setBaseVersion​(java.lang.String baseVersion)
      Deprecated.
       
      void setDownloadUrl​(java.lang.String downloadUrl)
      Deprecated.
       
      void setGroupId​(java.lang.String groupId)
      Deprecated.
       
      void setRelease​(boolean release)
      Deprecated.
       
      void setRepository​(org.apache.maven.artifact.repository.ArtifactRepository repository)
      Deprecated.
       
      void setScope​(java.lang.String scope)
      Deprecated.
       
      void setVersion​(java.lang.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 Detail

      • AttachedArtifact

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

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

      • setArtifactId

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

        public java.util.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​(java.util.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 java.lang.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​(java.lang.String baseVersion)
        Deprecated.
        Specified by:
        setBaseVersion in interface org.apache.maven.artifact.Artifact
        Overrides:
        setBaseVersion in class org.apache.maven.artifact.DefaultArtifact
      • getDownloadUrl

        public java.lang.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​(java.lang.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​(java.lang.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 java.lang.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​(java.lang.String scope)
        Deprecated.
        Specified by:
        setScope in interface org.apache.maven.artifact.Artifact
        Overrides:
        setScope in class org.apache.maven.artifact.DefaultArtifact
      • getVersion

        public java.lang.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​(java.lang.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 java.util.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