Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-1137

git path suffix from submodule

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              t1 Rüdiger zu Dohna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: