0

我正在开发 Drolls 6.1.0.Final。而且我的最新资产没有加载。我们在 KIE-Workbench 6.1.0.Final 中创建了一个包含 5 条规则的 kJar 1.0。我们使用具有 ReleaseId(gtoup, Artifact, LATEST) 的 KContainer 启动我们的应用程序服务器。规则正在触发。现在在工作台中添加另一个规则,增加 kJar 版本 1.1 并执行构建和部署。等待 5 分钟后触发应用程序中的规则,最新版本未下载到 m2 本地 repo 中,旧规则被触发。我什至尝试将 maven 的更新策略设置为间隔:1,但徒劳无功。

只有当我手动更改最新版本并在本地 m2 存储库中的 metadata.xml 中最后更新时,才会触发 KIE 扫描仪。在这种情况下,KIE Scanner 会加载新规则。

请让我们知道需要做什么。

类似问题 https://issues.jboss.org/browse/DROOLS-477

4

1 回答 1

0

我知道它的旧帖子,但可能对其他人有用。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> 
于 2016-12-05T13:42:19.773 回答