From af90855fde32daa4965db9100381205cf08be46e Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Tue, 9 Jul 2024 00:14:52 +0800 Subject: [PATCH 1/3] HBASE-28718 Should support different license name for 'Apache License, Version 2.0' --- .../src/main/resources/META-INF/LICENSE.vm | 5 +- .../main/resources/supplemental-models.xml | 468 +----------------- 2 files changed, 6 insertions(+), 467 deletions(-) diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm index afbf0b8842c3..bba7afac7ad8 100644 --- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm +++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm @@ -1465,7 +1465,10 @@ project website ${dep.url} project source ${dep.scm.url} -#elseif( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")}) ) +#elseif( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} # The official name in the past + || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")} # The official name in the past too + || ${dep.licenses[0].name.contains("Apache Software License - Version 2.0")} # jetty uses this name + || ${dep.licenses[0].name.contains("Apache-2.0")}) ) # the new short official name #if( ${dep.licenses[0].name.contains("CDDL")} ) #if( ${dep.licenses[0].name.contains("1.0")} ) #set($aggregated = $cddl_1_0.add($dep)) diff --git a/hbase-resource-bundle/src/main/resources/supplemental-models.xml b/hbase-resource-bundle/src/main/resources/supplemental-models.xml index 5dbdd7b42556..075463af20d8 100644 --- a/hbase-resource-bundle/src/main/resources/supplemental-models.xml +++ b/hbase-resource-bundle/src/main/resources/supplemental-models.xml @@ -41,242 +41,6 @@ under the License. - - - org.apache.zookeeper - zookeeper - - - The Apache Software Foundation - http://www.apache.org/ - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - commons-beanutils - commons-beanutils - - - The Apache Software Foundation - http://www.apache.org/ - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - commons-beanutils - commons-beanutils-core - - - The Apache Software Foundation - http://www.apache.org/ - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - - org.eclipse.jetty - jetty-http - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-io - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-jmx - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-server - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-servlet - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-util - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-util-ajax - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-webapp - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-xml - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-security - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.orbit - javax.servlet.jsp.jstl - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.orbit - org.eclipse.jdt.core - - - - Eclipse Public License 1.0 - http://www.eclipse.org/legal/epl-v10.html - repo - - - - - - - org.eclipse.jetty.toolchain - jetty-schemas - - - Common Development and Distribution License (CDDL) v1.0 - https://glassfish.dev.java.net/public/CDDLv1.0.html - repo - - - - org.javassist @@ -290,37 +54,8 @@ under the License. - - - org.xerial.snappy - snappy-java - 1.1.8.4 - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - - - commons-httpclient - commons-httpclient - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - + javax.annotation @@ -555,34 +290,6 @@ under the License. - - - org.mortbay.jetty - jetty-util - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.mortbay.jetty - jetty-sslengine - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - org.bouncycastle @@ -601,179 +308,8 @@ under the License. - - - org.eclipse.jetty - jetty-annotations - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-jndi - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-plus - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty - jetty-client - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - javax-websocket-client-impl - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - javax-websocket-server-impl - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - websocket-api - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - websocket-client - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - websocket-common - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - websocket-server - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - org.eclipse.jetty.websocket - websocket-servlet - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - - - - - - org.mortbay.jetty - jetty - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - + io.dropwizard.metrics From 3b1979cf92d8557495f3cc854c88a8a3725c6cd7 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Tue, 9 Jul 2024 12:09:02 +0800 Subject: [PATCH 2/3] fix comments --- .../src/main/resources/META-INF/LICENSE.vm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm index bba7afac7ad8..3e70b881f7bb 100644 --- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm +++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm @@ -1465,10 +1465,14 @@ project website ${dep.url} project source ${dep.scm.url} -#elseif( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} # The official name in the past - || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")} # The official name in the past too - || ${dep.licenses[0].name.contains("Apache Software License - Version 2.0")} # jetty uses this name - || ${dep.licenses[0].name.contains("Apache-2.0")}) ) # the new short official name +## "Apache License, Version 2.0" is the official name in the past +## "The Apache Software License, Version 2.0" is the official name in the past too +## "Apache Software License - Version 2.0" is what jetty uses in pom +## "Apache-2.0" is the new short official name +#elseif( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} + || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")} + || ${dep.licenses[0].name.contains("Apache Software License - Version 2.0")} + || ${dep.licenses[0].name.contains("Apache-2.0")}) ) #if( ${dep.licenses[0].name.contains("CDDL")} ) #if( ${dep.licenses[0].name.contains("1.0")} ) #set($aggregated = $cddl_1_0.add($dep)) From 1b4edec6da3adc32aeccadde8aa2aa2557bd4d95 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Tue, 9 Jul 2024 14:14:35 +0800 Subject: [PATCH 3/3] fix comments --- .../src/main/resources/META-INF/LICENSE.vm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm index 3e70b881f7bb..afa1a9f50cf9 100644 --- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm +++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm @@ -1465,10 +1465,12 @@ project website ${dep.url} project source ${dep.scm.url} -## "Apache License, Version 2.0" is the official name in the past -## "The Apache Software License, Version 2.0" is the official name in the past too -## "Apache Software License - Version 2.0" is what jetty uses in pom -## "Apache-2.0" is the new short official name +#* + "Apache License, Version 2.0" is the official name in the past + "The Apache Software License, Version 2.0" is the official name in the past too + "Apache Software License - Version 2.0" is what jetty uses in pom + "Apache-2.0" is the new short official name +*# #elseif( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")} || ${dep.licenses[0].name.contains("Apache Software License - Version 2.0")}