https://bz.apache.org/bugzilla/show_bug.cgi?id=70386
Bug ID: 70386
Summary: Improve machine-readable license metadata in
tomcat-servlet-api Maven POM
Product: Tomcat 10
Version: 10.1.62
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Packaging
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ------
The published Maven POM for org.apache.tomcat:tomcat-servlet-api:10.1.62 puts
three human-readable license names in one <license><name> and joins three URLs
with "and" in one <license><url>. The same pattern is present in the 10.1.x and
main POM templates. The POM comments identify which bundled schema files are
covered by CDDL 1.0 or EPL 2.0. The remaining files are covered by Apache
License 2.0.
This is difficult for tools that read Maven metadata to produce SBOMs. We
observed that the component's license was not resolved in our CycloneDX / OWASP
Dependency-Track workflow. The generated SBOM still needs to be checked to
determine whether the generator omitted or represented the license as free
text, or whether the issue occurred during import. The proposed metadata change
is independent of that diagnosis.
Could Tomcat retain a single <license> element and use the following value for
its <name>?
<name>Apache-2.0 AND CDDL-1.0 AND EPL-2.0</name>
This is a valid SPDX license expression for the distributed artifact as a
whole. It represents the licenses applying to different files in the artifact
together. It does not imply that every file is subject to all three licenses.
Maven's POM model accepts a string in this field, and tools that recognize SPDX
expressions can map it to the CycloneDX license expression field. Expression
recognition in a POM remains tool-dependent.
I suggest omitting the optional <url> element and listing the three individual
license links in <comments> along with the existing file-level attribution. The
JAR's LICENSE and NOTICE files and the applicable licensing terms would be
unaffected. A useful validation would be to generate a CycloneDX SBOM from a
published or locally staged POM and check that an expression-aware generator
emits the full expression.
Related history: #53034 introduced the combined representation. #57343 and
#59066 explain why multiple <license> elements would suggest a choice of
licenses under Maven's POM model. This proposal preserves the single-entry
model and its conjunctive meaning. #69993 fixed the CDDL link itself.
Published POM:
https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat-servlet-api/10.1.62/tomcat-servlet-api-10.1.62.pom
Tomcat 10.1.x template:
https://github.com/apache/tomcat/blob/10.1.x/res/maven/tomcat-servlet-api.pom
Maven POM reference: https://maven.apache.org/pom.html#licenses
CycloneDX licensing: https://cyclonedx.org/use-cases/open-source-licensing/
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]