Deploy REST API of business-central fails in BPMS 6

Solution Unverified - Updated -


Currently customer is create brms rules programatically and deploy them using below Rest API.

[POST] /repositories/REPOSITORY_NAME/projects/PROJECT_NAME/maven/deploy/

In 6.4 when we build project multiple times without updating version then to replace existing kjar from maven repository we have to select 'Override' option through GUI, but such option is not available with REST API. For REST API deploy command fails.

Steps to replicate:
1. Create simple project in business-central
2. Build it multiple times through REST API, like as:

1st attempt:

[abhumbe@abhumbe bin]$ curl -X POST  -u 'bpmsAdmin:admin12@' -H 'Content-type: application/json'  'http://localhost:8080/business-central/rest/repositories/repository1/projects/Demo2/maven/deploy'

2nd attempt:

[abhumbe@abhumbe bin]$ curl -X POST  -u 'bpmsAdmin:admin12@' -H 'Content-type: application/json'  'http://localhost:8080/business-central/rest/repositories/repository1/projects/Demo2/maven/deploy'
  1. Check JOBID:
[abhumbe@abhumbe bin]$ curl -X GET -u 'bpmsAdmin:admin12@' -H 'Content-type: application/json'  'http://localhost:8080/business-central/rest/jobs/1505486378327-2'
{"status":"DUPLICATE_RESOURCE","jobId":"1505486378327-2","result":"Project's GAV [example:Demo2:1.022] already exists at [local : /NotBackedUp/Download/jbpm-maven-repo : LOCAL, guvnor-m2-repo : http://localhost:8080/business-central/maven2/ : SETTINGS ]","lastModified":1505486380104,"detailedResult":null}

Output of second attempt show deployment is successful, but actually its not. It should log exception in server.log file.


  • Red Hat JBoss BRMS
    • 6.4.x
  • Red Hat JBoss BPMS
    • 6.4.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In