Maven Central Search
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:
- Wildcard search
mcs search plexus-utils
- Coordinate search
mcs search org.codehaus.plexus:plexus-utils mcs search org.codehaus.plexus:plexus-utils:3.4.1
- Class-name search
mcs class-search CommandLine mcs class-search -f picocli.CommandLine
-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 |
|
Snap |
|
snap install maven-central-search |
|
SDKMAN! |
|
sdk install mcs |
|
Chocolatey |
|
choco install mcs |
- 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.
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).