org.apache.maven.mercury.artifact
Interface Artifact
- All Superinterfaces:
- java.lang.Comparable<Artifact>
- All Known Implementing Classes:
- DefaultArtifact
public interface Artifact
- extends java.lang.Comparable<Artifact>
Methods inherited from interface java.lang.Comparable |
compareTo |
LATEST_VERSION
static final java.lang.String LATEST_VERSION
- See Also:
- Constant Field Values
SNAPSHOT_VERSION
static final java.lang.String SNAPSHOT_VERSION
- See Also:
- Constant Field Values
RELEASE_VERSION
static final java.lang.String RELEASE_VERSION
- See Also:
- Constant Field Values
SNAPSHOT_TS_REGEX
static final java.lang.String SNAPSHOT_TS_REGEX
- See Also:
- Constant Field Values
VERSION_FILE_PATTERN
static final java.util.regex.Pattern VERSION_FILE_PATTERN
SCOPE_COMPILE
static final java.lang.String SCOPE_COMPILE
SCOPE_TEST
static final java.lang.String SCOPE_TEST
SCOPE_RUNTIME
static final java.lang.String SCOPE_RUNTIME
SCOPE_PROVIDED
static final java.lang.String SCOPE_PROVIDED
SCOPE_SYSTEM
static final java.lang.String SCOPE_SYSTEM
getGroupId
java.lang.String getGroupId()
getArtifactId
java.lang.String getArtifactId()
getVersion
java.lang.String getVersion()
setVersion
void setVersion(java.lang.String version)
getScope
java.lang.String getScope()
- Get the artifactScope of the artifact. If the artifact is a standalone rather than a dependency, it's artifactScope will be
null
. The artifactScope may not be the same as it was declared on the original dependency, as this is the
result of combining it with the main project artifactScope.
- Returns:
- the artifactScope
getType
java.lang.String getType()
getClassifier
java.lang.String getClassifier()
hasClassifier
boolean hasClassifier()
getFile
java.io.File getFile()
getStream
java.io.InputStream getStream()
setFile
void setFile(java.io.File destination)
getPomBlob
byte[] getPomBlob()
setPomBlob
void setPomBlob(byte[] pomBlob)
getBaseName
java.lang.String getBaseName()
getBaseName
java.lang.String getBaseName(java.lang.String classifier)
getId
java.lang.String getId()
setGroupId
void setGroupId(java.lang.String groupId)
setArtifactId
void setArtifactId(java.lang.String artifactId)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.