[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:\soft\workspace\e3-manager\e3-manager-pojo\target
[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:\soft\workspace\e3-manager\e3-manager-pojo\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] 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插件配置
[INFO]e3-manager-pojo....................................FAILURE[ 0.792s]
Nocompilerisprovidedinthisenvironment.PerhapsyouarerunningonaJREratherthanaJDK?
应该是jdk或者jre没设置
设置了ajreratherthanajdk
设置了jre,去偏好设置那里设置jdk的路径
在右侧mavenprojects中的install安装了吗
cleaninstalltomcat7:run
exportJAVA_HOME=/path/to/java/
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。