Maven:mvn安装后没有构建成功或[扫描项目]消息

时间:2017-04-17 13:35:50

标签: java maven

在运行输入mvn install或mvn clean install后,我没有对项目进行任何扫描或构建成功或构建失败消息。

LM-SFA-11002477:com.stubhub.mapreduce.hbasehexatodecimal navparmar$ mvn clean install
log4j:WARN No appenders could be found for logger (org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration).
log4j:WARN Please initialize the log4j system properly.
Downloading: https://mvnrepository.stubcorp.dev/nexus/content/groups/stubhub-public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
LM-SFA-11002477:target navparmar$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
 mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00)
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"

1 个答案:

答案 0 :(得分:-1)

您可能在项目中包含多个slf4j jar版本。请在pom.xml中找到依赖关系层次结构选项卡,并从pom.xml中排除不必要的jar版本。 如果您仍然遇到问题,请尝试以调试模式构建项目。因此,您将获得详细的错误说明。

  

mvn clean compile install -X