执行maven命令 clean tomcat7:run 报错

发布于 2021-12-01 02:14:31 字数 5395 浏览 800 评论 8

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] e3-manager
[INFO] e3-manager-pojo
[INFO] e3-manager-dao
[INFO] e3-manager-service
[INFO] e3-manager-interface
[INFO] e3-manager-web
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building e3-manager 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ e3-manager ---
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ e3-manager >>>
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ e3-manager <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ e3-manager ---
[INFO] Skipping non-war project
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building e3-manager-pojo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ e3-manager-pojo ---
[INFO] Deleting D:softworkspacee3-managere3-manager-pojotarget
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ e3-manager-pojo >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ e3-manager-pojo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ e3-manager-pojo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 22 source files to D:softworkspacee3-managere3-manager-pojotargetclasses
[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] Reactor Summary:
[INFO]
[INFO] e3-manager ......................................... SUCCESS [  1.369 s]
[INFO] e3-manager-pojo .................................... FAILURE [  0.792 s]
[INFO] e3-manager-dao ..................................... SKIPPED
[INFO] e3-manager-service ................................. SKIPPED
[INFO] e3-manager-interface ............................... SKIPPED
[INFO] e3-manager-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.718 s
[INFO] Finished at: 2017-07-17T21:38:12+08:00
[INFO] Final Memory: 14M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project e3-manager-pojo: 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :e3-manager-pojo

 

maven插件配置

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

输什么也不输骨气 2021-12-05 09:18:08

export JAVA_HOME=/path/to/java/

私藏温柔 2021-12-05 09:09:22

clean install tomcat7:run

千笙结 2021-12-05 09:02:33

在右侧maven projects中的install安装了吗

夜无邪 2021-12-05 07:05:25

设置了jre,去偏好设置那里设置jdk的路径

怎言笑 2021-12-05 01:56:10

a jre rather than a jdk

不乱于心 2021-12-05 01:17:46

设置了

一人独醉 2021-12-04 19:56:23

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

应该是jdk或者jre 没设置

少女情怀诗 2021-12-04 05:39:02

[INFO] e3-manager-pojo .................................... FAILURE [  0.792 s]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文