0
0

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 1 year has passed since last update.

log4jのバージョン確認方法

Last updated at Posted at 2022-05-06

2021年12月に、Apache Log4j の脆弱性が話題になり、その時の調査で利用したコマンドをまとめました。
https://www.ipa.go.jp/security/ciadr/vul/alert20211213.html

Maven

使われているLog4Jのバージョンの確認方法

mvn -f pom.xml dependency:tree -DoutputFile=出力先ファイル
mvn -f pom.xml dependency:tree | grep log4j

pom.xml ファイルに Log4jのバージョンを指定する方法

    <properties>
        <java.version>1.8</java.version>
        <log4j2.version>2.17.0</log4j2.version>
    </properties>

Gradle

使われているLog4Jのバージョン確認方法

./gradlew dependencies --configuration runtimeClasspath | grep log4j

build.gradle ファイルで、Log4jのバージョンを指定する方法

ext {
  set('log4j2.version', '2.17.0')
}

References

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?