露天插件 Java
Alfresco-Addon Java
我想为 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 开发的提示吗?
请试试这个
在您的 Eclipse IDE 上,进入 Window > 首选项 > Java > 安装的 JRE >
并检查您安装的 JRE。
你应该有一个带有 JDK 的条目。
Select 执行环境如下所示。
单击确定
然后右键单击您的 项目 -> Maven -> 更新项目
和selectjdk
参考这个community link可能对你有帮助
我想为 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 开发的提示吗?
请试试这个
在您的 Eclipse IDE 上,进入 Window > 首选项 > Java > 安装的 JRE > 并检查您安装的 JRE。
你应该有一个带有 JDK 的条目。 Select 执行环境如下所示。 单击确定
然后右键单击您的 项目 -> Maven -> 更新项目
和selectjdk
参考这个community link可能对你有帮助