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
Modifier and TypeFieldDescriptionprotected boolean
does the actual artifact for this metadata existsprotected String
protected ArtifactScopeEnum
protected String
artifact URIprotected String
protected Collection
<ArtifactMetadata> dependencies of the artifact behind this metadataprotected String
standard glorified artifact coordinatesprotected boolean
is metadata found anywhereprotected String
protected String
metadata URIprotected String
protected String
explanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now) -
Constructor Summary
ConstructorDescriptionArtifactMetadata
(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()
boolean
boolean
isError()
boolean
void
setArtifactExists
(boolean artifactExists) void
setArtifactId
(String name) void
setArtifactScope
(ArtifactScopeEnum artifactScope) void
setArtifactUri
(String artifactUri) void
setClassifier
(String classifier) void
setDependencies
(Collection<ArtifactMetadata> dependencies) void
void
setGroupId
(String groupId) void
setResolved
(boolean resolved) void
void
void
void
setVersion
(String version) void
toString()
-
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
-