使用命令行搜索你的java 库

安装包 mvns
pip install mvns

如下:

timger-mac:bin timger$ pip install mvns

Downloading/unpacking mvns
  Downloading mvns-0.1.1.tar.gz
  Running setup.py egg_info for package mvns

Downloading/unpacking requests==2.4.1 (from mvns)
  Downloading requests-2.4.1.tar.gz (436kB): 436kB downloaded
  Running setup.py egg_info for package requests

Installing collected packages: mvns, requests
  Running setup.py install for mvns
    changing mode of build/scripts-2.7/mvns from 644 to 755

    changing mode of /usr/local/bin/mvns to 755
  Found existing installation: requests 2.5.0
    Uninstalling requests:
      Successfully uninstalled requests
  Running setup.py install for requests

Successfully installed mvns requests
Cleaning up...

使用

timger-mac:bin timger$ 
timger-mac:bin timger$ mv
mv        mvn       mvnDebug  mvns      mvnyjp    
timger-mac:bin timger$ mvn
mvn       mvnDebug  mvns      mvnyjp    
timger-mac:bin timger$ mvns json
com.proofpoint.platform:json:1.10
io.airlift:json:0.99
org.json:json:20141113
org.glassfish.main.packager:json:4.1
com.vaadin.external.json:json:0.0.20080701
org.apache.airavata:json:0.11
org.glassfish:json:1.0.4
com.wadpam.openserver:json:29
net.stepniak.api:json:0.8.8
org.webjars:json:20121008
de.twentyeleven.bundled:json:20070829
org.gaixie.json:json:1.0.0
org.apache.isis.viewer:json:0.2.0-incubating
com.unboundid.components:json:1.0.0
it.tidalwave.bluebill:json:1.0.21
org.apache.geronimo.bundles:json:20090211_1
com.twitter:json:2.1.4
com.sun.woodstock.dependlibs:json:2.0
org.jvnet.jax-ws-commons:json:1.2
org.metawidget.modules.json:json-parent:4.0

help

timger-mac:bin timger$ mvns -h
usage: mvns [-h] [-g groupId] [-a artifactId] [-v version] [-A] [-m max]
            [query]

CLI tool to search library in maven central repository

positional arguments:
  query                 search by query

optional arguments:
  -h, --help            show this help message and exit
  -g groupId, --groupId groupId
                        specify groupId
  -a artifactId, --artifactId artifactId
                        specify artifactId
  -v version, --version version
                        specify version
  -A, --allVersions     show all version
  -m max, --max max     limit number of result. default is 20
    原文作者:timger
    原文地址: https://segmentfault.com/a/1190000002494226
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞