Skip to content

Commit 27bdb57

Browse files
author
S L
committed
#196: create a uber-war as a workaround for maven's class loading problem (MNG-5787); currently only need to include org.slf4j
1 parent 8531891 commit 27bdb57

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,33 @@
212212
<target>${java.target}</target>
213213
</configuration>
214214
</plugin>
215+
<!-- we need to create a uber war for https://github.com/ktoso/maven-git-commit-id-plugin/issues/196 -->
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-shade-plugin</artifactId>
219+
<version>2.3</version>
220+
<executions>
221+
<execution>
222+
<phase>package</phase>
223+
<goals>
224+
<goal>shade</goal>
225+
</goals>
226+
<configuration>
227+
<createDependencyReducedPom>false</createDependencyReducedPom>
228+
<transformers>
229+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
230+
<mainClass>pl.project13.maven.git.GitCommitIdMojo</mainClass>
231+
</transformer>
232+
</transformers>
233+
<artifactSet>
234+
<includes>
235+
<include>org.slf4j:*</include>
236+
</includes>
237+
</artifactSet>
238+
</configuration>
239+
</execution>
240+
</executions>
241+
</plugin>
215242

216243
<!--<plugin>-->
217244
<!--<artifactId>maven-plugin-plugin</artifactId>-->

0 commit comments

Comments
 (0)