This is an automated email from the ASF dual-hosted git repository.

CalvinKirs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-shade.git


The following commit(s) were added to refs/heads/master by this push:
     new 33ca1d3  [fix] Preserve dependency license texts in shaded artifacts 
(#66)
33ca1d3 is described below

commit 33ca1d3f9df7ef5ff37c997973f22660e94bda01
Author: Gabriel <[email protected]>
AuthorDate: Thu Oct 15 11:25:11 2026 +0800

    [fix] Preserve dependency license texts in shaded artifacts (#66)
    
    Co-authored-by: Wenqiang Lee <[email protected]>
---
 .../src/main/appended-resources/META-INF/LICENSE              | 10 ++++++++++
 pom.xml                                                       | 11 +++++++++++
 2 files changed, 21 insertions(+)

diff --git a/hive-catalog-shade/src/main/appended-resources/META-INF/LICENSE 
b/hive-catalog-shade/src/main/appended-resources/META-INF/LICENSE
new file mode 100644
index 0000000..c182d25
--- /dev/null
+++ b/hive-catalog-shade/src/main/appended-resources/META-INF/LICENSE
@@ -0,0 +1,10 @@
+
+Third-party licenses in the shaded binary distribution
+-----------------------------------------------------
+
+The shaded JAR includes third-party components under their respective licenses.
+Their bundled license texts are retained in this file, META-INF/LICENSE.txt,
+the root LICENSE file, and the component-specific license files under META-INF.
+See META-INF/DEPENDENCIES for component coordinates and META-INF/NOTICE for
+attribution notices. In particular, the CDDL terms for javax.transaction:jta
+are retained in META-INF/LICENSE.txt.
diff --git a/pom.xml b/pom.xml
index bf7517a..5517a14 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,6 +86,17 @@ under the License.
                     <version>3.6.1</version>
                     <configuration>
                         <transformers>
+                            <!-- Different dependencies use the same license 
paths; keeping only the first
+                                 resource discards third-party terms, 
including JTA's CDDL license. -->
+                            <transformer 
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+                                <resource>META-INF/LICENSE</resource>
+                            </transformer>
+                            <transformer 
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+                                <resource>META-INF/LICENSE.txt</resource>
+                            </transformer>
+                            <transformer 
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+                                <resource>LICENSE</resource>
+                            </transformer>
                             <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
 />
                             <transformer 
implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
                                 <projectName>Apache Doris-Shade</projectName>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to