How To Install Java Artifact org.apache.logging.log4j.log4j-api v2.0-alpha2

org.apache.logging.log4j log4j-api 2.0-alpha2

Introduction

In this article, we'll learn how to install Java artifact log4j-api from org.apache.logging.log4j group in version 2.0-alpha2. The artifact is available in 65 versions: 3.0.0-beta2 3.0.0-beta1 3.0.0-alpha1 2.23.1 2.23.0 2.22.1 2.22.0 2.21.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.2 2.17.1 2.17.0 2.16.0 2.15.0 2.14.1 2.14.0 2.13.3 2.13.2 2.13.1 2.13.0 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.2 2.11.1 2.11.0 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.8 2.7 2.6.2 2.6.1 2.6 2.5 2.4.1 2.4 2.3.2 2.3.1 2.3 2.2 2.1 2.0.2 2.0.1 2.0-rc2 2.0-rc1 2.0-beta9 2.0-beta8 2.0-beta7 2.0-beta6 2.0-beta5 2.0-beta4 2.0-beta3 2.0-beta2 2.0-beta1 2.0-alpha2 2.0-alpha1 2.0 The parent project is: org.apache.logging.log4j::log4j::2.0-alpha2

How To Install Java Artifact org.apache.logging.log4j.log4j-api In Version 2.0-alpha2

To install the Log4J API artifact in version 2.0-alpha2 add the following dependency to your pom.xml file for Maven Project.

The dependency needs to be added in the dependencies section which is located in the main project tag of the pom.xml file. The sample pom.xml file that uses Log4J API dependency could look as follows:

Other dependency snippets for Gradle, SBT, Ivy, Grape, Leiningen, and Buildr

Below you can find code snippets for other project build tools like Gradle, SBT, Ivy, Grape, Leiningen, and Buildr.

Test dependencies (2)