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

jark pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss.git

commit b284d862a6e1c1a6ca906d14a4313dd02274105a
Author: Jark Wu <[email protected]>
AuthorDate: Mon Aug 25 20:33:31 2025 +0800

    [license] Add rat-check to the mvn package phase and ban Alibaba license
---
 fluss-flink/fluss-flink-2.1/pom.xml | 30 ++++++++++++++++--------------
 pom.xml                             | 16 ++++++++++++++++
 2 files changed, 32 insertions(+), 14 deletions(-)

diff --git a/fluss-flink/fluss-flink-2.1/pom.xml 
b/fluss-flink/fluss-flink-2.1/pom.xml
index 3f0731c1d..70437fb8f 100644
--- a/fluss-flink/fluss-flink-2.1/pom.xml
+++ b/fluss-flink/fluss-flink-2.1/pom.xml
@@ -1,19 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-  ~  Copyright (c) 2025 Alibaba Group Holding Ltd.
-  ~
-  ~  Licensed under the Apache License, Version 2.0 (the "License");
-  ~  you may not use this file except in compliance with the License.
-  ~  You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~  Unless required by applicable law or agreed to in writing, software
-  ~  distributed under the License is distributed on an "AS IS" BASIS,
-  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~  See the License for the specific language governing permissions and
-  ~  limitations under the License.
-  -->
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/pom.xml b/pom.xml
index 21c101b19..eaec9ce2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -585,6 +585,7 @@
                 <inherited>false</inherited>
                 <executions>
                     <execution>
+                        <id>rat-check</id>
                         <phase>validate</phase>
                         <goals>
                             <goal>check</goal>
@@ -619,12 +620,27 @@
                                 <pattern>Licensed to the Apache Software 
Foundation (ASF) under one</pattern>
                             </patterns>
                         </license>
+                        <license>
+                            <!-- Explicitly forbid Alibaba license to catch 
non-compliant headers during our migration from Alibaba to ASF.
+                                We must add this check because an Alibaba 
license header may contain Apache text and be wrongly marked as approved. -->
+                            <family>BAN</family>
+                            <text>Alibaba Group Holding Ltd</text>
+                        </license>
                     </licenses>
+                    <families>
+                        <family>
+                            <id>BAN</id>
+                            <name>The license not allowed in this 
project.</name>
+                        </family>
+                    </families>
                     <licenseFamilies>
                         <licenseFamily 
implementation="org.apache.rat.license.SimpleLicenseFamily">
                             <familyName>Apache License 2.0</familyName>
                         </licenseFamily>
                     </licenseFamilies>
+                    <approvedLicenses>
+                        <id>AL2</id>
+                    </approvedLicenses>
                     <excludes>
                         <!-- Additional files like .gitignore etc.-->
                         <exclude>**/.*/**</exclude>

Reply via email to