Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

9.3 KB
Raw Blame

Legal documents for Maven artifacts

LICENSE and NOTICE contain the base text for Maven artifacts. Thin and source JARs add applicable notices for copied production code. Javadoc JARs include notices for material present in the documentation and reference the doclet's asset licenses. Web WARs use their own legal documents.

Shaded and CLI JARs collect legal documents from their bundled dependencies under META-INF/licenses/<group>/<artifact>/<version>/, preserving original relative paths and optional classifiers. External dependencies use Maven artifact names; project dependencies use Gradle project names. The main LICENSE lists these document paths, and the main NOTICE includes upstream notices. Nested inventories are regenerated after exclusions. A ZIP intermediate preserves case-sensitive paths.

dependencies.txt supplies missing upstream texts and license labels. Rules are selected by group:artifact:version, then group:artifact, then group:*. Comma-separated filenames precede an optional | license label. Rules apply only to bundled dependencies with content; declarations in a POM do not trigger them. A label-only rule requires legal documents in the dependency JAR. Components with version-specific rules require an audited version entry or an explicit artifact-level fallback; a group rule cannot silently replace version-specific supplements. An empty version entry records that no supplement is needed for that audited version.

The document inventory is not a complete dependency or license audit. An Apache-2.0 dependency may be covered by the base LICENSE without supplying its own legal files; the absence of files alone cannot establish its licensing or exclude embedded code under other terms.

When changing dependencies or copied sources, inspect the actual included code and upstream legal documents. Update the relevant templates, mappings and root source inventory. A dependency's POM license declaration may omit embedded third-party code.

Sources for supplements

  • ANTLR runtime 4.13.2: BSD-3-Clause LICENSE; the binary runtime JAR omits this text.
  • Aliyun OSS 3.10.2/3.13.0/3.13.2: the exact Maven Central source JARs contain the same BSD-2-Clause header in com/aliyun/oss/common/utils/IniEditor.java.
  • Google API Client 1.24.1: its exact Maven Central source JAR contains a separate BSD-3-Clause header in com/google/api/client/googleapis/auth/oauth2/CloudShellCredential.java.
  • Google Auth credentials and OAuth2 HTTP 1.28.0: BSD-3-Clause LICENSE.
  • gRPC 1.66.0: NOTICE. Only the gRPC attribution applies to grpc-api; the okhttp/xds portions are not bundled. grpc-context is an empty compatibility JAR.
  • Azure SDK: Microsoft MIT license, shared by the Azure SDK components in the Azure bundle.
  • MSAL 1.16.1: LICENSE; persistence extension 1.3.0: LICENSE.
  • Legacy Azure keyvault-core 1.0.0: the exact Maven Central sources' IKey.java has Microsoft MIT terms; IKeyResolver.java is Apache 2.0.
  • ASM 7.1/9.2/9.3: BSD terms in the exact sources' AnnotationVisitor.java.
  • JSR305 3.0.2: BSD terms in the FindBugs distribution, plus the exact sources' javax.annotation.concurrent annotations, which retain Brian Goetz's CC-BY-2.5 attribution. CC-BY-2.5 legal code.
  • Kotlin 1.9.10: NOTICE, limited to the standard library attribution.
  • JAXB 2.3.0: LICENSE.
  • H2 2.2.224: LICENSE.
  • Jakarta Transactions 1.3.3: LICENSE and NOTICE.
  • Jackson Core 2.15.2 and 2.18.3: their exact source JARs contain Schubfach under MIT (2.15.2 source, 2.18.3 source), while the binary JARs omit that text. Their FastDoubleParser NOTICE declares MIT but the companion LICENSE incorrectly contains Apache 2.0. Supplements use the 0.9.0 MIT text and 1.0.90 MIT text respectively. Jackson 2.18.3 also needs the Boost text identified by its parser NOTICE. Existing fast_float and bigint texts are preserved. Versions 2.9.2/2.13.5 contain neither parser; 2.18.12, 2.21.3 and 2.21.8 already include their full license texts (identical in all three). These audited versions require no supplements.
  • Reactive Streams 1.0.4: MIT-0 LICENSE.
  • JaCoCo runtime 0.8.8: its binary about.html identifies EPL-2.0 and the embedded ASM 9.2 BSD code; retain that file (which already contains the ASM BSD text) and supplement only the missing full EPL-2.0 text.
  • Snappy Java 1.1.10.12: NOTICE. Its native libraries include Snappy 1.1.10 and Bitshuffle 0.3.4, as recorded by the tagged Makefile and VERSION file.
  • Netty 4.1.109/110/118/140: NOTICE and companion license texts. The NOTICE and companion texts are identical in 4.1.118 and 4.1.140 (compared file by file), and the selected companions match across these versions. They cover embedded SLF4J/Harmony/JCTools in common, Webbit and Hoehrmann UTF-8 validation in HTTP, Bzip2/FastLZ/libdivsufsort/Protobuf in codec, HPACK implementations in HTTP/2, and Apple's dnsinfo header in the macOS native resolver. Netty tcnative classes 2.0.65.Final use the Java artifact's Netty and Tomcat Native attributions from its NOTICE. The macOS supplement includes the full APSL-2.0 text and a source-availability link. The macOS-only dnsinfo inclusion follows ASF LEGAL-613.

Copied-source provenance

Root LICENSE records copied-source paths; root NOTICE and the module mappings identify applicable notices. The Glue provider in bundles/aws derives from Doris's provider, with provenance recorded in the original attribution. The Ranger reference classes use the attribution from Ranger 2.4.0.

Verification

The root check task includes testMavenLegalFiles, which checks template and source mapping consistency and exercises the generator with synthetic JARs. Client-runtime tests check the actual shaded JAR's canonical entries, dependency documents, supplements and references. testMavenArtifactLegalFiles checks the CLI, an Aliyun bundle and a WAR packaging fixture in each web module for canonical documents and preservation of their generated or module-specific legal files. The WAR fixtures use separate output directories and do not build the JavaScript application.

./gradlew testMavenLegalFiles :clients:client-java-runtime:test --tests '*TestRuntimeJarLegalFiles' -PskipITs
./gradlew testMavenArtifactLegalFiles -PskipITs

Before a release, inspect the final Maven artifacts and review metadata for changed dependencies. These tests check packaging behavior, not completeness of upstream licensing information.