Is there any alternative to use Gradle instead Maven in RHPAM?

Solution Unverified - Updated -

Issue

Given that a multi module Maven project that has a jbpm sub-module with multiple kjar containers, this Maven project using jbpm custom kjar deployer which uses Maven internally to fetch the kjar artifacts from .m2 folder. There is a migration process to Gradle from Maven, so now there is a multi module Gradle project based on the same structure as Maven. When the project is being built using Gradle and running the container the custom kjar deployer is trying to find the kjars from .m2 folder. However since Gradle is being used the .m2 folder is not available so the kjar does not gets deployed and the bpm engine container fails to start. Is there any alternative to use Gradle instead Maven in RHPAM?

Started KieContainerDeploymentTest in 20.609 seconds (JVM running for 23.223)
    2022-07-26 14:36:10.235  INFO 521 --- [    Test worker] c.d.c.b.config.KieServerDeployer         : Kie Containers listed for deployments :: [Kjar{groupId='com.db.rca.commons', artifactId='jbpm-test', version='1.0.1', containerId='commons-test-application-1.0', alias='commons-test-application'}, Kjar{groupId='com.db.rca.commons', artifactId='jbpm-test', version='1.0.1', containerId='commons-test-application-2.0', alias='commons-test-application-v2'}]
    2022-07-26 14:36:10.239  INFO 521 --- [    Test worker] c.d.c.b.config.KieServerDeployer         : Deploying KIE Container : Kjar{groupId='com.db.rca.commons', artifactId='jbpm-test', version='1.0.1', containerId='commons-test-application-1.0', alias='commons-test-application'} using custom deployer
    2022-07-26 14:36:10.286  WARN 521 --- [    Test worker] o.a.m.i.embedder.MavenSettings           : Environment variable M2_HOME is not set
    2022-07-26 14:36:12.424  INFO 521 --- [    Test worker] org.appformer.maven.integration.Aether   : The local repository directory /home/default/.m2/repository doesn't exist. Creating it.
    2022-07-26 14:36:32.692  WARN 521 --- [    Test worker] o.a.maven.integration.MavenRepository    : Unable to resolve artifact: com.db.rca.commons:jbpm-test:1.0.1
    2022-07-26 14:36:52.723  WARN 521 --- [    Test worker] o.a.maven.integration.MavenRepository    : Unable to resolve artifact: com.db.rca.commons:jbpm-test:pom:1.0.1
    2022-07-26 14:36:52.741 ERROR 521 --- [    Test worker] o.k.server.services.impl.KieServerImpl   : Error creating container 'commons-test-application-1.0' for module 'com.db.rca.commons:jbpm-test:1.0.1'

    java.lang.RuntimeException: Cannot find KieModule: com.db.rca.commons:jbpm-test:1.0.1 

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.8.1

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