Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-990

Jgit Provider cannot resolve Repository in multi-module Maven Project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      The JGit providers info command (and probably others) uses fielset.basedir as git working directory. When running maven command in a submodule this will result in the following error:

       

      Cannot get the revision information from the scm repository : 
      [ERROR] Exception while executing SCM command. JGit resolve failure! repository not found: <submodule folder>

       

      What it should do instead is act like the git binary and search for the git directory in parent directories if none found in the current one. Jgit has the API FileRepositoryBuilder.findGitDir to do that.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Farmboy0 Enrico Horn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: