Log4j Tools

Maven Bill of Materials (BOM)

To keep your Log4j Tools module versions aligned, a Maven Bill of Materials (BOM) POM is provided for your convenience.

To use this with Maven, add the dependency listed below to your pom.xml file. Note that the <dependencyManagement> nesting and the <scope>import</scope> instruction. This will import all modules bundled with the associated Log4j release to your dependencyManagement. As a result, you don’t have to specify versions of the imported modules (log4j-changelog, log4j-docgen, etc.) while using them as a <dependency>.

pom.xml snippet importing log4j-tools-bom
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-tools-bom</artifactId>
      <version>0.9.0-SNAPSHOT</version>
      <scope>import</scope>
      <type>pom</type>
    </dependency>
  </dependencies>
</dependencyManagement>