xml is indeed found ( try to make a typo in the xml tags in your settings. xml to see if your build start failing, because of non xml compliance), then it must mean that your settings. Can you share your. xml file, you must set a username/ password when connecting to the remote repository. in the poster' s case I assume it was a wrong username/ password. maven ではじめて自分ののライブラリを maven central にリリースしようとした時のメモ です 現象 以下の参考記事を見ながらリリースをしてみよう. への登録 - Qiita その際に いざ mvn - DperformRelease= true deploy でリリースすると Return code is: 401, ReasonPhrase: Unauthorized. のようなエラーが出るように. xml に書いた 設定と ` $ HOME/. xml に書いた設定のずれが問題でした。. You need to have a < distributionManagement/ > section in your pom. Something like this: < distributionManagement> < repository> < id> my- releases< / id > < name> my- releases< / name>. HTTP 401 is the status code for " unauthorized", which implies that your deployment user isn' t authorized to upload artifacts to.
I was missing the < servers> tag on my. xml on Gitlab- ci + MAVEN + Jfrog Artifactory:. Encrypt your master password using command and put it in ~ /. m2/ settings- security. xml mvn - - encrypt- master- password < your_ master_ pass>. Put encrypted master password into ~ /. org/ service/ local/ staging/ deploy/ maven2/ com/ github/ aliteralmind/ xbnjava/ maven- metadata. Code 401 - Unauthorized. This assumes that you have created a Bintray package under your Maven repository on Bintray. I don' t have any < repository> tag defined whatsoever ( neither in the POM nor in settings. xml ) other than in the < distributionManagement> section,.