gpt4 book ai didi

java - Maven安装guvnor找不到ResourceType变量

转载 作者:行者123 更新时间:2023-12-01 15:00:18 25 4
gpt4 key购买 nike

我尝试使用 mvn clean install -DskipTests 在 Ubuntu 系统上安装 drools guvnor,但收到如下错误输出:

[INFO] 39 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Guvnor multiproject ............................... SUCCESS [1.539s]
[INFO] kie-uberfire-bootstrap ............................ SUCCESS [5.865s]
[INFO] kie-project-editor ................................ SUCCESS [6.465s]
[INFO] Guvnor API ........................................ SUCCESS [1.993s]
[INFO] Guvnor repository connector multiproject .......... SUCCESS [0.056s]
[INFO] Guvnor repository connector JCR ................... SUCCESS [1.463s]
[INFO] Guvnor repository connector Jackrabbit ............ SUCCESS [1.920s]
[INFO] Guvnor repository connector ModeShape ............. SUCCESS [1.827s]
[INFO] Guvnor repository ................................. SUCCESS [8.587s]
[INFO] Drools and jBPM IDE common ........................ FAILURE [11.337s]
[INFO] Guvnor web application core ....................... SKIPPED
[INFO] Guvnor web application Drools ..................... SKIPPED
[INFO] Guvnor bulk importer .............................. SKIPPED
[INFO] Guvnor JCR to UberFire VFS migration .............. SKIPPED
[INFO] Guvnor examples ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.425s
[INFO] Finished at: Thu Dec 06 22:13:58 EET 2012
[INFO] Final Memory: 32M/78M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile) on project droolsjbpm-ide-common: Compilation failure: Compilation failure:
[ERROR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[ERROR] SLF4J: Defaulting to no-operation (NOP) logger implementation
[ERROR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/RangeConstraintMultipleOperatorsTest.java:[37,22] error: cannot find symbol
[ERROR] symbol: class ResourceType
[ERROR] location: package org.kie.builder
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/RangeConstraintSingleOperatorTest.java:[38,22] error: cannot find symbol
[...]
[ERROR] symbol: variable ResourceType
[ERROR] location: class MandatoryFieldConstraintTest
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/NotMatchesConstraintTest.java:[148,124] error: cannot find symbol
[...]

有什么想法为什么找不到ResourceType吗?

我使用的是 maven 3.0.4 和 java 1.7,并且我已经从 github.com/droolsjbpm 克隆了所有存储库

最佳答案

我遇到了同样的问题,并且我看到了可能相关的 commit在他们的 github 存储库中的文件上:

-import org.kie.builder.ResourceType;
+import org.kie.io.ResourceType;

所以他们可能稍微改变了他们的包裹。尝试更改文件内的内容,看看是否可以解决问题,今晚我会尽可能验证。

关于java - Maven安装guvnor找不到ResourceType变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13751990/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com