- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的总体目标是编写一个 Storm Topology(版本 0.9.4)。我正在使用 Maven Shade 版本 2.4.3 生成 uber JAR,但尽管我付出了努力,但我仍然得到
java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError
当我运行拓扑时。
经过一番阅读后,我排除了 org.slf4j:slf4j-log4j12
从 POM (它包含在几个嵌套依赖项中)并运行
mvn dependency:tree
确保slf4j-log4j12
不在树上。
但是,当我运行 Maven Shade 时,构建 JAR,执行:
jar -tvf target\StormTopology.jar | grep slf4j
我仍然可以看到 slf4j-log4j12
中的类(class):
0 Wed Jan 20 15:39:48 EST 2016 META-INF/maven/org.slf4j/slf4j-log4j12/
113 Wed Jan 20 15:39:48 EST 2016 META-INF/maven/org.slf4j/slf4j-log4j12/pom.properties
1644 Wed Jan 20 15:39:48 EST 2016 META-INF/maven/org.slf4j/slf4j-log4j12/pom.xml
1011 Wed Jan 20 15:39:48 EST 2016 org/slf4j/helpers/NOPMakerAdapter.class
0 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/
6686 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/Log4jLoggerAdapter.class
1314 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/Log4jLoggerFactory.class
1932 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/Log4jMDCAdapter.class
1962 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/StaticLoggerBinder.class
1221 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/StaticMDCBinder.class
1376 Wed Jan 20 15:39:48 EST 2016 org/slf4j/impl/StaticMarkerBinder.class
我试图排除 slf4j-log4j12
来自 Artifact :
<artifactSet>
<excludes>
<exclude>org.slf4j:slf4j-log4j12:*</exclude>
</excludes>
</artifactSet>
我还尝试过过滤slf4j-log4j12
:
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>org.slf4j:slf4j-log4j12:*</exclude>
</excludes>
</filter>
</filter>
我想我不明白 Maven Shade 正在执行的一些基本功能,因为我不明白为什么 slf4j-log4j12
一直包含在我的 uber JAR 中。
编辑#1:添加完整的 Maven
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${package.jar.name}</finalName>
<artifactSet>
<excludes>
<exclude>org.slf4j:slf4j-log4j12:*</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>LICENSE</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
下面还请找到 mvn dependency:tree 的结果
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ mc-interop-cop-ibs-interface ---
[INFO] com.vistronix:mc-interop-cop-ibs-interface:jar:1.9.0-SNAPSHOT
[INFO] +- org.apache.storm:storm-core:jar:0.9.4:provided
[INFO] | +- org.clojure:clojure:jar:1.5.1:provided
[INFO] | +- clj-time:clj-time:jar:0.4.1:provided
[INFO] | +- joda-time:joda-time:jar:2.1:compile
[INFO] | +- compojure:compojure:jar:1.1.3:provided
[INFO] | +- org.clojure:core.incubator:jar:0.1.0:provided
[INFO] | +- org.clojure:tools.macro:jar:0.1.0:provided
[INFO] | +- clout:clout:jar:1.0.1:provided
[INFO] | +- ring:ring-core:jar:1.1.5:provided
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided
[INFO] | +- javax.servlet:servlet-api:jar:2.5:compile
[INFO] | +- hiccup:hiccup:jar:0.3.6:provided
[INFO] | +- ring:ring-devel:jar:0.3.11:provided
[INFO] | +- clj-stacktrace:clj-stacktrace:jar:0.2.2:provided
[INFO] | +- ring:ring-jetty-adapter:jar:0.3.11:provided
[INFO] | +- ring:ring-servlet:jar:0.3.11:provided
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.26:compile
[INFO] | +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile
[INFO] | +- org.clojure:tools.logging:jar:0.2.3:provided
[INFO] | +- org.clojure:math.numeric-tower:jar:0.0.1:provided
[INFO] | +- org.clojure:tools.cli:jar:0.2.4:provided
[INFO] | +- commons-io:commons-io:jar:2.4:compile
[INFO] | +- org.apache.commons:commons-exec:jar:1.1:provided
[INFO] | +- commons-lang:commons-lang:jar:2.2:compile
[INFO] | +- com.googlecode.json-simple:json-simple:jar:1.1:provided
[INFO] | +- com.twitter:carbonite:jar:1.4.0:provided
[INFO] | +- com.esotericsoftware.kryo:kryo:jar:2.21:provided
[INFO] | +- com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07:provided
[INFO] | +- org.ow2.asm:asm:jar:4.0:provided
[INFO] | +- com.esotericsoftware.minlog:minlog:jar:1.2:provided
[INFO] | +- org.objenesis:objenesis:jar:1.2:provided
[INFO] | +- com.twitter:chill-java:jar:0.3.5:provided
[INFO] | +- org.yaml:snakeyaml:jar:1.11:compile
[INFO] | +- commons-codec:commons-codec:jar:1.2:compile
[INFO] | +- com.googlecode.disruptor:disruptor:jar:2.10.1:provided
[INFO] | +- org.jgrapht:jgrapht-core:jar:0.9.0:provided
[INFO] | +- ch.qos.logback:logback-classic:jar:1.0.13:provided
[INFO] | +- ch.qos.logback:logback-core:jar:1.0.13:provided
[INFO] | \- jline:jline:jar:2.11:compile
[INFO] +- org.apache.kafka:kafka_2.10:jar:0.8.1.1:provided
[INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
[INFO] | +- org.xerial.snappy:snappy-java:jar:1.0.5:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.3.4:compile
[INFO] | +- net.sf.jopt-simple:jopt-simple:jar:3.2:compile
[INFO] | \- com.101tec:zkclient:jar:0.3:compile
[INFO] +- org.apache.storm:storm-kafka:jar:0.9.4:compile
[INFO] | \- org.apache.curator:curator-framework:jar:2.5.0:compile
[INFO] | +- org.apache.curator:curator-client:jar:2.5.0:compile
[INFO] | \- com.google.guava:guava:jar:16.0.1:compile
[INFO] +- org.scala-lang:scala-library:jar:2.11.7:compile
[INFO] +- org.apache.camel:camel-spring:jar:2.16.0:compile
[INFO] | +- org.apache.camel:camel-core:jar:2.16.0:compile
[INFO] | +- org.springframework:spring-aop:jar:3.2.9.RELEASE:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- org.springframework:spring-tx:jar:3.2.9.RELEASE:compile
[INFO] +- org.apache.camel:camel-kafka:jar:2.16.0:compile
[INFO] | \- org.apache.kafka:kafka_2.11:jar:0.8.2.1:compile
[INFO] | +- org.scala-lang.modules:scala-xml_2.11:jar:1.0.2:compile
[INFO] | +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.2:compile
[INFO] | \- org.apache.kafka:kafka-clients:jar:0.8.2.1:compile
[INFO] | \- net.jpountz.lz4:lz4:jar:1.2.0:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.13:compile
[INFO] +- com.vistronix:mc-interop-server-common:jar:1.9.0-SNAPSHOT:compile
[INFO] | +- com.netcentric.evr:evr-server-data:jar:1.9.0-SNAPSHOT:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.9.RELEASE:compile
[INFO] | | +- org.flywaydb:flyway-core:jar:3.0:compile
[INFO] | | +- com.symantec:SymJavaAPI:jar:4.3.1.13:compile
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile
[INFO] | | +- org.apache.accumulo:accumulo-core:jar:1.5.0:compile
[INFO] | | | +- com.beust:jcommander:jar:1.30:compile
[INFO] | | | +- org.apache.accumulo:accumulo-fate:jar:1.5.0:compile
[INFO] | | | +- org.apache.accumulo:accumulo-start:jar:1.5.0:compile
[INFO] | | | +- org.apache.accumulo:accumulo-trace:jar:1.5.0:compile
[INFO] | | | +- org.apache.commons:commons-vfs2:jar:2.0:compile
[INFO] | | | | +- org.apache.maven.scm:maven-scm-api:jar:1.4:compile
[INFO] | | | | | \- org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
[INFO] | | | | \- org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.4:compile
[INFO] | | | | +- org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.4:compile
[INFO] | | | | \- regexp:regexp:jar:1.3:compile
[INFO] | | | \- org.apache.thrift:libthrift:jar:0.9.0:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.1.3:compile
[INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.1.3:compile
[INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.0.0-cdh4.5.0:compile
[INFO] | | | +- org.apache.hadoop:hadoop-annotations:jar:2.0.0-cdh4.5.0:compile
[INFO] | | | | \- jdk.tools:jdk.tools:jar:1.6:system
[INFO] | | | +- commons-cli:commons-cli:jar:1.2:compile
[INFO] | | | +- org.apache.commons:commons-math:jar:2.1:compile
[INFO] | | | +- xmlenc:xmlenc:jar:0.52:compile
[INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | | | +- commons-net:commons-net:jar:3.1:compile
[INFO] | | | +- com.sun.jersey:jersey-core:jar:1.8:compile
[INFO] | | | +- com.sun.jersey:jersey-json:jar:1.8:compile
[INFO] | | | | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | | | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.7.1:compile
[INFO] | | | | \- org.codehaus.jackson:jackson-xc:jar:1.7.1:compile
[INFO] | | | +- com.sun.jersey:jersey-server:jar:1.8:compile
[INFO] | | | | \- asm:asm:jar:3.1:compile
[INFO] | | | +- tomcat:jasper-compiler:jar:5.5.23:runtime
[INFO] | | | +- tomcat:jasper-runtime:jar:5.5.23:runtime
[INFO] | | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | | +- commons-el:commons-el:jar:1.0:runtime
[INFO] | | | +- org.apache.hadoop:cloudera-jets3t:jar:2.0.0-cdh4.5.0:compile
[INFO] | | | +- net.java.dev.jets3t:jets3t:jar:0.6.1:compile
[INFO] | | | +- org.mockito:mockito-all:jar:1.8.5:compile
[INFO] | | | +- net.sf.kosmosfs:kfs:jar:0.3:compile
[INFO] | | | +- com.google.protobuf:protobuf-java:jar:2.4.0a:compile
[INFO] | | | +- org.apache.hadoop:hadoop-auth:jar:2.0.0-cdh4.5.0:compile
[INFO] | | | \- com.jcraft:jsch:jar:0.1.42:compile
[INFO] | | +- org.apache.qpid:qpid-client:jar:0.14:compile
[INFO] | | +- org.apache.qpid:qpid-common:jar:0.14:compile
[INFO] | | +- javax.jms:jms:jar:1.1:compile
[INFO] | | +- mil.army.inscom:security-helper:jar:1.0.009:compile
[INFO] | | +- mil.army.inscom:classification-util:jar:1.3.4:compile
[INFO] | | +- jblocks:jblocks-Classification:jar:9.5.6:compile
[INFO] | | +- jblocks:jblocks-StringUtils:jar:7.3.5:compile
[INFO] | | +- jblocks:jblocks-CountryCode:jar:7.1.4:compile
[INFO] | | +- jblocks:jblocks-Iterators:jar:7.1.4:compile
[INFO] | | +- jblocks:jblocks-Containers:jar:8.0.4:compile
[INFO] | | +- mil.army.inscom:accumulo-classification:jar:1.3.19:compile
[INFO] | | | +- jblocks:jblocks-UnitTester:jar:7.2.2:compile
[INFO] | | | \- commons-pool:commons-pool:jar:1.5.5:compile
[INFO] | | +- mil.army.inscom:provenance:jar:1.1.023:compile
[INFO] | | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | +- net.sourceforge.javacsv:javacsv:jar:2.0:compile
[INFO] | | +- org.apache.xmlgraphics:batik-rasterizer:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] | | | | \- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] | | | | \- xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] | | | \- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-codec:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] | | | | +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] | | | | \- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] | | | | \- org.apache.xmlgraphics:batik-js:jar:1.7:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] | | +- org.apache.sanselan:sanselan:jar:0.97-incubator:compile
[INFO] | | +- fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.pdf:jar:1.0.4:compile
[INFO] | | | +- fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.core:jar:1.0.4:compile
[INFO] | | | | \- org.apache.poi:ooxml-schemas:jar:1.1:compile
[INFO] | | | \- fr.opensagres.xdocreport:fr.opensagres.xdocreport.itext.extension:jar:1.0.4:compile
[INFO] | | | \- com.lowagie:itext:jar:2.1.7:compile
[INFO] | | +- org.apache.poi:poi:jar:3.10.1:compile
[INFO] | | +- org.apache.poi:poi-ooxml:jar:3.10.1:compile
[INFO] | | | +- org.apache.poi:poi-ooxml-schemas:jar:3.10.1:compile
[INFO] | | | | \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] | | | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | +- org.docx4j:docx4j:jar:3.2.2:compile
[INFO] | | | +- org.plutext:jaxb-svg11:jar:1.0.2:compile
[INFO] | | | +- org.plutext:jaxb-xslfo:jar:1.0.1:compile
[INFO] | | | +- org.plutext:jaxb-xmldsig-core:jar:1.0.0:compile
[INFO] | | | +- net.engio:mbassador:jar:1.1.10:compile
[INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.13:compile
[INFO] | | | +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.5:compile
[INFO] | | | +- org.apache.xmlgraphics:fop:jar:1.1:compile
[INFO] | | | | \- org.apache.xmlgraphics:batik-extension:jar:1.7:compile
[INFO] | | | +- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
[INFO] | | | +- org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
[INFO] | | | +- xalan:xalan:jar:2.7.0:test
[INFO] | | | +- net.arnx:wmf2svg:jar:0.9.0:compile
[INFO] | | | +- org.apache.poi:poi-scratchpad:jar:3.8:compile
[INFO] | | | +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] | | | \- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] | | | \- antlr:antlr:jar:2.7.7:compile
[INFO] | | \- xerces:xercesImpl:jar:2.10.0:compile
[INFO] | +- com.netcentric.evr:evr-server-common:jar:1.9.0-SNAPSHOT:compile
[INFO] | | +- org.json:json:jar:20090211:compile
[INFO] | | +- com.bbn:openmap:jar:5.0:compile
[INFO] | | +- org.springframework:spring-webmvc:jar:3.2.9.RELEASE:compile
[INFO] | | +- org.springframework.amqp:spring-rabbit:jar:1.2.1.RELEASE:compile
[INFO] | | | +- com.rabbitmq:amqp-client:jar:3.1.3:compile
[INFO] | | | \- org.springframework.amqp:spring-amqp:jar:1.2.1.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-jpa:jar:1.1.0.RELEASE:compile
[INFO] | | | +- org.springframework.data:spring-data-commons-core:jar:1.3.0.RELEASE:compile
[INFO] | | | | \- junit:junit-dep:jar:4.8.2:compile
[INFO] | | | +- org.springframework:spring-orm:jar:3.2.9.RELEASE:compile
[INFO] | | | | \- org.springframework:spring-jdbc:jar:3.2.9.RELEASE:compile
[INFO] | | | \- org.aspectj:aspectjrt:jar:1.6.12:compile
[INFO] | | +- org.springframework:spring-oxm:jar:3.2.9.RELEASE:compile
[INFO] | | +- mil.army.inscom:encryption-utilities:jar:2.1:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | +- org.hibernate:hibernate-validator:jar:5.0.1.Final:compile
[INFO] | | | +- org.jboss.logging:jboss-logging:jar:3.1.1.GA:compile
[INFO] | | | \- com.fasterxml:classmate:jar:0.8.0:compile
[INFO] | | +- org.hibernate:hibernate-entitymanager:jar:4.2.0.CR1:compile
[INFO] | | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] | | | +- org.hibernate:hibernate-core:jar:4.2.0.CR1:compile
[INFO] | | | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] | | | +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] | | | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
[INFO] | | \- com.vividsolutions:jts:jar:1.13:compile
[INFO] | +- de.micromata.jak:JavaAPIforKml:jar:2.2.0:compile
[INFO] | | +- com.sun.xml.bind:jaxb-xjc:jar:2.2:compile
[INFO] | | \- xmlunit:xmlunit:jar:1.2:compile
[INFO] | +- ch.hsr:ch.hsr.geohash:jar:1.0.6:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.3:compile
[INFO] | | \- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | +- org.geotools:gt-geometry:jar:10.2:compile
[INFO] | | +- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
[INFO] | | +- org.geotools:gt-main:jar:10.2:compile
[INFO] | | | +- org.geotools:gt-api:jar:10.2:compile
[INFO] | | | | \- org.geotools:gt-referencing:jar:10.2:compile
[INFO] | | | | +- java3d:vecmath:jar:1.3.2:compile
[INFO] | | | | +- org.geotools:gt-metadata:jar:10.2:compile
[INFO] | | | | | \- org.geotools:gt-opengis:jar:10.2:compile
[INFO] | | | | \- jgridshift:jgridshift:jar:1.0:compile
[INFO] | | | \- jdom:jdom:jar:1.0:compile
[INFO] | | \- javax.media:jai_core:jar:1.1.3:compile
[INFO] | \- org.jasypt:jasypt:jar:1.9.1:compile
[INFO] +- com.vistronix:mc-interop-server-common-data:jar:1.9.0-SNAPSHOT:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | \- com.futureskies.dci:dci-api:jar:13.1.2:compile
[INFO] | +- com.futureskies.dci:dci-shared:jar:13.1.2:compile
[INFO] | +- com.futureskies.dci:ltxmllib:jar:13.1.2:compile
[INFO] | \- com.futureskies.dci:thrift:jar:13.1.2:compile
[INFO] +- org.springframework:spring-core:jar:3.2.9.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:3.2.9.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:3.2.9.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:3.2.9.RELEASE:compile
[INFO] +- junit:junit:jar:4.10:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:compile
[INFO] +- org.springframework:spring-test:jar:3.2.9.RELEASE:test
[INFO] \- org.mockito:mockito-core:jar:1.10.19:test
最佳答案
不幸的是,我的问题以一种超出我控制范围的方式解决了。更新了依赖 JAR 文件之一,删除了对 slf4j-log4j12
的引用。这意味着它不需要被排除在 Storm Topology 项目之外。进行此更新后,问题就消失了。
因此,要么这是一个暂时性问题,要么某处存在一个错误,我无法再花时间进行故障排除。
关于java - Maven Shade 包含 slf4j-log4j12,尽管已明确从 POM 中排除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34912133/
不同的 LogCat 方法是: Log.v(); // Verbose Log.d(); // Debug Log.i(); // Info Log.w(); // Warning Log.e();
在android群里,经常会有人问我,android log是怎么用的,今天我就把从网上以及sdk里东拼西凑过来,让大家先一睹为快,希望对大家入门android log有一定的帮助. android
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 4 年前。 社区 12
我正在尝试使用 sonarlint 检查代码质量.上面的问题概要,我不明白为什么它要说要大写。但是 this discussion与上述建议相反。哪一个应该被认为是正确的? 最佳答案 这没有正确答案,
随着 n 变大,log*(log n) 和 log(log* n) 这两个函数会更快吗? 这里,log* 函数是迭代对数,定义如下: 我怀疑它们是相同的,只是写法不同,但它们之间有什么区别吗? 最佳答
作为家庭作业,我被要求在 O(log(n)) 中编写一个算法,我可以计算出我编写的算法的复杂度为 O(log(n) + log(n/2) + log(n/4) + log(n/8) + ... + l
我正在使用 Tomee。日志文件夹包含这样的文件 localhost_access_log.2016-12-02.txt localhost.2016-12-02.log catalina.2016-
Android Log.v、Log.d、Log.i、Log.e 等的 ios 等效项是什么?同样在 android 上,我使用 Android 设备监视器和 logcat 来访问我的手机日志,我需要在
我认为下面的代码是 O(log log n) 因为它里面有 i*i 但我对 log n 感到困惑> 和 log (log n)。 for (i=2; i*i<=number; i++) { if
我正在修改 kvm 模块,并在内核代码中添加了 printk 语句。运行虚拟机后,printk 为我提供了错误地址和有关 guest 操作系统的其他信息。 我需要从这个信息中生成统计信息。当我使用 d
我有一个部署为 Windows Azure Web 角色的 WCF 服务。 我正在使用 Enterprise Library 进行异常处理,并且在我的本地 Development Fabric 中,似
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 9 年前。 Improv
在 Go 的生产中使用 log.SetFlags(log.LstdFlags | log.Lshortfile) 是好的做法(至少是一般做法)吗?我想知道在生产中这样做是否存在性能或安全问题。因为它不
我想知道什么更快: double value = Math.log(a) - Math.log(b); 或 double value = Math.log(a/b); 我计算值的方式是否会对性能产生影
我有数百个子例程使用 log.Println() 写入日志文件 我正在使用 log.Println 写入 error.log 文件。 func main() { e, err := os.Open
我将 Nuxt 与 SSR 一起使用,并希望有类似于 apaches 的 access.log 和 error.log 的东西 我特别感兴趣的是每次调用的响应时间。 我在 nuxt 文档中找不到任何内
我知道以前有人问过这个问题,但我相信这是一个不同的问题。 Nginx 在 www-data 下运行: $ ps -eo "%U %G %a" | grep nginx root root
我在我的日志文件中发现了一个非常奇怪的条目 Jan 29 01:35:30 vs-proj-handy sshd[5316]: Received disconnect from 130.207.203
对于我正在开发的应用程序,我希望在开发过程中和发布时简化故障排除。我希望能够检索到对 Log 的调用,以了解在 USB 调试中没有连接手机的情况下运行应用程序时的调用,以便可以检索并发送给我。例如,当
我试图捕获 panic 并记录错误: func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloRep
我是一名优秀的程序员,十分优秀!