|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.project.artifact.ActiveProjectArtifact
public class ActiveProjectArtifact
Wraps an active project instance to be able to receive updates from its artifact without affecting the original attributes of this artifact.
Field Summary |
---|
Fields inherited from interface org.apache.maven.artifact.Artifact |
---|
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN |
Constructor Summary | |
---|---|
ActiveProjectArtifact(MavenProject project,
Artifact artifact)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActiveProjectArtifact(MavenProject project, Artifact artifact)
Method Detail |
---|
public File getFile()
getFile
in interface Artifact
public String getGroupId()
getGroupId
in interface Artifact
public String getArtifactId()
getArtifactId
in interface Artifact
public String getVersion()
getVersion
in interface Artifact
public void setVersion(String version)
setVersion
in interface Artifact
public String getScope()
null
. The scope 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 scope.
getScope
in interface Artifact
public String getType()
getType
in interface Artifact
public String getClassifier()
getClassifier
in interface Artifact
public boolean hasClassifier()
hasClassifier
in interface Artifact
public void setFile(File destination)
setFile
in interface Artifact
public String getBaseVersion()
getBaseVersion
in interface Artifact
public void setBaseVersion(String baseVersion)
setBaseVersion
in interface Artifact
public String getId()
getId
in interface Artifact
public String getDependencyConflictId()
getDependencyConflictId
in interface Artifact
public void addMetadata(ArtifactMetadata metadata)
addMetadata
in interface Artifact
public Collection<ArtifactMetadata> getMetadataList()
getMetadataList
in interface Artifact
public void setRepository(ArtifactRepository remoteRepository)
setRepository
in interface Artifact
public ArtifactRepository getRepository()
getRepository
in interface Artifact
public void updateVersion(String version, ArtifactRepository localRepository)
updateVersion
in interface Artifact
public String getDownloadUrl()
getDownloadUrl
in interface Artifact
public void setDownloadUrl(String downloadUrl)
setDownloadUrl
in interface Artifact
public ArtifactFilter getDependencyFilter()
getDependencyFilter
in interface Artifact
public void setDependencyFilter(ArtifactFilter artifactFilter)
setDependencyFilter
in interface Artifact
public ArtifactHandler getArtifactHandler()
getArtifactHandler
in interface Artifact
public List<String> getDependencyTrail()
getDependencyTrail
in interface Artifact
List
< String
> with artifact idspublic void setDependencyTrail(List<String> dependencyTrail)
setDependencyTrail
in interface Artifact
dependencyTrail
- List
< String
> with artifact idspublic void setScope(String scope)
setScope
in interface Artifact
public VersionRange getVersionRange()
getVersionRange
in interface Artifact
public void setVersionRange(VersionRange newRange)
setVersionRange
in interface Artifact
public void selectVersion(String version)
selectVersion
in interface Artifact
public void setGroupId(String groupId)
setGroupId
in interface Artifact
public void setArtifactId(String artifactId)
setArtifactId
in interface Artifact
public boolean isSnapshot()
isSnapshot
in interface Artifact
public int compareTo(Artifact a)
compareTo
in interface Comparable<Artifact>
public void setResolved(boolean resolved)
setResolved
in interface Artifact
public boolean isResolved()
isResolved
in interface Artifact
public void setResolvedVersion(String version)
setResolvedVersion
in interface Artifact
public void setArtifactHandler(ArtifactHandler handler)
setArtifactHandler
in interface Artifact
public String toString()
toString
in class Object
public boolean isRelease()
isRelease
in interface Artifact
public void setRelease(boolean release)
setRelease
in interface Artifact
public List<ArtifactVersion> getAvailableVersions()
getAvailableVersions
in interface Artifact
public void setAvailableVersions(List<ArtifactVersion> versions)
setAvailableVersions
in interface Artifact
public boolean isOptional()
isOptional
in interface Artifact
public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException
getSelectedVersion
in interface Artifact
OverConstrainedVersionException
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException
isSelectedVersionKnown
in interface Artifact
OverConstrainedVersionException
public void setOptional(boolean optional)
setOptional
in interface Artifact
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public ArtifactMetadata getMetadata(Class<?> metadataClass)
getMetadata
in interface Artifact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |