【发布时间】:2018-09-27 13:16:38
【问题描述】:
我想为 Alfresco 开发一个票务系统插件,
我是 Alfresco 的新手,所以开始时遇到了一些麻烦
我已经下载了 maven 并设置了路径 var 也适用于 java 和 javac
现在我使用命令安装了一个简单的 Maven 项目
mvn archetype:generate -Dfilter=org.alfresco:
一切安装正常。 然后我尝试使用命令
mvn install
但我得到了错误:
[INFO] Compiling 3 source files to E:\HTL\Alfresco\maven_projects\quick-
start-project\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: 5.473 s
[INFO] Finished at: 2018-04-17T15:58:33+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5:compile (default-compile) on project quick-start-project: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[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
我也尝试在我的文件夹中运行 run.bat 文件,但它在一段时间后关闭并出现错误!
任何人都可以帮助我并提供一些开始为 Alfresco 进行开发的技巧吗?
【问题讨论】: