GithubHelp home page GithubHelp logo

abdelhajou / mcs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mthmulders/mcs

0.0 0.0 0.0 210 KB

Search the Maven Central Repository from your command line!

Home Page: https://maarten.mulders.it/projects/mcs/

License: MIT License

Java 100.00%

mcs's Introduction

Maven Central Search

Build status Mutation testing badge Snapcraft.io status

Use Maven Central Repository Search from your command line!

Use mcs to quickly lookup dependency coordinates in Maven Central, without having to switch to your browser.

Usage

This tool supports the following modes of searching:

  1. Wildcard search
    mcs search plexus-utils
    This will give you all artifacts in Maven Central that have "plexus-utils" in their name. The output is in a tabular form, showing the exact coordinate of each artifact and the moment when its latest version was deployed.
  2. Coordinate search
    mcs search org.codehaus.plexus:plexus-utils
    mcs search org.codehaus.plexus:plexus-utils:3.4.1
    If there are multiple hits, you will get the same table output as above. But if there's only one hit, this will give you a pom.xml snippet for the artifact you searched for. Ready for copy & paste in your favourite IDE!
  3. Class-name search
    mcs class-search CommandLine
    mcs class-search -f picocli.CommandLine
    This will give you all artifacts in Maven Central that contain a particular class. If you set the -f flag, the search term is considered a "fully classified" class name, so including the package name.

All modi recognise the -l <number> switch, which lets you specify how many results you want to see at most.

Installation

You can install mcs using the package manager of your choice:

Package manager Platform Installation Remarks
Homebrew ๐ŸŽ ๐Ÿง brew install mthmulders/tap/mcs โš ๏ธ 1
Snap ๐Ÿง snap install maven-central-search
SDKMAN! ๐ŸŽ ๐Ÿง sdk install mcs
Chocolatey ๐ŸชŸ choco install mcs
  1. The macOS and Linux binaries only work on x86_64 CPU's. If you have a Mac with Apple Silicon, you can use mcs through Rosetta.

Contributing

Probably the easiest way to get a working development environment is to use Gitpod:

Open in Gitpod

It will configure a workspace in your browser and show that everything works as expected by running mvn verify. This setup does not touch your computer - as soon as you close your browser tab, it's gone.

Ideas for future development

  • Proper support for multiple classifiers at a particular coordinate.
  • Immediately copy the pom.xml snippet to the clipboard.
  • Show the coordinates in a different form (Ivy, Gradle, SBT).

mcs's People

Contributors

mthmulders avatar dependabot[bot] avatar github-actions[bot] avatar hannotify avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.