Added check for "latest" in version field
This commit is contained in:
parent
e7c39a30ca
commit
b2247e378b
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ class MavenDownloader:
|
||||||
|
|
||||||
def download(self, artifact, filename=None):
|
def download(self, artifact, filename=None):
|
||||||
filename = artifact.get_filename(filename)
|
filename = artifact.get_filename(filename)
|
||||||
if not artifact.version:
|
if not artifact.version or artifact.version == "latest":
|
||||||
artifact = Artifact(artifact.group_id, artifact.artifact_id, self._find_latest_version_available(artifact),
|
artifact = Artifact(artifact.group_id, artifact.artifact_id, self._find_latest_version_available(artifact),
|
||||||
artifact.classifier, artifact.extension)
|
artifact.classifier, artifact.extension)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue