search via rest api

91 views
Skip to first unread message

Jae Gangemi

unread,
Feb 22, 2017, 2:44:15 PM2/22/17
to nexus...@glists.sonatype.com
hello -

  i was wondering if anything existed in the 3.2.x series that offered anything along the lines of the lucene search plugin the 2.x series offers.

  we are leveraging this endpoint specifically: /lucene/search

  if that doesn't exist, could i use an aether library instead of a rest endpoint?

  thanks!

--
-jae

Peter Lynch

unread,
Feb 27, 2017, 12:09:30 PM2/27/17
to Jae Gangemi, Nexus Users
On Wed, Feb 22, 2017 at 3:44 PM, Jae Gangemi <jgan...@gmail.com> wrote:
hello -

  i was wondering if anything existed in the 3.2.x series that offered anything along the lines of the lucene search plugin the 2.x series offers.


No. Please follow this issue: https://issues.sonatype.org/browse/NEXUS-11893
 
  we are leveraging this endpoint specifically: /lucene/search


How exactly?
 
  if that doesn't exist, could i use an aether library instead of a rest endpoint?


Possibly - though Aether doesn't use /lucene/search - it merely gets maven-metadata.xml to determine what is available.

I think you need to elaborate on your exact use case - preferably you do this as a comment at https://issues.sonatype.org/browse/NEXUS-11893.

 
  thanks!

--
-jae

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CAMshyrtM4c-u%2BG8U%3DWo3q5QczRnyQYRWZ-iQ2%2B9QmH3n1LZ9hw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Jae Gangemi

unread,
Feb 28, 2017, 9:59:39 AM2/28/17
to Nexus Users

  we use the endpoint as a way to query for the latest version of the artifact.

  i will follow along at that ticket, thanks!
--
-jae

Peter Lynch

unread,
Feb 28, 2017, 2:22:02 PM2/28/17
to Jae Gangemi, Nexus Users
On Tue, Feb 28, 2017 at 10:59 AM, Jae Gangemi <jgan...@gmail.com> wrote:

  we use the endpoint as a way to query for the latest version of the artifact.

For a few different reasons, that is not a good endpoint to use to detect the latest version of an artifact.

You may find this project useful: https://github.com/sonatype/artifact-resolver

You may also find this article useful: https://support.sonatype.com/hc/en-us/articles/213465488

Jae Gangemi

unread,
Mar 1, 2017, 10:34:45 AM3/1/17
to Peter Lynch, Nexus Users

  i've seen the resolve project and that article before.

  there seem to be conflicting pieces of documentation that say it's ok to use LATEST / RELEASE, it is ok to use them which is how i ended up with the lucene url.

  does the functionality described in the article exist in nexus 3 yet? at the end of the day my requirement is to be able to resolve the latest released version of an artifact based soley on groupId, artifactId, and maybe a classifier in order to switch over to nexus 3.
 




--
-jae

Peter Lynch

unread,
Mar 1, 2017, 1:05:15 PM3/1/17
to Jae Gangemi, Nexus Users
On Wed, Mar 1, 2017 at 11:34 AM, Jae Gangemi <jgan...@gmail.com> wrote:

  i've seen the resolve project and that article before.

  there seem to be conflicting pieces of documentation that say it's ok to use LATEST / RELEASE, it is ok to use them which is how i ended up with the lucene url.

  does the functionality described in the article exist in nexus 3 yet?

The functionality exists, but REST API does not. To mimic the functionality, you need to access maven-metadata.xml files specific to Maven 2. This is how artifact resolver works against Nexus 3 or 2.

at the end of the day my requirement is to be able to resolve the latest released version of an artifact based soley on groupId, artifactId, and maybe a classifier in order to switch over to nexus 3.

Then I humbly suggest using a tool like artifact-resolver or that style of implementation until such time we complete the implementation of https://issues.sonatype.org/browse/NEXUS-11893 .
Reply all
Reply to author
Forward
0 new messages