2014-03-19 25 views
0

我正在爲android創建一個新的自定義maven原型...它已安裝並正在運行。maven-release-plugin的hgrc配置

但是,在我嘗試使用mvn release:perform,我得到以下錯誤:

[DEBUG] pushing to http://code.programadoremjava.com.br/android-archetype 
[DEBUG] searching for changes 
[DEBUG] ignoring invalid [auth] key 'username' 
[DEBUG] ignoring invalid [auth] key 'password' 
[DEBUG] abort: http authorization required for http://code.programadoremjava.com.br/android-archetype 

項目hgrc是在這裏:

[paths] 
default = http://code.programadoremjava.com.br/android-archetype 
[auth] 
username=MyUser 
password=MyPass 

什麼是錯/丟失?

回答

0

試試這個:

[paths] 
default = http://code.programadoremjava.com.br/android-archetype 

[auth] 
repo.prefix = http://code.programadoremjava.com.br/android-archetype 
repo.username = MyUser 
repo.password = MyPass 

更多的細節,你可以在這裏找到:How to save username and password with Mercurial?