我的Maven是3.9照老师编程报错?
编码出现的错误,不知在哪里错了?大家帮忙看看?
编码出现的错误,不知在哪里错了?大家帮忙看看?
2016-12-07
我用的是3.5.2的版本,代码和这位同学相同,报错
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/moocwork/code/maven01/src/test/java/com/imooc/maven01/model/HelloWor
dTest.java:[6,8] 类HelloWorldTest是公共的, 应在名为 HelloWorldTest.java 的文件中
声明
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.175 s
[INFO] Finished at: 2017-12-29T00:46:48+08:00
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:testCompile (default-testCompile) on project maven01-model: Compilation failur
e
[ERROR] /D:/moocwork/code/maven01/src/test/java/com/imooc/maven01/model/HelloWor
dTest.java:[6,8] 类HelloWorldTest是公共的, 应在名为 HelloWorldTest.java 的文件中
声明
举报