How to avoid online maven dependency in generated KJAR in BPMS/BRMS 6 ?

Solution Unverified - Updated -

Issue

  • We have Business-Central hosted in server machine#1 on which we develop our Rules projects.The artifacts to required by the project are made available to the rules by uploading them to the business central artifact repository.Whenever we do Build and deploy for the rules project, the generated KJAR has a pom.xml as follows:
. . . 
<dependencies>
  <dependency>
   <groupId>com.demo</groupId>
   <artifactId>demo-rules</artifactId>
   <version>1.0</version>
 </dependency>
</dependencies>
<repositories>
  <repository>
    <id>guvnor-m2-repo</id>
     <name>Guvnor M2 Repo</name>
     <url>http://10.10.10.10:8080/business-central/maven2/</url>
  </repository>
</repositories>

when we use the KJAR in server machine#2 which does not have access to machine#1, we face resolving exceptions for the dependent artifacts. We see that the KIE api set is trying to resolve this url and it takes quite some time:

<url>http://10.10.10.10:8080/business-central/maven2/</url>
  • How can we create an environment where KJAR is generated on machine#1 and all other machine#2 can use the KJAR without having to resolve to find the artifacts?

Environment

  • Red Hat JBoss BRMS
    • 6.0.x
  • Red Hat JBoss BPM Suite(BPMS)
    • 6.0.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