I'm wondering if Nexus provides API (I unfortunately didn't find any useful examples) to do such thing. So, in my group id (com.testtools) I got artifact hibi which is versioned in manner - major.minor.patch. Currently in this directory I've got versions:
0.0.5
0.1.2
0.1.4
I know how to get certain version or how get latest stored version (here - snapshot), e.g.:
wget 'http://mynexus.se:8081/nexus/service/local/artifact/maven/content?g=com.testtools&a=hibi&v=LATEST&r=snapshots' --content-disposition
give me hibi-0.1.4. But for this hibi artifact I have to be able to get the latest patch for certain minor version. So how can I get 0.0.5 if I pass 0.0 (or 0.1.4 if I pass 0.1)? Tried something like:
wget 'http://mynexus.se:8081/nexus/service/local/artifact/maven/content?g=com.testtools&a=hibi&v=0.1.*&r=snapshots' --content-disposition
but it isn't work properly (artifact not found). I'll be glad for any suggestions.