swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Exclude logback.xml from the jar #73

Closed galbarm closed 8 years ago

galbarm commented 8 years ago

Having logback.xml inside io.swagger.swagger-play2_2.11 jar causes a multiple copies error:

10:33:58,778 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/.../gatewayservice/conf/logback.xml] 10:33:58,779 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 10:33:58,779 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/C:/...gatewayservice/conf/logback.xml] 10:33:58,779 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/.../GatewayService/target/universal/gatewayservice/lib/io.swagger.swagger-play2_2.11-1.5.1.jar!/logback.xml]

references: https://groups.google.com/forum/#!topic/clojure/jeVTo0aWWb4 http://stackoverflow.com/questions/3401051/suppress-all-logback-output-to-console