为了账号安全,请及时绑定邮箱和手机立即绑定

mvn compile报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2
.6:resources (default-resources) on project maven01-model: Execution default-res
ources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources fai
led: A required class was missing while executing org.apache.maven.plugins:maven
-resources-plugin:2.6:resources: org/codehaus/plexus/util/Scanner
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-resources-plugin:2.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/p
lugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar
[ERROR] urls[1] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/r
eporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
[ERROR] urls[2] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/d
oxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
[ERROR] urls[3] = file:/C:/Users/Administrator/.m2/repository/commons-cli/common
s-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[4] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu
s/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[5] = file:/C:/Users/Administrator/.m2/repository/junit/junit/3.8.1/
junit-3.8.1.jar
[ERROR] urls[6] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu
s/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] urls[7] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/s
hared/maven-filtering/1.1/maven-filtering-1.1.jar
[ERROR] urls[8] = file:/C:/Users/Administrator/.m2/repository/org/sonatype/plexu
s/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
[ERROR] urls[9] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu
s/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.codehaus.plex
us.util.Scanner
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException

F:\Maven3.3.3\code\maven01>

正在回答

1 回答

mvn clean 一下再编译

0 回复 有任何疑惑可以回复我~
#1

qq_未央_26

厉害 成功了
2017-02-22 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

mvn compile报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信