ok-gradle icon indicating copy to clipboard operation
ok-gradle copied to clipboard

Research for supporting local nexus repositories

Open scana opened this issue 7 years ago • 5 comments

Research about searching through internal nexus repositories added by a user (or fetched from repos declared in build.gradle files)

scana avatar Oct 17 '17 10:10 scana

Would like to see support for configurable repositories and auth

thesurlydev avatar Jan 10 '18 16:01 thesurlydev

Hey @digitalsanctum, do you currently have an access to such a repository? Could you verify couple of things for me, please? I was wondering whether those custom maven repositories contains files like those below:

https://<maven_url>/master-index.xml
https://<maven_url>/com/digitalsanctum/group-index.xml

(where your library's artifact name would be: com.digitalsanctum:core:1.0.0)

For example, Google's repository contains following files: https://dl.google.com/dl/android/maven2/master-index.xml https://dl.google.com/dl/android/maven2/com/android/support/group-index.xml

scana avatar Mar 22 '18 11:03 scana

@scana In my employer's particular case, it's an internally hosted Artifactory repository (version 5.4.6). I don't see any master-index.xml or group-index.xml files.

Perhaps this documentation could help:

  • https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API
  • https://www.jfrog.com/confluence/display/RTF/Browsing+Artifactory

thesurlydev avatar Mar 22 '18 14:03 thesurlydev

Would be awesome if you could support local nexus.

Nexus has a rest api for searching for artifact: https://help.sonatype.com/repomanager3/rest-and-integration-api/search-api

I don't think that nexus repos necessarily have a master-index.xml because nexus repository can also be groups or proxies for other repositories.

Kinchkun avatar Apr 01 '20 09:04 Kinchkun

Thanks @Kinchkun, I will give it a try and setup a local docker-based nexus to test it.

I asked about master-index.xml files as I used to have a local maven repository on an S3 bucket and thought that maybe this is a standard.

scana avatar Apr 01 '20 10:04 scana