Created
April 24, 2020 20:19
-
-
Save HalitTalha/9719b574a2f2652136ed82bacd35040c to your computer and use it in GitHub Desktop.
MavenShadePlugin transformer for log4j2 plugins cache file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>3.1.1</version> | |
<!--$NO-MVN-MAN-VER$--> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> | |
<appendAssemblyId>false</appendAssemblyId> | |
<archive> | |
<manifest> | |
<mainClass>com.talhature.graylog.fatjar.Main</mainClass> | |
</manifest> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.4.3</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<finalName>shaded</finalName> | |
<transformers> | |
<transformer implementation="com.github.edwgiz.mavenShadePlugin.log4j2CacheTransformer.PluginsCacheFileTransformer"></transformer> | |
</transformers> | |
</configuration> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>com.github.edwgiz</groupId> | |
<artifactId>maven-shade-plugin.log4j2-cachefile-transformer</artifactId> | |
<version>2.7</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment