我的maven日志记录在哪里,我只是尝试使用oracle java build 1.8.0_66-b17在我的centos6.5上将3.3.9安装到/ usr / local / maven中,当我输入时,我得到以下内容:mvn
或当我按照安装指南尝试使用mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
创建项目时。几个小时后或重新安装和清理我认为的问题,仍然得到相同的警告。
log4j:WARN No appenders could be found for logger (org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)
(编辑) 看起来当我用3.0.4尝试它时,我仍然得到无记录器警告,但至少它成功构建。仍然不确定为什么新版本会失败:
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: /ebs/mvn_test
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: /ebs/mvn_test/my-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.132s
[INFO] Finished at: Sat Nov 28 19:59:19 UTC 2015
[INFO] Final Memory: 16M/1846M
[INFO] ------------------------------------------------------------------------