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

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


The following commit(s) were added to refs/heads/branch-0.4 by this push:
     new cd81d6bb [release] Fix deploy_staging_jars.sh: syntax, make 
executable, disable build cache
cd81d6bb is described below

commit cd81d6bb50a943198a8938812d22988faba97cbc
Author: Vinish Reddy <[email protected]>
AuthorDate: Tue Jul 21 13:46:08 2026 -0700

    [release] Fix deploy_staging_jars.sh: syntax, make executable, 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.
    Additionally, 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/deploy_staging_jars.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

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