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,380 points

recategorized Nov 13, 2018 by Priyaj 208 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,280 points

Related Questions In DevOps Tools

0 votes
1 answer
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
• 39,170 points
43 views
0 votes
2 answers
0 votes
1 answer

how to fix the build with maven in bluemix

As per Bluemix Status Page today DevOps Delivery Pipeline ...READ MORE

answered Jul 6, 2018 in DevOps Tools by Kalgi
• 39,170 points
61 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
112 views
0 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,280 points
487 views