Download multiple artifacts from same groupId and artifactId using ansible maven_artifact module

I have 2 artfacts in maven repository. app.ear and app.zip in the same artifactId and groupId. but when i want to download both artifacts, it is failing to download app.ear file as it is pointing to app.zip location.
it is because I upload app.ear then app.zip to nexus repository. this issue i am getting when i tries to download latest artifacts… but i can download both artifacts when i provide exact version.
Can you help me to resolve this issue?