请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

mvn clean package报错

mvn clean package报错
mvn clean package -Dmaven.test.skip=true也是报错
打war包

D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>
D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>mvn clean package -Dmaven.test.skip=true
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building miaosha 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.6.1:clean (default-clean) @ miaosha —
[INFO] Deleting D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\target
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ miaosha —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\src\main\resources
[INFO] skip non existing resourceDirectory D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\src\main\resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ miaosha —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 60 source files to D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.882 s
[INFO] Finished at: 2019-02-18T17:44:51+08:00
[INFO] Final Memory: 19M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project miaosha: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>

正在回答 回答被采纳积分+3

1回答

若鱼1919 2019-02-19 08:51:48

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

没有配置好java的环境变量

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号