Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven release plugin: releasing from git sub folder?

When I try to do a release from a git repository clone's sub folder, ie. "/abc", the release plugin changes the developerConnection from "...:repo.git" to "...:repo.git/abc" which is obviously nonsensical.

How do I prevent this from happening?

The project in question can be found here: https://github.com/jjYBdx4IL/misc

I also posted the detailed workaround there.

like image 909
user1050755 Avatar asked Aug 18 '26 13:08

user1050755


1 Answers

As a temporary workaround, I set the release plugin's pushChanges option to false and do a manual "git push --tags; git push --all" after preparing the release. On top of that, I fix the scm.url in release.properties before running "mvn release:perform".

like image 51
user1050755 Avatar answered Aug 21 '26 02:08

user1050755