Class MavenCentralSearchService

  • All Implemented Interfaces:
    IVersionReader

    public class MavenCentralSearchService
    extends Object
    implements IVersionReader
    Maven Central offers a search service located at REPO_SEARCH_SERVICE_URL which can be used to query the maven central repository via a RESTful interface. This class makes use of this API and return a list of artifacts.

    As the API is public, but Maven Central is the only service offering it, there is no reason to modify the URLs for searching and retrieving the artifacts.
    Anyway, if there should be another repository using the same API, this class can be inherited and getSearchURL() and getRetrieveURL() and createItemURLs(ResponseDoc, String) can be overriden.
    Author:
    stephan.watermeyer, Diebold Nixdorf