Skip to content

Commit b284d86

Browse files
committed
[license] Add rat-check to the mvn package phase and ban Alibaba license
1 parent 5d70f00 commit b284d86

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

fluss-flink/fluss-flink-2.1/pom.xml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ Copyright (c) 2025 Alibaba Group Holding Ltd.
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
1719
<project xmlns="http://maven.apache.org/POM/4.0.0"
1820
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1921
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@
585585
<inherited>false</inherited>
586586
<executions>
587587
<execution>
588+
<id>rat-check</id>
588589
<phase>validate</phase>
589590
<goals>
590591
<goal>check</goal>
@@ -619,12 +620,27 @@
619620
<pattern>Licensed to the Apache Software Foundation (ASF) under one</pattern>
620621
</patterns>
621622
</license>
623+
<license>
624+
<!-- Explicitly forbid Alibaba license to catch non-compliant headers during our migration from Alibaba to ASF.
625+
We must add this check because an Alibaba license header may contain Apache text and be wrongly marked as approved. -->
626+
<family>BAN</family>
627+
<text>Alibaba Group Holding Ltd</text>
628+
</license>
622629
</licenses>
630+
<families>
631+
<family>
632+
<id>BAN</id>
633+
<name>The license not allowed in this project.</name>
634+
</family>
635+
</families>
623636
<licenseFamilies>
624637
<licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
625638
<familyName>Apache License 2.0</familyName>
626639
</licenseFamily>
627640
</licenseFamilies>
641+
<approvedLicenses>
642+
<id>AL2</id>
643+
</approvedLicenses>
628644
<excludes>
629645
<!-- Additional files like .gitignore etc.-->
630646
<exclude>**/.*/**</exclude>

0 commit comments

Comments
 (0)