From e7c39a30ca7bd2a5979b54d4edca2388f3022606 Mon Sep 17 00:00:00 2001
From: "chris.schmidt" <chris.schmidt@contrastsecurity.com>
Date: Wed, 18 Feb 2015 09:22:57 -0700
Subject: [PATCH] Removed version check from main as it is checked in the
 download function. Having the check here was breaking "latest version"
 functionality.

---
 lib/ansible/modules/extras/packaging/maven_artifact.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/ansible/modules/extras/packaging/maven_artifact.py b/lib/ansible/modules/extras/packaging/maven_artifact.py
index bf4ca59f92..7583705089 100755
--- a/lib/ansible/modules/extras/packaging/maven_artifact.py
+++ b/lib/ansible/modules/extras/packaging/maven_artifact.py
@@ -349,8 +349,7 @@ def main():
 
     prev_state = "absent"
     if os.path.isdir(dest):
-        dest = dest + "/" + artifact_id + "-" + version + ".jar"
-            
+        dest = dest + "/" + artifact_id + "-" + version + "." + extension
     if os.path.lexists(dest):
         prev_state = "present"
     else: