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

vinishjail97 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-xtable.git


The following commit(s) were added to refs/heads/main by this push:
     new 47199651 [855] Fix release scripts: exclude xtable-service/examples + 
repair deploy_staging_jars.sh (#852)
47199651 is described below

commit 47199651bbb3ab47254c5ceff2d2ce1b13746462
Author: Vinish Reddy <[email protected]>
AuthorDate: Wed Jul 22 04:41:10 2026 +0530

    [855] Fix release scripts: exclude xtable-service/examples + repair 
deploy_staging_jars.sh (#852)
    
    * [release] Exclude xtable-service/examples screenshots from source release 
tarball
    
    * [release] Fix deploy_staging_jars.sh: syntax, executable bit, disable 
build cache
    
    The script had an unterminated quote (swallowing the install/deploy 
invocations)
    and referenced an undefined ${joined} under 'set -u'; it was also not 
executable.
    The Maven build cache (.mvn/extensions.xml) double-attaches the sources jar 
during
    a release deploy ('duplicated artifacts attached'), so pass
    -Dmaven.build.cache.enabled=false in the deploy options.
---
 release/scripts/create_source_release.sh | 3 ++-
 release/scripts/deploy_staging_jars.sh   | 9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/release/scripts/create_source_release.sh 
b/release/scripts/create_source_release.sh
index ef3567d8..b740f24d 100755
--- a/release/scripts/create_source_release.sh
+++ b/release/scripts/create_source_release.sh
@@ -63,7 +63,8 @@ rsync -a \
   --exclude ".git" --exclude ".gitignore" --exclude ".gitattributes" --exclude 
".travis.yml" \
   --exclude ".github" --exclude "target" --exclude ".idea" --exclude "*.iml" 
--exclude ".DS_Store" \
   --exclude "build-target" --exclude ".rubydeps" --exclude "rfc" --exclude 
"docker/images" \
-  --exclude "assets" --exclude "demo" --exclude "website" --exclude 
"style/IDE.png" --exclude "xtable-utilities" . apache-xtable-$RELEASE_VERSION
+  --exclude "assets" --exclude "demo" --exclude "website" --exclude 
"style/IDE.png" --exclude "xtable-utilities" \
+  --exclude "xtable-service/examples" . apache-xtable-$RELEASE_VERSION
 
 tar czf ${RELEASE_DIR}/apache-xtable-${RELEASE_VERSION}.src.tgz 
apache-xtable-$RELEASE_VERSION
 gpg --armor --local-user E391B3E8179C4FD9BB8BF72002AB8E945EFD1E91 --detach-sig 
${RELEASE_DIR}/apache-xtable-${RELEASE_VERSION}.src.tgz
diff --git a/release/scripts/deploy_staging_jars.sh 
b/release/scripts/deploy_staging_jars.sh
old mode 100644
new mode 100755
index 9d4b65f8..d003fd0b
--- a/release/scripts/deploy_staging_jars.sh
+++ b/release/scripts/deploy_staging_jars.sh
@@ -39,18 +39,19 @@ if [ "${1:-}" == "-h" ]; then
 Usage: $(basename "$0") [OPTIONS]
 
 Options:
-<version option>  One of the version options below
-${joined}
 -h, --help
 "
   exit 0
 fi
 
 
-COMMON_OPTIONS="-DdeployArtifacts=true -DskipTests 
-DretryFailedDeploymentCount=10"
+# -Dmaven.build.cache.enabled=false: the build cache (.mvn/extensions.xml) 
restores the
+# cached source:jar-no-fork execution and then re-attaches the sources jar, 
which fails the
+# release build with "duplicated artifacts attached". Disable it for release 
deploys.
+COMMON_OPTIONS="-DdeployArtifacts=true -DskipTests 
-DretryFailedDeploymentCount=10 -Dmaven.build.cache.enabled=false"
 echo "Cleaning everything before any deployment"
 $MVN clean $COMMON_OPTIONS
-echo "Building with options
+echo "Building with options"
 $MVN install $COMMON_OPTIONS
 
 echo "Deploying to repository.apache.org with version options"

Reply via email to