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

mvn compile编译失败,求指点!!!

C:\moocwork\code\maven01>mvn compile

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building maven01-model 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ maven01-mo

del ---

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e

. build is platform dependent!

[INFO] skip non existing resourceDirectory C:\moocwork\code\maven01\src\main\res

ources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ maven01-model

 ---

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. buil

d is platform dependent!

[INFO] Compiling 1 source file to C:\moocwork\code\maven01\target\classes

[INFO] -------------------------------------------------------------

[ERROR] COMPILATION ERROR :

[INFO] -------------------------------------------------------------

[ERROR] \moocwork\code\maven01\src\main\java\com\imooc\maven01\model\HelloWorld.

java:[4,8] 错误: 找不到符号

[INFO] 1 error

[INFO] -------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.313s

[INFO] Finished at: Thu Jul 06 08:00:11 CST 2017

[INFO] Final Memory: 11M/106M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.

3.2:compile (default-compile) on project maven01-model: Compilation failure

[ERROR] \moocwork\code\maven01\src\main\java\com\imooc\maven01\model\HelloWorld.

java:[4,8] 错误: 找不到符号

[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/MojoFailureExc

eption

C:\moocwork\code\maven01>


正在回答

1 回答

\moocwork\code\maven01\src\main\java\com\imooc\maven01\model\HelloWorld.

java:[4,8] 错误: 找不到符号

HelloWorld.java第四行,具体什么自己看

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

举报

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

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

进入课程

mvn compile编译失败,求指点!!!

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