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 ?
Assuming that SCM has been configured in the pom. xml and the project directory is managed by a SCM, invoking the checkin goal in the scm will start the commit process for all configured sources in your pom. xml. The files should be added beforehand by an external scm client.
You can inspect a Git repository by using the git status command. This command allows you to see which changes have been staged, which haven't, and which files aren't being tracked by Git. You should try and remember that status output does not show you any information regarding the committed project history.
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>
Thanks @wemu for your inputs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With