15
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインからMavenのセントラルリポジトリを検索できるツールを作ってみた

Last updated at Posted at 2014-08-27

あるんかなと思ったら、なさそうだった。

REST API が提供されていたから、 Groovy で作ってみた。

GitHub で公開してます

##使用例
###任意検索

> groovy mvnfind -q "commons lang"
com.btmatthews.jaxb2_commons:jaxb2-commons-lang3:1.0.0
com.cedarsoft.commons:lang:6.0.1
com.mysema.commons:mysema-commons-lang:0.2.4
commons-lang:commons-lang:20030203.000129
fm.last.commons:lastcommons-lang:3.1.1
net.bramp.jackson:jackson-datatype-commons-lang3:0.1
net.dongliu.commons:commons-lang:1.0.3
net.sf.staccatocommons:commons-lang:1.2
org.andromda.thirdparty.jaxb2_commons:commons-lang-plugin:2.2
org.apache.commons:commons-lang3:3.3.2
org.apache.directory.studio:org.apache.commons.lang:2.6
org.apache.karaf.demos.deployer.wrap:osgi.commons-lang:2.3.6
org.apache.karaf.eik.plugins:org.apache.commons.lang:2.6
org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-lang:2.4_6
org.jvnet.jaxb2_commons:jaxb2-commons-lang:2.4
org.kie.modules:org-apache-commons-lang-main:6.2.0.Beta1
org.kie.modules:org-apache-commons-lang3:6.2.0.Beta1
org.mod4j.org.apache.commons:lang:2.1.0

###グループID などを指定

> groovy mvnfind -g org.apache.commons -a commons-lang3
org.apache.commons:commons-lang3:3.3.2

###全バージョンを表示する

> groovy mvnfind -g org.apache.commons -a commons-lang3 --allVersions
org.apache.commons:commons-lang3:3.0
org.apache.commons:commons-lang3:3.0.1
org.apache.commons:commons-lang3:3.1
org.apache.commons:commons-lang3:3.2
org.apache.commons:commons-lang3:3.2.1
org.apache.commons:commons-lang3:3.3
org.apache.commons:commons-lang3:3.3.1
org.apache.commons:commons-lang3:3.3.2

###表示件数を指定する

> groovy mvnfind -g org.apache.commons --max 5
org.apache.commons:commons-compress:1.8.1
org.apache.commons:commons-csv:1.0
org.apache.commons:commons-dbcp2:2.0.1
org.apache.commons:commons-email:1.3.3
org.apache.commons:commons-math3:3.3
15
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?