If you're using nexus 2.x, you can try
http://local:8081/service/local/lucene/search?repositoryId=someRep&a=my-app
This will give you an xml response listing relevant artifacts. You can use this to get the version you want
Or
create a macro to fetch the latest version from nexus. you can do this by using groovy with ant.