2016-06-28 52 views
1

使用Jbpm的从这里6.4.0完整安装程序:http://www.jbpm.org/download/download.html项目生成错误:未知包装:kjar

1)开始演示:使用eclipse蚂蚁start.demo

2),创建一个新的jBPM项目jBPM的操场6.3和选择的翻译项目

enter image description here

3)行家性质添加到项目

4)尝试安装/编译就可以看到问题的选项卡上以下错误:

enter image description here

Project build error: Unknown packaging: kjar

问题是:什么是kjar包装?项目如何在演示环境中工作?

我的Eclipse是:

enter image description here

编辑:

我发现什么是kjar,尤其是这个零件的官方文档定义:

Version 6, on the other hand moves away from proprietary packages in favor of, well known and mature, Apache Maven based packaging - known as knowledge archives - kjar. Processes, rules etc (aka business assets) are now part of a simple jar file built and managed by Maven. Along the business assets, java classes and other file types are stored in the jar file too. Moreover, as any other maven artifact, kjar can have defined dependencies on other artifacts including other kjars. What makes the kjar special when compared with regular jars is a single descriptor file kept inside META-INF directory of the kjar - kmodule.xml. That descriptor allows to define:

  • knowledge bases and their properties

  • knowledge sessions and their properties

  • work item handlers

  • event listeners

By default, this descriptor is empty (just kmodule root element) and is considered as marker file. Whenever a runtime component (such as jbpm console) is about to process kjar it looks up kmodule.xml to build its runtime representation. In addition to kmodule.xml a deployment descriptor (that provides fine graind control over deployment) is available (since 6.1).

后读这个不清楚如何建立这些kjar,以及为什么jbpm的官方在线示例包含kjar作为包装价值e

回答

0

¿您是否测试注释该行是否有效? 只是注释行8: 更改此:

<packaging>kjar</packaging> 

到这一点:

<!-- <packaging>kjar</packaging> --> 

林不知道,但我认为有代码和文档之间的版本不匹配。我认为默认包装是jar,所以从配置中删除第8行将起作用。

+0

我试过了,但我的问题更多的是了解什么是kjar,为什么演示环境不工作 – Vokail