I'm building my project with Java11 and maven my pom look like this and i'm trying to get the right log4j-api for my project
log4j-api is since 2.9 a multi-release jar with support of java9+ and older java versions
In my project i still not able to log4j-api-java9 https://github.com/apache/logging-log4j2/tree/master/log4j-api-java9
my pom looks like this
...
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vertx.version>3.5.3</vertx.version>
<log4j.version>2.11.1</log4j.version>
<async-http-client.version>2.5.2</async-http-client.version>
<maven.compiler.release>11</maven.compiler.release>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
...
...
<dependencies>
<build>
...
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
</configuration>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/*IT.java</exclude>
</testExcludes>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugins>
<build>
using this is also hopeless
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api-java9</artifactId>
<version>${log4j.version}</version>
</dependency>