Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 473
BobCoder Avatar asked Nov 20 '17 21:11

BobCoder


People also ask

What is SCM connection in POM XML?

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.

How do I see my git repository?

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.


1 Answers

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.

like image 182
BobCoder Avatar answered Oct 05 '22 02:10

BobCoder