Class ArtifactMetadata
java.lang.Object
org.apache.maven.repository.metadata.ArtifactMetadata
Artifact Metadata that is resolved independent of Artifact itself.
- Author:
- Oleg Gusakov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleandoes the actual artifact for this metadata existsprotected Stringprotected ArtifactScopeEnumprotected Stringartifact URIprotected Stringprotected Collection<ArtifactMetadata>dependencies of the artifact behind this metadataprotected Stringstandard glorified artifact coordinatesprotected booleanis metadata found anywhereprotected Stringprotected Stringmetadata URIprotected Stringprotected Stringexplanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now) -
Constructor Summary
ConstructorsConstructorDescriptionArtifactMetadata(String name) ArtifactMetadata(String groupId, String name, String version) ArtifactMetadata(String groupId, String name, String version, String type) ArtifactMetadata(String groupId, String name, String version, String type, String scopeString, String classifier, String artifactUri, String why, boolean resolved, String error) ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope) ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier) ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier, String artifactUri) ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier, String artifactUri, String why, boolean resolved, String error) -
Method Summary
Modifier and TypeMethodDescriptiongetError()getScope()getType()getUri()getWhy()booleanbooleanisError()booleanvoidsetArtifactExists(boolean artifactExists) voidsetArtifactId(String name) voidsetArtifactScope(ArtifactScopeEnum artifactScope) voidsetArtifactUri(String artifactUri) voidsetClassifier(String classifier) voidsetDependencies(Collection<ArtifactMetadata> dependencies) voidvoidsetGroupId(String groupId) voidsetResolved(boolean resolved) voidvoidvoidvoidsetVersion(String version) voidtoString()
-
Field Details
-
groupId
standard glorified artifact coordinates -
artifactId
-
version
-
type
-
artifactScope
-
classifier
-
why
explanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now) -
dependencies
dependencies of the artifact behind this metadata -
uri
metadata URI -
resolved
protected boolean resolvedis metadata found anywhere -
artifactExists
protected boolean artifactExistsdoes the actual artifact for this metadata exists -
artifactUri
artifact URI
-
-
Constructor Details
-
ArtifactMetadata
-
ArtifactMetadata
-
ArtifactMetadata
-
ArtifactMetadata
public ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope) -
ArtifactMetadata
-
ArtifactMetadata
-
ArtifactMetadata
-
ArtifactMetadata
-
ArtifactMetadata
-
-
Method Details
-
toString
-
toDomainString
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
-
getVersion
-
setVersion
-
getType
-
getCheckedType
-
setType
-
getArtifactScope
-
setArtifactScope
-
setScope
-
getClassifier
-
setClassifier
-
isResolved
public boolean isResolved() -
setResolved
public void setResolved(boolean resolved) -
getUri
-
setUri
-
getScope
-
getScopeAsEnum
-
isArtifactExists
public boolean isArtifactExists() -
setArtifactExists
public void setArtifactExists(boolean artifactExists) -
getDependencies
-
setDependencies
-
getArtifactUri
-
setArtifactUri
-
getWhy
-
setWhy
-
getError
-
setError
-
isError
public boolean isError() -
getDependencyConflictId
-