Skip to content

fix(deps): Avoid packaging of jackson-module-scala*.jar in distributions#2883

Merged
kthoms merged 1 commit into
mainfrom
issues/2875-exclude-jackson-module-scala
May 5, 2026
Merged

fix(deps): Avoid packaging of jackson-module-scala*.jar in distributions#2883
kthoms merged 1 commit into
mainfrom
issues/2875-exclude-jackson-module-scala

Conversation

@kthoms

@kthoms kthoms commented May 5, 2026

Copy link
Copy Markdown
Contributor

The presence of jackson-module-scala*.jar can cause a NoClassDefFoundError when present in the classpath before org.camunda.feel:feel-engine:scala-shaded. The dependency is excluded.

Added a verification step in module distro/run/assembly to assure that the library is not packaged.

Related to #2875

Copilot AI review requested due to automatic review settings May 5, 2026 00:44
@kthoms kthoms added this to the 2.1.1 milestone May 5, 2026
@kthoms kthoms self-assigned this May 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents jackson-module-scala*.jar from being packaged into Operaton distributions to avoid FEEL engine classloading issues (e.g., NoClassDefFoundError caused by unshaded Scala references when the jar appears earlier on the classpath).

Changes:

  • Exclude com.fasterxml.jackson.module:jackson-module-scala_2.13 from the transitive dependencies of org.camunda.feel:feel-engine:scala-shaded via the internal dependencies BOM.
  • Add a CI verification step in distro/run/assembly to assert the Run distribution’s internal/operaton-bpm.jar does not contain any jackson-module-scala*.jar under BOOT-INF/lib.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
distro/run/assembly/pom.xml Adds a GitHub CI-only verify-phase check that inspects the assembled Run zip/jar contents for unwanted jackson-module-scala*.jar.
bom/internal-dependencies/pom.xml Excludes jackson-module-scala_2.13 from the managed FEEL engine dependency to prevent it from being pulled/packaged transitively.

Comment thread bom/internal-dependencies/pom.xml Outdated
@kthoms kthoms added backport:patch-release Should be ported back to the latest feature release branch. dependencies:maven Updates of Maven dependencies scope:dmn Changes related to the DMN model & engine labels May 5, 2026
The presence of jackson-module-scala*.jar can cause a NoClassDefFoundError when present in the classpath before org.camunda.feel:feel-engine:scala-shaded. The dependency is excluded.

Added a verification step in module distro/run/assembly to assure that the library is not packaged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kthoms kthoms force-pushed the issues/2875-exclude-jackson-module-scala branch from 75d9a9b to b755188 Compare May 5, 2026 00:51
@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

@kthoms kthoms merged commit 7de9865 into main May 5, 2026
16 checks passed
@kthoms kthoms deleted the issues/2875-exclude-jackson-module-scala branch May 5, 2026 01:33
kthoms added a commit that referenced this pull request May 5, 2026
…ons (#2883)

The presence of jackson-module-scala*.jar can cause a NoClassDefFoundError when present in the classpath before org.camunda.feel:feel-engine:scala-shaded. The dependency is excluded.

Added a verification step in module distro/run/assembly to assure that the library is not packaged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 7de9865)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:patch-release Should be ported back to the latest feature release branch. dependencies:maven Updates of Maven dependencies scope:dmn Changes related to the DMN model & engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants