Skip to content

Searching private artifact repositories #15

Open

Description

@chabala

Can jpm be configured to search a private artifact repository (e.g. Nexus or Artifactory) in addition to or in place of Maven Central?

Activity

  1. quintesse commented on Mar 3, 2025

    @quintesse
    Contributor

    Right now there isn't. jpm uses a search option provided by Maven Central itself so by definition it's limited to it..

    There is another option that I looked into some time ago, which is to use the search feature provided by Maven itself. But it's so limited that for a bunch of tests I did it often failed to return useful information.

    For example, by default Maven Central orders results by "popularity", while the Maven search API doesn't, meaning the most useful results might be buried pages deep in the list.

    But even worse, the API will often not return expected results. For example searching for "snakeyaml" will return dozens of results, but the official org.yaml:snakeyaml is not among them. Which makes the API useless IMO. But I would happily be proven wrong because I'd love for jpm to be able to search other repositories besides Maven Central.

  2. quintesse commented on Mar 3, 2025

    @quintesse
    Contributor

    Of course another option would be to specifically add support for Nexus/Artifactory search APIs. I'm not sure if there are publically available servers to test against.

  3. chabala commented on Mar 3, 2025

    @chabala
    Author

    That is sort of what I expected. Troubling to hear about unexpected results from the API.

    I assume you're open to reviewing PRs adding support for Nexus/Artifactory search APIs, if they should materialize?

  4. quintesse commented on Mar 4, 2025

    @quintesse
    Contributor

    I assume you're open to reviewing PRs adding support for Nexus/Artifactory search APIs, if they should materialize?

    Absolutely! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions