Force specific library version in Maven and Gradle
Maven For Maven users, you can follow these instructions and the set the log4j2.version property. For example: <properties> <log4j2.version>2.15.0</log4j2.version> </properties>COPY To check that the override as been applied run ./mvnw [...]