从外部存储库远程部署 jbpm-project
Remote deployment of jbpm-project from external repository
有一个外部存储库,它是安装了 jbpm 的同一 VM 上的独立应用程序。可以将 kjar 从它部署到 kie-workbench 单击新部署单元,但想以编程方式进行。你能建议什么方法?我发现了两种可能性,一种是使用 kie-config-cli.sh,但不幸的是它似乎不起作用,第二种是使用 Rest Api 和 /maven/deploy 命令,但出于这个目的应该已经在 kie-server 上创建了项目,这就是为什么我想避免这个。
1. 关于第一种方法:我正在使用 kie-config.cli 到 'add-deployment',输入所有相同的版本、groupId 和组织,就像我在 kie-workbench 本身中手动执行的一样,但没有出现在 kieworkbench(是的,settings.xml 知道我的外部存储库)。
提前致谢!
Jbpm 6.4.0.Final 在 Wildfly 8.2.0,Apache Archiva 2.2.1 在 Jetty
KIE 服务器允许它的完整生命周期。
the second with Rest Api with /maven/deploy command, but for this purpose it should be already created project on the kie-server, that's why I would like to avoid this one.
如果 "project" 是指 "container",则使用 HTTP PUT 方法创建容器:
http://(server)/(context)/services/rest/server/containers/(containerName)
使用 XML 请求类似:
<kie-container container-id="(containerName)">
<release-id>
<group-id>com.myCompany.productName</group-id>
<artifact-id>product-name-module-name</artifact-id>
<version>1.0</version>
</release-id>
</kie-container>
已经有一个 rest-api 用于此目的:
POST@ /rest/deployments/groupId:artifactId:version/deploy
BODY:
Header: Content-Type: application/xml
*settings.xml (maven) 在要部署的本地机器上,应该知道你的外部存储库以及 pom.xml 应该包含此信息(如果你用 'mvn deploy')!
部署到它
有一个外部存储库,它是安装了 jbpm 的同一 VM 上的独立应用程序。可以将 kjar 从它部署到 kie-workbench 单击新部署单元,但想以编程方式进行。你能建议什么方法?我发现了两种可能性,一种是使用 kie-config-cli.sh,但不幸的是它似乎不起作用,第二种是使用 Rest Api 和 /maven/deploy 命令,但出于这个目的应该已经在 kie-server 上创建了项目,这就是为什么我想避免这个。 1. 关于第一种方法:我正在使用 kie-config.cli 到 'add-deployment',输入所有相同的版本、groupId 和组织,就像我在 kie-workbench 本身中手动执行的一样,但没有出现在 kieworkbench(是的,settings.xml 知道我的外部存储库)。
提前致谢!
Jbpm 6.4.0.Final 在 Wildfly 8.2.0,Apache Archiva 2.2.1 在 Jetty
KIE 服务器允许它的完整生命周期。
the second with Rest Api with /maven/deploy command, but for this purpose it should be already created project on the kie-server, that's why I would like to avoid this one.
如果 "project" 是指 "container",则使用 HTTP PUT 方法创建容器: http://(server)/(context)/services/rest/server/containers/(containerName)
使用 XML 请求类似:
<kie-container container-id="(containerName)">
<release-id>
<group-id>com.myCompany.productName</group-id>
<artifact-id>product-name-module-name</artifact-id>
<version>1.0</version>
</release-id>
</kie-container>
已经有一个 rest-api 用于此目的: POST@ /rest/deployments/groupId:artifactId:version/deploy BODY: Header: Content-Type: application/xml
*settings.xml (maven) 在要部署的本地机器上,应该知道你的外部存储库以及 pom.xml 应该包含此信息(如果你用 'mvn deploy')!
部署到它