I'm trying to build my Linux VM to interact with Git. I generated private/public SSH keys and put the public key in Git. I can git clone
and git push
without requiring a password. So I think everything is setup correctly.
But when I try to run mvn release:branch
it's asking for a username and password.
Does it require that we need a different setup just for mvn
commands?
The mvn release
plugin would use the project.scm.developerConnection
element in your pom.xml
to know where to push a tagged source (or here a source with a new branch), before making the actual release to Nexus.
If that connection uses an https URL, then credentials would be required.
This article shows that the connection might be specified explicitly:
Apparently, the
release:branch
goal doesn't make anyrelease.properties
file or other files that therelease:perform
goal expects.
So try instead mvn release:prepare
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.