MVN

log4j : log4j

Maven & Gradle

May 26, 2012
13.6k usages

Apache Log4j · Apache Log4j 1.2

<dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.17</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of log4j : log4j to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.2.17

All Versions

Choose a version of log4j : log4j to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.2.x
log4j-1.2.17
5 vulnerabilities
log4j-1.2.16
5 vulnerabilities
log4j-1.2.15
5 vulnerabilities
log4j-1.2.14
5 vulnerabilities
log4j-1.2.13
5 vulnerabilities
log4j-1.2.12
5 vulnerabilities
log4j-1.2.11
5 vulnerabilities
log4j-1.2.9
5 vulnerabilities
log4j-1.2.8
5 vulnerabilities
log4j-1.2.7
5 vulnerabilities
log4j-1.2.6
5 vulnerabilities
log4j-1.2.5
5 vulnerabilities
log4j-1.2.4
5 vulnerabilities
1.1.x
log4j-1.1.3
4 vulnerabilities

How to add a dependency to Maven

Add the following log4j : log4j maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.17</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following log4j : log4j gradle dependency to your build.gradle file:

implementation 'log4j:log4j:1.2.17'

Gradle Kotlin DSL: Add the following log4j : log4j gradle kotlin dependency to your build.gradle.kts file:

implementation("log4j:log4j:1.2.17")

How to add a dependency to SBT Scala

SBT Scala: Add the following log4j : log4j sbt scala dependency to your build.sbt file:

libraryDependencies += "log4j" % "log4j" % "1.2.17"

Advertisement

Dependencies from Group

May 26, 2012
13.6k usages
Oct 14, 2013
199 usages

Discover Dependencies

Jan 06, 2023
12.1k usages
22.2k stars
May 18, 2023
9.3k usages
1.8k stars
poi
Sep 09, 2022
1.9k usages
Aug 07, 2023
3.4k usages
5.9k stars
Jun 18, 2023
3.7k usages
4.5k stars
Jun 03, 2023
20.8k usages
May 30, 2023
10.7k usages
2.2k stars
Apr 17, 2008
8.5k usages
May 30, 2023
20.7k usages
3.5k stars
Jul 13, 2023
4.4k usages
56.5k stars