Hi,

I encountered an issue when running make_rc.sh after cleaning the local .m2 
repository.

Steps to reproduce:
1. Delete ~/.m2/repository/org/apache/ratis
2. Run make_rc.sh

Problem:
  The script fails with: ratis-bom not updated by `mvn versions:set`

Analysis:
  The ratis-bom module doesn't inherit from the parent POM. After cleaning the 
local Maven cache, mvn versions:set -DprocessAllModules doesn't properly update 
its version.

Possible fix:
  We may need to explicitly run versions:set for ratis-bom separately:
  cd ratis-bom && mvn versions:set -DnewVersion="$RATISVERSION"

Could someone please verify this issue locally? Any thoughts or suggestions?

  Thanks!



On 2026/03/09 17:20:03 Attila Doroszlai wrote:
> Thanks Xinyu for continuing the release process.
> 
> >      [ERROR] Failed to execute goal 
> > org.apache.maven.plugins:maven-artifact-plugin:3.5.0:compare
> >   (default-cli) on project ratis-thirdparty-mvn: The file 
> > '/Users/xytan/.m2/repository/org/apache/ratis/rat
> >   is-thirdparty-mvn/3.2.2-rc1/ratis-thirdparty-mvn-3.2.2-rc1.pom' differs 
> > from the POM file in the current
> >   project. The version in the file is '3.2.2-rc1' but expected '3.2.2'
> 
> This looks strange.
> 
> - What is the ratis-thirdparty-mvn project?  Never heard of it.
> - What is the value of $RATISVERSION?  Version should indeed be 3.2.2,
> excluding "-rc1" suffix.  The "rc1" string should only appear in
> commit message, git tag name, SVN dist subdir name.
> 
> -Attila
> 

Reply via email to