gitmavenmaven-release-plugin

SCM URL of local GIT repo


I am trying to test mvn release plugin with my local git repo . I am getting error No SCM URL was provided to perform the release from even though parent pom has following detail

<scm>
    <url>scm:git:file://localhost/d/Research/Research.git</url>
    <connection>scm:git:file://localhost/d/Research/Research.git</connection>
    <developerConnection>scm:git:file://localhost/d/Research/Research.git</developerConnection>
</scm>

Is this correct way to define local repo in mvn ?


Solution

  • Finally managed to get it working . As I am on windows I used below scm tag

    <scm>
      <url>scm:git:file://d:/Research/.git</url>
      <connection>scm:git:file://d:/Research/.git</connection>
      <developerConnection>scm:git:file://d:/Research/.git</developerConnection>
    </scm>
    

    Thanks @wemu for your inputs.