<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <description>
    Combined dependencies for using Apache Log4j2 as logging backend with redirection of Apache Commons Logging, 
    java.util.logging and SLF4J into Log4j2.
    
    Edumat projects should use this as dependency with appropriate scope, normally test.
     
    The projects must include any of the following logging api dependencies in appropriate scope:
    - Apache Commons Logging: commons-logging:commons-logging (managed version; see edumat/pom.xml)
    - java.util.logging: none
    - SLF4J: org.slf4j:slf4j-api (managed version; see edumat/pom.xml)
    - Log4j2: org.apache.logging.log4j:log4j-api (managed version; see edumat/pom.xml)
    
    All logging output is redirected into Log4j2, which can be configured by a log4j2.xml in src/xxx/resources.
    
    For java.util.logging, the system property java.util.logging.manager must be set to
    org.apache.logging.log4j.jul.LogManager early (i. e. before calling one of the logging methods).
  </description>

  <parent>
    <groupId>de.gedoplan.edumat-support</groupId>
    <artifactId>parent</artifactId>
    <version>2026.6.2</version>
    <relativePath>../parent</relativePath>
  </parent>

  <artifactId>logging-log4j2</artifactId>

  <packaging>pom</packaging>

  <name>${project.groupId}:${project.artifactId}</name>
  <url>https://wiki.gedoplan.de/bin/view/Training/</url>

  <developers>
    <developer>
      <name>Dirk Weil</name>
      <email>dirk.weil@gedoplan.de</email>
      <organization>GEDOPLAN GmbH</organization>
      <organizationUrl>https://www.gedoplan.de</organizationUrl>
    </developer>
  </developers>

  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-bom</artifactId>
        <version>2.25.2</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-jcl</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-jul</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

</project>