Skip to content

Latest commit

 

History

History
68 lines (62 loc) · 3.84 KB

README.md

File metadata and controls

68 lines (62 loc) · 3.84 KB

License   CodeFactor   GitHub build (v2.18.0)   Test Coverage   Latest Maven Central release   We recommend IntelliJ IDEA

maven-shaded-log4j-transformer

Transformer for maven-shaded-plugin, that concatenates Log4j2Plugins.dat files in order to provide a workaround for LOG4J2-673 and LOG4J2-954 bugs.

How to use:

<project>
...
    <build>
...
        <plugins>
...
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <transformers>
...
                                <transformer
                                        implementation="io.github.edwgiz.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer">
                                </transformer>
                            </transformers>
...
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>io.github.edwgiz</groupId>
                        <artifactId>log4j-maven-shade-plugin-extensions</artifactId>
                        <version>2.18.0</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>

    </build>

</project>

A number of the transformer version corresponds to the number of the artifacts in org.apache.logging.log4j group

Below versions are available: