在Github中托管maven存储库

时间:2014-12-01 14:35:50

标签: git maven github

我正在尝试在Github中托管一个新的maven存储库,但我继续收到此错误:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.9:site (default) on project app-name: Server 'github' not found in settings -> [Help 1]

我确实在settings.xml

中有这个
<servers>
  <server>
    <id>github</id>
    <username>user</username>
    <password>pass</password>
  </server>
</servers>

1 个答案:

答案 0 :(得分:1)

您的~/.m2/settings.xml必须是这样的:

<settings>
 <servers>
   <server>
    <id>github</id>
    <username>user</username>
    <password>pass</password>
   </server>
 </servers>
</settings>