How to download the latest minor version of nexus artifact using REST

0 votes

I want to use the latest minor version of a nexus artifact. Like this

http://local:8081/service/local/artifact/maven/content?g=com.mycompany&a=my-app&v=3.0.x

Nexus rest api doesn't accept version like 3.0.x or 3.0.*.

The nexus rest api isn't accepting versions like 3.0.* or 3.0.x. I can not use v=latest because it may change the major version. What should I do?

Jun 27, 2018 in DevOps Tools by DragonLord999
• 8,450 points

recategorized Nov 13, 2018 by Priyaj 3,119 views

1 answer to this question.

0 votes

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.

answered Jun 27, 2018 by ajs3033
• 7,300 points

Related Questions In DevOps Tools

0 votes
1 answer

How to Replicate the Artifacts between two Jfrog Artifactories by using CURL or jfrog rt (Rest API)

Yes and no, It's a bit complex ...READ MORE

answered Mar 27, 2018 in DevOps Tools by Atul
• 10,240 points
1,300 views
0 votes
1 answer

How do I deploy to multiple servers using the same context root?

  If you're deploying to multiple servers ...READ MORE

answered Jul 2, 2018 in DevOps Tools by Kalgi
• 52,360 points
593 views
0 votes
1 answer

How to get the current status of a local repository in Git?

Using 'git status' command in the repository ...READ MORE

answered Nov 26, 2019 in DevOps Tools by Sirajul
• 59,230 points
594 views
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,503 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

running comands as non-root user while using docker-maven plugin

Docker needs root access therefore maven commands ...READ MORE

answered Apr 30, 2018 in DevOps Tools by ajs3033
• 7,300 points
2,689 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP