Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.0.1
-
None
-
None
-
None
Description
We have a mono-repo with a root maven pom and submodules that we want to release independently. But when we run the release plugin on the submodule, it logs:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.1:prepare (default-cli) on project submodule: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Gitea: Invalid repo name
[ERROR] fatal: Could not read from remote repository.
[ERROR]
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
It tries to access the repository monorepo.git/submodule, even though the scm tag is only defined in the parent pom (without the submodule path).
If we copy the exact same scm tag to the submodules pom, it works just fine.
We found the same issue as an unanswered question on Stackoverflow: https://stackoverflow.com/questions/64588882/maven-release-plugin-for-project-submodules
Attachments
Issue Links
- duplicates
-
MRELEASE-942 scm.url in release.properties incorrectly has project name appended if not defined in the top level pom
- Closed