【问题标题】:Running MVN INSTALL with OPENCMIS使用 OPENCMIS 运行 MVN INSTALL
【发布时间】:2021-12-14 22:54:12
【问题描述】:

我正在尝试按照 Apache 的说明设置 OpenCMIS InMemory 存储库,但在运行 Maven 命令mvn clean install -Dmaven.test.skip=true 时不断收到以下错误。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project chemistry-opencmis-client-bindings: Compilation failure
[ERROR] /home/openkm/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/ClientVersion.java:[29,16] error: cannot find symbol
[ERROR] symbol:   method getDefinedPackage(String)
[ERROR] location: class ClassLoader
[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 :chemistry-opencmis-client-bindings

【问题讨论】:

  • En inglés por青睐。
  • 您可以通过标签下的编辑链接编辑您的问题。
  • 请添加指向您提到的说明的链接。你确定你在你的 POM 中声明了所有必要的&lt;dependency&gt;s 吗?
  • 您确定要自己构建,而不是只使用自己项目中的库吗?
  • 没关系,非常感谢您的帮助

标签: java maven opencmis openkm


【解决方案1】:

OpenCMIS Server Development Guide (2nd Edition) PDF 的最后一次技术更新是从 2014 年开始的,POM of the sample project 包含:

                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <target>1.7</target>
                    <source>1.7</source>

这已经完全过时了,而且肯定不适用于更新的 JDK。

【讨论】:

    猜你喜欢
    • 2021-09-28
    • 2021-04-23
    • 2019-06-17
    • 2013-11-16
    • 2013-11-22
    • 2011-10-06
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    相关资源
    最近更新 更多