【问题标题】:Alfresco-Addon Java露天插件 Java
【发布时间】: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 进行开发的技巧吗?

【问题讨论】:

    标签: java alfresco add-on


    【解决方案1】:

    请试试这个

    在您的 Eclipse IDE 上,进入 Window > Preferences > Java > Installed JREs > 并检查您安装的 JRE。

    那里应该有一个带有 JDK 的条目。 选择执行环境,如下所示。 点击确定

    然后右键单击您的项目 -> Maven -> 更新项目

    然后选择jdk

    参考这个community link 可能对你有帮助

    【讨论】:

    • 是的,成功构建,现在正在运行
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多