Skip to content

Instantly share code, notes, and snippets.

@didyhu
Created February 19, 2016 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save didyhu/aae2b75bcfafa98ee997 to your computer and use it in GitHub Desktop.
Save didyhu/aae2b75bcfafa98ee997 to your computer and use it in GitHub Desktop.
Getting error "Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError" when deploy war to aliyun ace.
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<packagingExcludes>
WEB-INF/lib/log4j-over-slf4j-*.jar
</packagingExcludes>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment