apache / incubator-xtable

Apache XTable (incubating) is a cross-table converter for lakehouse table formats that facilitates interoperability across data processing systems and query engines.
https://xtable.apache.org/
Apache License 2.0
921 stars 147 forks source link

[532] Add DISCLAIMER file to META-INF folder in jars #539

Closed rangareddy closed 2 months ago

rangareddy commented 2 months ago

Important Read

This pull request aims to address issues #532

What is the purpose of the pull request

Adding the DISCLAIMER file to META-INF folders in all jars.

Brief change log

<resourceBundles>
    <resourceBundle>org.apache.apache.resources:apache-jar-resource-bundle:${apache-jar-resource-bundle.version}</resourceBundle>
    <resourceBundle>org.apache.apache.resources:apache-incubator-disclaimer-resource-bundle:${apache-incubator-disclaimer-resource-bundle.version}</resourceBundle>
</resourceBundles>

Verify this pull request

Run $ mvn clean install -DskipTests -U locally and extract the jars and verify META-INF folder.

META-INF folder before this PR:

% ls -ltr META-INF 
total 48
drwxr-xr-x  3 rangareddy  staff     96 Jul  4 18:52 maven
-rw-r--r--  1 rangareddy  staff    176 Jul  4 18:52 NOTICE
-rw-r--r--  1 rangareddy  staff    341 Jul  4 18:52 MANIFEST.MF
-rw-r--r--  1 rangareddy  staff  11358 Jul  4 18:52 LICENSE
-rw-r--r--  1 rangareddy  staff   1942 Jul  4 18:52 DEPENDENCIES

META-INF folder after this PR:

% ls -ltr META-INF
total 56
drwxr-xr-x  3 rangareddy  staff     96 Jul  4 18:52 maven
-rw-r--r--  1 rangareddy  staff    179 Jul  4 18:52 NOTICE
-rw-r--r--  1 rangareddy  staff    341 Jul  4 18:52 MANIFEST.MF
-rw-r--r--  1 rangareddy  staff  11358 Jul  4 18:52 LICENSE
-rw-r--r--  1 rangareddy  staff    559 Jul  4 18:52 DISCLAIMER
-rw-r--r--  1 rangareddy  staff   1942 Jul  4 18:52 DEPENDENCIES
rangareddy commented 2 months ago

Hi @vinishjail97 Review the latest commit changes.

vinishjail97 commented 2 months ago

cat META-INF/DISCLAIMER

Apache XTable (incubating) is an effort undergoing incubation at the Apache Software 
Foundation (ASF), sponsored by the Apache Incubator PMC. 

Incubation is required of all newly accepted projects until a further review 
indicates that the infrastructure, communications, and decision making process 
have stabilized in a manner consistent with other successful ASF projects. 

While incubation status is not necessarily a reflection of the completeness 
or stability of the code, it does indicate that the project has yet to be 
fully endorsed by the ASF.

@pjfanning Can you confirm if this looks okay ? We are still keeping DISCLAIMER-WIP in the project though.

vinishjail97 commented 2 months ago

@rangareddy We can merge after @pjfanning gives an approval as well.

pjfanning commented 2 months ago

I think you should add DISCLAIMER-WIP to the jar instead of DISCLAIMER while the project uses the DISCLAIMER-WIP and change to DISCLAIMER when the project switches to DISCLAIMER. The exact same file that you have in the project - not some other file.

vinishjail97 commented 2 months ago

I think you should add DISCLAIMER-WIP to the jar instead of DISCLAIMER while the project uses the DISCLAIMER-WIP and change to DISCLAIMER when the project switches to DISCLAIMER. The exact same file that you have in the project - not some other file.

@pjfanning I had the same doubt but the resource bundle provided by Apache for incubating projects doesn't have that ability. https://maven.apache.org/apache-resource-bundles/incubator-disclaimer/ https://github.com/apache/maven-apache-resources/blob/master/incubator-disclaimer/src/main/resources/META-INF/DISCLAIMER.vm