Skip to content

[Backport] MLE-32258: generate SBOM and notice artifacts 11.3 - #636

Merged
SiddharthMaheshB merged 3 commits into
develop-11.3from
MLE-32258-generate-SBOM-and-Notice-artifacts-11.3
Nov 3, 2026
Merged

SiddharthMaheshB merged 3 commits into
develop-11.3from
MLE-32258-generate-SBOM-and-Notice-artifacts-11.3

Conversation

@SiddharthMaheshB

Copy link
Copy Markdown
Contributor

Summary (required):

MLCP builds did not produce an SBOM or a legal notice file in deliverable/. This adds both to the existing make_deliverable step, so mvn clean package -DskipTests=true produces them next to the zips. It also commits the Black Duck-generated SBOM (SBOM.spdx.json, 12.1.0). It affects the MLCP build and release artifacts.

Type of Change (required):

  • New feature
  • Bug fix
  • Refactor / code improvement
  • Library upgrade
  • Test additions or updates
  • Documentation updates
  • Build / CI changes
  • Product notice / release related
  • Other (Please explain)

Approach / Implementation Notes (optional):

  • In the make_deliverable antrun execution (package phase), after the zip copy, SBOM.spdx.json is copied to deliverable/mlcp-${project.version}.spdx.json. NOTICE.txt is copied to deliverable/Legal_Notice_File_for_Progress_MarkLogic_Content_Pump_${project.version}.txt.
  • Both copies use overwrite="true" and no failonerror override, so a missing source fails the build. Ant chmod then sets mode 644 on both outputs.
  • Names use ${project.version}, so they match the zips and pick up the dated version that the nightly sets with versions:set.
  • SBOM.spdx.json must be committed in the repo root next to NOTICE.txt. This is why it is in the same commit.

Backward Incompatibility (optional):

None for users or the zip contents. The build now requires SBOM.spdx.json in the repo root and fails at the package step if it is missing.

Build Validation (required):

  • make successful
  • make checkin successful
  • Not applicable (Please explain)

MLCP is built with Maven, not make. Validated with mvn clean package -DskipTests=true (JDK 11, Maven 3.9.12); see Manual validation below.

Tests Covered (required):

  • Manual validation

    mvn clean package -DskipTests=true produced the two zips, mlcp-12.2.spdx.json and Legal_Notice_File_for_Progress_MarkLogic_Content_Pump_12.2.txt. Both new files are mode 644. cmp shows each output identical to its source, and python3 -m json.tool accepts the SBOM. mvn clean removes deliverable/. With the SBOM missing, the build fails with "Could not find file .../SBOM.spdx.json to copy".

  • Existing regression suites

  • New regression tests

  • Not applicable (Please explain)

Additional Notes (optional):

  • The committed SBOM is generated for 12.1.0. The develop build is 12.2, so the output is named mlcp-12.2.spdx.json.
  • No performance impact is expected. Two small file copies are added to the package phase.

References (optional):

  • MLE-32254, MLE-32257: Similar changes to XDMP and XCC make commands

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The SBOM lists dependency versions that differ from the actual 11.3 distribution, compromising downstream vulnerability and compliance checks and requiring regeneration from the distribution.

1 open issue
What changed in this PR

This backport adds SBOM and legal notice artifacts to MLCP’s existing Maven release packaging for 11.3.

Changes:

  • Copies the committed SBOM and notice into deliverable/ with versioned filenames and mode 644.
  • Includes the SBOM in the source distribution.
  • Expands copyright-check exclusions for the SBOM and build descriptors.
File Description
src/​assemble/​srcdist.xml Includes the SBOM in the source archive.
SBOM.spdx.json Adds a Black Duck-generated SPDX inventory labeled 12.1.0.
pom.xml Copies and sets permissions on the two new release artifacts.
.copyrightconfig Excludes the SBOM and two XML build files from copyright checks.

Review effort: Balanced

Comment thread SBOM.spdx.json Resolved
@SiddharthMaheshB
SiddharthMaheshB force-pushed the MLE-32258-generate-SBOM-and-Notice-artifacts-11.3 branch from a1ca6fc to 596c3a9 Compare November 2, 2026 09:48
@SiddharthMaheshB
SiddharthMaheshB requested a balanced review from Copilot November 2, 2026 09:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The SBOM misidentifies the shipped Commons Logging artifact and Commons CSV fork version, causing downstream inventory, license, and vulnerability tools to match the wrong packages.

3 open issues

Review effort: Balanced

Comment thread SBOM.spdx.json Resolved
Comment thread SBOM.spdx.json Resolved
@SiddharthMaheshB
SiddharthMaheshB merged commit 34ad4ab into develop-11.3 Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants