Class ArtifactMetadata

java.lang.Object
org.apache.maven.repository.metadata.ArtifactMetadata

public class ArtifactMetadata extends Object
Artifact Metadata that is resolved independent of Artifact itself.
Author:
Oleg Gusakov
  • Field Details

    • groupId

      protected String groupId
      standard glorified artifact coordinates
    • artifactId

      protected String artifactId
    • version

      protected String version
    • type

      protected String type
    • artifactScope

      protected ArtifactScopeEnum artifactScope
    • classifier

      protected String classifier
    • why

      protected String why
      explanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now)
    • dependencies

      protected Collection<ArtifactMetadata> dependencies
      dependencies of the artifact behind this metadata
    • uri

      protected String uri
      metadata URI
    • resolved

      protected boolean resolved
      is metadata found anywhere
    • artifactExists

      protected boolean artifactExists
      does the actual artifact for this metadata exists
    • artifactUri

      protected String artifactUri
      artifact URI
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDomainString

      public String toDomainString()
    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String name)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getType

      public String getType()
    • getCheckedType

      public String getCheckedType()
    • setType

      public void setType(String type)
    • getArtifactScope

      public ArtifactScopeEnum getArtifactScope()
    • setArtifactScope

      public void setArtifactScope(ArtifactScopeEnum artifactScope)
    • setScope

      public void setScope(String scope)
    • getClassifier

      public String getClassifier()
    • setClassifier

      public void setClassifier(String classifier)
    • isResolved

      public boolean isResolved()
    • setResolved

      public void setResolved(boolean resolved)
    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
    • getScope

      public String getScope()
    • getScopeAsEnum

      public ArtifactScopeEnum getScopeAsEnum()
    • isArtifactExists

      public boolean isArtifactExists()
    • setArtifactExists

      public void setArtifactExists(boolean artifactExists)
    • getDependencies

      public Collection<ArtifactMetadata> getDependencies()
    • setDependencies

      public void setDependencies(Collection<ArtifactMetadata> dependencies)
    • getArtifactUri

      public String getArtifactUri()
    • setArtifactUri

      public void setArtifactUri(String artifactUri)
    • getWhy

      public String getWhy()
    • setWhy

      public void setWhy(String why)
    • getError

      public String getError()
    • setError

      public void setError(String error)
    • isError

      public boolean isError()
    • getDependencyConflictId

      public String getDependencyConflictId()