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

recategorized Nov 13, 2018 by Priyaj 85 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,000 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
• 35,640 points
34 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
• 35,640 points
38 views
+13 votes
2 answers
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,000 points
347 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.