Reputation: 35346
I am trying to host a new maven repository in Github, but I keep on getting this error:
[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]
I sure have the this in settings.xml
<servers>
<server>
<id>github</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
Upvotes: 1
Views: 529
Reputation: 66
Your ~/.m2/settings.xml
has to be like this:
<settings>
<servers>
<server>
<id>github</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
</settings>
Upvotes: 2