maven - maven 安装后我的项目没有出现在 jBPM WorkItem Repository 中
问题描述
我想为一个应用程序开发多个自定义 WorkItem,并且我想将它们存储在 jBPM WorkItem Repository 的一个实例上。 本教程描述了获取此存储库上可用的任何自定义工作项的步骤。我按照教程没有任何错误消息,但最后,我的自定义 WorkItem 没有出现在存储库中。
这正是我所做的步骤。
- 设置项目并创建工作项
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”消息。
将我的项目添加到 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.
我尝试删除该目录并再次编译,但它也不起作用。
解决方案
推荐阅读
- python - 如果 col 为空字符串,则将相邻列也设为空
- javascript - 如何使用浏览器端 javascript 将具有编码高度值的 32 位 RGB png 转换为 16 位 png?
- sql - 如何连接三个表并将空白字段设置为空?
- javascript - 在javascript中一张一张的随机图像生成器
- java - java spring mvc web项目找不到路由-请求的资源不可用
- css - 如果容器不是直接的子对象,如何定位容器中父对象的第一个子对象
- javascript - 如何在其他页面上动态插入mainpage.html的页眉和页脚?
- powershell - Powershell在另一个变量中使用的变量中转义引号
- go - 是一个错误:flag.Parse() 在 bool arg 之后无法获取值?
- php - 在 PHP while 循环中增加表项 ID 并显示其他表项