LoginSignup
17
19

More than 1 year has passed since last update.

Maven プロジェクトで依存ライブラリの最新バージョンを調べる

Last updated at Posted at 2014-04-18

versions プラグインのコマンドを実行します。Maven 2, 3 ともに標準で使えます。

mvn versions:display-dependency-updates

これ、何度か打ってるとソラで入力できるようになりますが、慣れるまではよく間違えますw どこが複数形だったっけ・・みたいな。

実行すると、しばらく時間がかかりますが、結果がこんな感じに出力されます。

[INFO] The following dependencies in Dependencies have newer versions:
[INFO]   cglib:cglib ............................................. 2.2.2 -> 3.1
[INFO]   ch.qos.logback:logback-classic ........................ 1.1.1 -> 1.1.2
[INFO]   com.amazonaws:aws-java-sdk ............................ 1.7.2 -> 1.7.6
[INFO]   com.fasterxml.jackson.core:jackson-annotations ........ 2.3.1 -> 2.3.3
[INFO]   com.fasterxml.jackson.core:jackson-core ............... 2.3.1 -> 2.3.3
[INFO]   org.apache.commons:commons-lang3 ...................... 3.2.1 -> 3.3.2
[INFO]   org.hibernate:hibernate-validator ......... 4.3.1.Final -> 5.1.0.Final
[INFO]   org.slf4j:jcl-over-slf4j .............................. 1.7.6 -> 1.7.7
[INFO]   org.slf4j:jul-to-slf4j ................................ 1.7.6 -> 1.7.7
[INFO]   org.slf4j:log4j-over-slf4j ............................ 1.7.6 -> 1.7.7
[INFO]   org.slf4j:slf4j-api ................................... 1.7.6 -> 1.7.7
[INFO]   org.springframework:spring-aop ........ 4.0.2.RELEASE -> 4.0.3.RELEASE
[INFO]   org.springframework:spring-beans ...... 4.0.2.RELEASE -> 4.0.3.RELEASE
[INFO]   org.springframework:spring-context .... 4.0.2.RELEASE -> 4.0.3.RELEASE
[INFO]   org.springframework:spring-context-support ...
[INFO]                                           4.0.2.RELEASE -> 4.0.3.RELEASE
[INFO]   org.springframework:spring-core ....... 4.0.2.RELEASE -> 4.0.3.RELEASE

repositories 設定で参照している Maven リポジトリを全部なめて最新版を探すので、設定によって結果は変わることがあります。

17
19
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
17
19