我知道它的旧帖子,但可能对其他人有用。LATEST 不会在运行时更新规则,而是从本地加载 kjar。所以尝试增加版本号或使用 1-SNAPSHOT 之类的 SNAPSHOT。当您每次使用版本作为 SNAPSHOT 时,它都会检查最新的 kjar。还要检查下面的 settings.xml。
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>uf-playground</id>
<username>root</username>
<password>root</password>
<configuration>
<wagonProvider>httpclient</wagonProvider>
<httpConfiguration>
<all>
<usePreemptive>true</usePreemptive>
</all>
</httpConfiguration>
</configuration>
</server>
</servers>
<profiles>
<profile>
<id>profile-1</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>uf-playground</id>
<name>Drools workbench</name>
<url>http://localhost:8080/kie-drool-6.4/maven2/</url>
**<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>**
</repository>
</repositories>
</profile>
</profiles>
</settings>