执行maven命令 clean tomcat7:run 报错
[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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
export JAVA_HOME=/path/to/java/
clean install tomcat7:run
在右侧maven projects中的install安装了吗
设置了jre,去偏好设置那里设置jdk的路径
a jre rather than a jdk
设置了
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
应该是jdk或者jre 没设置
[INFO] e3-manager-pojo .................................... FAILURE [ 0.792 s]