---
title: "Manage Java transitive dependencies with Lightwell rebuilds"
description: "Java’s pinned version model and deeply nested transitive dependency trees make automated security patching difficult. Traditional update tools like Dependabot handle only direct dependencies, leaving the majority of the supply chain unpatched. Lightwell offers security-focused rebuilds of open source Java libraries to address vulnerabilities in transitive dependencies, such as a core Java framework zero-day flaw. The post outlines three integration strategies: manual discovery via the Lightwell catalog, targeted dependency analysis that generates a report of available rebuilds, and automated BOM generation that pins transitive dependencies to hardened versions. A reference script, pin-transitives.mjs, demonstrates how to produce a bill of materials that can be imported into Maven builds, with a comparison matrix showing trade-offs in setup effort and governance control."
---

# Manage Java transitive dependencies with Lightwell rebuilds

[Red Hat](https://yomu.fyi/company/red-hat) · Matej Marušák · Nov 3, 2026

**Type:** Problem & solution

## Summary

Java’s pinned version model and deeply nested transitive dependency trees make automated security patching difficult. Traditional update tools like Dependabot handle only direct dependencies, leaving the majority of the supply chain unpatched. Lightwell offers security-focused rebuilds of open source Java libraries to address vulnerabilities in transitive dependencies, such as a core Java framework zero-day flaw. The post outlines three integration strategies: manual discovery via the Lightwell catalog, targeted dependency analysis that generates a report of available rebuilds, and automated BOM generation that pins transitive dependencies to hardened versions. A reference script, pin-transitives.mjs, demonstrates how to produce a bill of materials that can be imported into Maven builds, with a comparison matrix showing trade-offs in setup effort and governance control.

## Context

Java’s pinned version model and deeply nested transitive dependency trees make automated security patching difficult, leaving the majority of the supply chain unpatched when only direct dependencies are updated.

## Approach / What changed

Lightwell provides security-focused rebuilds of open source Java libraries. Teams can integrate them via manual discovery (UI/API), targeted dependency analysis (report generation), or automated BOM generation using a reference script (pin-transitives.mjs) that produces a bill of materials for Maven builds.

## Takeaways

- Java build tools like Maven and Gradle default to strictly pinned versions, preventing automatic updates of transitive dependencies.
- Lightwell offers three integration strategies: manual discovery, targeted dependency analysis, and automated BOM generation, each with different trade-offs in setup effort and governance control.
- The pin-transitives.mjs script can analyze the transitive dependency tree and generate a BOM file that pins standard packages to Lightwell rebuilds, which can be imported into Maven builds.

## FAQ

### Why can't traditional tools patch Java transitive dependencies?

Java build tools like Maven and Gradle default to strictly pinned versions, so tools like Dependabot only handle direct dependencies and cannot automatically update transitive dependencies.

### What are the three integration strategies for Lightwell rebuilds?

The three strategies are: manual discovery via the Lightwell catalog, targeted dependency analysis that generates a report of available rebuilds, and automated BOM generation that pins transitive dependencies to hardened versions.

### How does the BOM generation strategy work?

The pin-transitives.mjs script evaluates the dependency tree against the Lightwell catalog and generates a lightwell-pins.xml file with dependencyManagement declarations. This BOM can be imported into Maven builds to enforce patched versions.

**Tags:** [Java](https://yomu.fyi/topic/java), [Lightwell](https://yomu.fyi/topic/lightwell), [Maven](https://yomu.fyi/topic/maven), [Security](https://yomu.fyi/topic/security)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/11/03/manage-java-transitive-dependencies-lightwell-rebuilds)
- Source URL: https://developers.redhat.com/articles/2026/11/03/manage-java-transitive-dependencies-lightwell-rebuilds
- Ingested by Yomu: 2026-11-03T18:01:10.739Z

[Read original post](https://developers.redhat.com/articles/2026/11/03/manage-java-transitive-dependencies-lightwell-rebuilds)
