How to deploy external maven compiled jar to business-central via BPM Suite provided API ?

Solution Verified - Updated -

Issue

  • Could you please let us know the process for deploying the business process into business-central using REST API ?
  • Is that possible to upload an external maven compiled jar (kjar) into business-central ?
  • When we upload the jar to business-central, does business-central automatically deploys the kjar and makes the process available ?
  • We uploaded project into business-central maven repository using mvn deploy command and it deployed Success. But when I start a process after that its saying the No deployments available.
  • While deploying a kjar which have been built in a different BRMS or BPMS 6.x installation where the repository was of type managed cause following exceptions.
18:19:47,487 ERROR [org.kie.api.builder.KieScanner] (http-10.10.10.10:8080-5) Unable to create MavenProject from InputStream: org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for com.sample:Project1:1.0.0-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not transfer artifact com.sample:Project2:pom:1.0.0-SNAPSHOT from/to guvnor-m2-repo (http://localhost:8080/business-central/maven2/): Connection refused (Connection refused) @ line 5, column 11 for project com.sample:Project1:1.0.0-SNAPSHOT
...
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for com.sample:Project1:1.0.0-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not transfer artifact com.sample:Project2:pom:1.0.0-SNAPSHOT from/to guvnor-m2-repo (http://localhost:8080/business-central/maven2/): Connection refused (Connection refused) @ line 5, column 11
    at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195) [maven-model-builder-3.2.5.jar:3.2.5]
    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:930) [maven-model-builder-3.2.5.jar:3.2.5]
    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:751) [maven-model-builder-3.2.5.jar:3.2.5]
...

How to resolve this kind of issue?

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.1.x
    • 6.2.x
    • 6.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content