nexus-rest-client-java 2.3.1

631 views
Skip to first unread message

Christoph Henrici

unread,
Jul 6, 2017, 8:12:21 AM7/6/17
to Nexus Users, christop...@chesnb.com
The nexus-rest-client-java https://mvnrepository.com/artifact/org.sonatype.nexus/nexus-rest-client-java 
looks like a very nice developer friendly api to interact with the Nexus Repository. 

Specially for my purposes the

    public List<NexusArtifact> searchByGAV( NexusArtifact gav )

Method. 

But i see that it is deprecated. Also I only found the source code as -sources.jar. 

Question: Is this API still usable? We are using Nexus Repository Manager OSS 2.12.0-0. 

If not what alternatives do i have? 

Also i have'nt seen anything simliar for Nexus 3? 

Best thanks for any input

Christoph 

Peter Lynch

unread,
Jul 6, 2017, 9:56:37 AM7/6/17
to Christoph Henrici, Nexus Users, christop...@chesnb.com
On Thu, Jul 6, 2017 at 9:12 AM, Christoph Henrici <chhe...@gmail.com> wrote:
The nexus-rest-client-java   https://mvnrepository.com/artifact/org.sonatype.nexus/nexus-rest-client-java  
looks like a very nice developer friendly api to interact with the Nexus Repository.  

Specially for my purposes the

    public List<NexusArtifact> searchByGAV( NexusArtifact gav )

Method.  

But i see that it is deprecated. Also I only found the source code as -sources.jar.  

Question: Is this API still usable? We are using Nexus Repository Manager OSS 2.12.0-0.  

It might be usable. It is no longer maintained.  

If not what alternatives do i have?

Later versions of Nexus 2 have dedicated REST -client jar artifacts. The newer -client artifacts were developed for integration testing and internal needs. For example:


Match the version with your version of Nexus.  

Other ideas:

 

Also i have'nt seen anything simliar for Nexus 3?  

Nexus 3 REST API is under development. Nexus 3 will expose its REST API so that you can generate your own clients using tools such as Swagger.

Best thanks for any input

Christoph  

--
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/333d2a44-111c-4219-b2ff-874f179385be%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Peter Lynch

unread,
Jul 7, 2017, 11:06:48 AM7/7/17
to Henrici Christoph che, Christoph Henrici, Nexus Users, christop...@chesnb.com


On Fri, Jul 7, 2017 at 2:59 AM, Henrici Christoph che <Christop...@apgsga.ch> wrote:
Quick question:   /nexus/service/siesta endpoints are only available with Nexus 3?

There are a few endpoints mounted there in Nexus 3, but these could change at any time and not meant to be relied upon at all.

The ones at that endpoint in Nexus 2.x are not expected to ever change.


Am 06.07.2017 um 15:56 schrieb Peter Lynch <ply...@sonatype.com<mailto:plyn...@sonatype.com>>:




On Thu, Jul 6, 2017 at 9:12 AM, Christoph Henrici <chhe...@gmail.com<mailto:chhen...@gmail.com>> wrote:
The nexus-rest-client-java     https://mvnrepository.com/artifact/org.sonatype.nexus/nexus-rest-client-java
looks like a very nice developer friendly api to interact with the Nexus Repository.

Specially for my purposes the

    public List<NexusArtifact> searchByGAV( NexusArtifact gav )

Method.

But i see that it is deprecated. Also I only found the source code as -sources.jar.

Question: Is this API still usable? We are using Nexus Repository Manager OSS 2.12.0-0.

It might be usable. It is no longer maintained.

If not what alternatives do i have?

Later versions of Nexus 2 have dedicated REST -client jar artifacts. The newer -client artifacts were developed for integration testing and internal needs. For example:

https://mvnrepository.com/artifact/org.sonatype.nexus.plugins/nexus-indexer-lucene-client

Match the version with your version of Nexus.

Other ideas:

https://support.sonatype.com/hc/en-us/articles/213465898-What-command-line-tools-are-available-for-Nexus-
http://www.sonatype.org/nexus/2015/01/26/learn-the-nexus-rest-api-automating-sonatype-nexus/


Also i have'nt seen anything simliar for Nexus 3?

Nexus 3 REST API is under development. Nexus 3 will expose its REST API so that you can generate your own clients using tools such as Swagger.

Best thanks for any input

Christoph

--
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<mailto:nexus-users+unsubscribe@glists.sonatype.com>.
To post to this group, send email to nexus...@glists.sonatype.com<mailto:nexus-users@glists.sonatype.com>.
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
Reply all
Reply to author
Forward
0 new messages