洞察金融行业需要转型,如何利用鸿蒙app开发提升运营效率
1017
2023-03-16
Eclipse中配置Maven build打包的方法步骤
目的:在Eclipse中配置Maven build打包
项目右击-->Run As-->Run Configurations
在左侧Maven Build下选中自己的工程名
然后在右侧Goals输入框中输入“clean package”
点击Apply完成配置,如图
注意:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.622 s
[INFO] Finished at: 2016-05-04T10:42:01+08:00
[INFO] Final Memory: 12M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to exeTiwsUlCncute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hys-api: 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
遇到如上报错,经排查发现:Window-->Preferences-->java-->Installed JREs 下安装的是jre,开发需要jdk。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~