执行" mvn clean install"时出现以下错误来自lo4j2 trunk。我想为我的项目采用最新的log4j2罐子。
[INFO] Apache Log4j 2 .................................... SUCCESS [0.574s]
[INFO] Apache Log4j API .................................. SUCCESS [5.993s]
[INFO] Apache Log4j Core ................................. FAILURE [4.718s]
[INFO] Apache Log4j 1.x Compatibility API ................ SKIPPED
[INFO] Apache Log4j SLF4J Binding ........................ SKIPPED
[INFO] Apache Log4j to SLF4J Adapter ..................... SKIPPED
[INFO] Apache Log4j Commons Logging Bridge ............... SKIPPED
[INFO] Apache Log4j Flume NG Bridge ...................... SKIPPED
[INFO] Apache Log4j Tag Library .......................... SKIPPED
[INFO] Apache Log4j JMX GUI .............................. SKIPPED
[INFO] Apache Log4j Samples .............................. SKIPPED
[INFO] Apache Log4j Samples: Flume - Common .............. SKIPPED
[INFO] Apache Log4j Samples: Flume - Remote .............. SKIPPED
[INFO] Apache Log4j Samples: Flume - Embedded ............ SKIPPED
[INFO] Apache Log4j 2 BOM ................................ SKIPPED
[INFO] Apache Log4j NoSQL ................................ SKIPPED
[INFO] Apache Log4j Web .................................. SKIPPED
[INFO] Apache Log4J Performance Tests .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.202s
[INFO] Finished at: Sun Jun 29 12:52:27 MST 2014
[INFO] Final Memory: 31M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler -plugin:3.1:testCompile (default-testCompile) on project log4j-core: Compilation failure
[ERROR] /Users/SmartOffers/Documents/log4j2-trunk/log4j/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java:[177,13] variable _averageOpsPerSec might already have been assigned
答案 0 :(得分:0)
该错误来自单元测试
您可以启用-Dmaven.test.skip
mvn clean install -Dmaven.test.skip=true