我正在尝试在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>
答案 0 :(得分:1)
您的~/.m2/settings.xml
必须是这样的:
<settings>
<servers>
<server>
<id>github</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
</settings>