首页 > 解决方案 > maven 安装后我的项目没有出现在 jBPM WorkItem Repository 中

问题描述

我想为一个应用程序开发多个自定义 WorkItem,并且我想将它们存储在 jBPM WorkItem Repository 的一个实例上。 本教程描述了获取此存储库上可用的任何自定义工作项的步骤。我按照教程没有任何错误消息,但最后,我的自定义 WorkItem 没有出现在存储库中。

这正是我所做的步骤。

  1. 设置项目并创建工作项
    • git clone https://github.com/kiegroup/jbpm-work-items
    • mvn archetype:generate -DarchetypeGroupId=org.jbpm -DarchetypeArtifactId=jbpm-workitems-archetype -DarchetypeVersion=7.26.0-SNAPSHOT -DgroupId=org.jbpm.contrib -DartifactId=generated-custom-workitem -DclassPrefix=GeneratedCustom -Dversion=7.26.0-SNAPSHOT -DarchetypeCatalog=local
    • 在我的 IDE 中导入项目并添加“Hello World”消息。
  2. 将我的项目添加到 jBPM WorkItem Repository

    • 将这些行添加到 ./pom.xml 的 <dependency> 标记中。

      <dependency> <groupId>org.jbpm.contrib</groupId> <artifactId>generated-custom-workitem</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.jbpm.contrib</groupId> <artifactId>generated-custom-workitem</artifactId> <version>${project.version}</version> <type>zip</type> </dependency>

    • 将这些行添加到第一个 <dependency> 标记中的 ./repository/pom.xml。

      <dependency> <groupId>org.jbpm.contrib</groupId> <artifactId>generated-custom-workitem</artifactId> <type>zip</type> </dependency>

    • mvn clean install

      我获得了每个模块(包括我的模块和整个构建)的成功状态。

    • cd repository-springboot

      mvn spring-boot:run

    • 转到http://localhost:8090/repository

我希望我的自定义工作项在列表中。但是工作项既不在在线存储库中,也不在以下目录 ./repository/target/repository-7.26.0-SNAPSHOT/ 中。

为了使我的工作项可用,我应该更正什么?

我的工作项收到以下警告消息:

[WARNING] No SupportedSourceVersion annotation found on org.jbpm.process.workitem.core.util.WidProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'org.jbpm.process.workitem.core.util.WidProcessor' less than -source '1.8'
[WARNING] The following options were not recognized by any processor: '[templateResources, widsResources, widName, generateTemplates, generateWids]'

我收到所有其他工作项的这些消息。还有另一条警告消息:

[WARNING] Assembly file: /Users/myuser/tests/jbpm-workitems-tests/workitem-test3/jbpm-work-items/generated-custom-workitem/target/generated-custom-workitem-7.26.0-SNAPSHOT is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.

我尝试删除该目录并再次编译,但它也不起作用。

标签: mavenrepositorypom.xmljbpmparent-pom

解决方案


推荐阅读