Question

I have an mvn release:perform, tryong to clone git@github.com:dblock/waffle.git/waffle-pom, which is incorrect. Where is the waffle-pom part coming from?

Source code in https://github.com/dblock/waffle/tree/master/Source/JNA.

[INFO] Executing: cmd.exe /X /C "git clone git@github.com:dblock/waffle.git/waffle-pom C:\Users\dblock\source\waffle\dblock\Source\JNA\target\checkout" [INFO] Working directory: C:\Users\dblock\source\waffle\dblock\Source\JNA\target [ERROR] The git-clone command failed. [INFO] ------------------------------------------------------------------------

Was it helpful?

Solution

You haven't specified the SCM section in the pom.xml from which you are releasing. Default behavior is to use the SCM from the parent and extend it with the artifactId. This mechanism is based on SVN and is the default behavior of the plugin. It would be better if there's a strategy per SCM type, because for GIT this doesn't make sense. This is something which might be fixed in the 3.x version of the plugin. Anyhow, it is best practice to always specify SCM in the release root pom.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top