Maven error while pulling kjar dependencies during s2i build for RHDM on OpenShift

Solution Unverified - Updated -

Issue

  • I get the following error while building
KIE_SERVER_CONTAINER_DEPLOYMENT: xxx-rules:com.example:xxx-rules-1:1.0.2
KIE_SERVER_CONTAINER_DEPLOYMENT_ORIGINAL:
KIE_SERVER_CONTAINER_DEPLOYMENT_OVERRIDE:
KIE_SERVER_CONTAINER_DEPLOYMENT_COUNT: 1
KIE_SERVER_CONTAINER_ID_0: xxx-rules:com.example:xxx-rules-1:1.0.2
KIE_SERVER_CONTAINER_KJAR_GROUP_ID_0:
KIE_SERVER_CONTAINER_KJAR_ARTIFACT_ID_0:
KIE_SERVER_CONTAINER_KJAR_VERSION_0:
INFO Attempting to pull dependencies for kjar 0 with 'mvn -e -DskipTests dependency:go-offline -f pull-pom-0-xxxxxxx.xml --batch-mode -Djava.net.preferIPv4Stack=true -Popenshift -Dcom.redhat.xpaas.repo.redhatga '
INFO Using MAVEN_OPTS '-XX:+UseParallelOldGC -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:+ExitOnOutOfMemoryError'
INFO Using Apache Maven 3.5.0 (Red Hat 3.5.0-4.3)
Maven home: /opt/rh/rh-maven35/root/usr/share/maven
Java version: 1.8.0_191, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.10.0-862.14.4.el7.x86_64", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.artifactId' for ::jar is missing. @ line 10, column 25
[ERROR] 'dependencies.dependency.groupId' for ::jar is missing. @ line 9, column 22
[ERROR] 'dependencies.dependency.version' for ::jar is missing. @ line 11, column 22

Environment

  • Red Hat Decision Manager
    • 7.1
    • rhdm71-prod-immutable-kieserver
  • OpenShift

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