| Crates.io | maven_search_cmdline |
| lib.rs | maven_search_cmdline |
| version | 0.6.0 |
| created_at | 2021-10-21 20:39:59.481395+00 |
| updated_at | 2025-08-26 07:34:10.161594+00 |
| description | A library for searching in Maven Central and formatting to Maven/Gradle/Gradle.kts/Sbt/Ivy/Lein |
| homepage | https://github.com/martin-g/maven_search_rs |
| repository | https://github.com/martin-g/maven_search_rs |
| max_upload_size | |
| id | 469001 |
| size | 58,330 |
Command line application for searching in https://central.sonatype.com
$ maven-search -f maven wicket-core
The above will search for the latest version of a Maven artifact with id wicket-core.
Sample output:
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>9.8.0</version>
</dependency>
$ maven-search -h
prints
maven-search [options] query
Search for Maven dependency
Positionals:
query The dependency you search for. E.g. "wicket-core" or "g:org.apache.wicket AND a:wicket-core" [string]
The syntax is the same as at https://search.maven.org/
Options:
--version Show version number and exit
--format, -f [string] Define in which format to print dependency. (maven, gradle, gradlekts, lein, ivy, sbt). Default: "maven"
--check-for-update, -u Checks whether there is a new version of this tool available and exit
--help, -h Show this help and exit
$ maven-search
starts an interactive session where the user has to type the query and select the output format.