0

我试图从我的“服务器”中的远程存储库构建一个 kiecontainer;

String url  = "http://Server:8080/jbpm-console/maven2/pt/powergrid/UtilityOperationProcesses/1.0/UtilityOperationProcesses-1.0.jar";
    ReleaseIdImpl releaseId = new ReleaseIdImpl("pt.powergrid", "UtilityOperationProcesses", "1.0");
    KieServices ks = KieServices.Factory.get();
    ks.getResources().newUrlResource(url);
    KieContainer kieContainer = ks.newKieContainer(releaseId);

但我有这个例外:

Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: number of transferred bytes cannot be negative

任何想法?

4

1 回答 1

0

我相信如果找不到 jar,您会收到此错误,您应该配置可以找到它的 maven 存储库,方法是将其添加到您的 HOME_FOLDER/.m2/settings.xml 或传递在哪里找到您的自定义 settings.xml 使用-Dkie.maven.settings.custom=CUSTOM_LOCATION_HERE/settings.xml

例如,看看https://github.com/krisv/jbpm-evaluation-examples/tree/master/kjar-from-guvnor

于 2014-10-06T22:25:37.213 回答