1

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>
quarks
  • 31,298
  • 67
  • 266
  • 478

1 Answers1

2

Your ~/.m2/settings.xml has to be like this:

<settings>
 <servers>
   <server>
    <id>github</id>
    <username>user</username>
    <password>pass</password>
   </server>
 </servers>
</settings>
jub0bs
  • 54,300
  • 24
  • 162
  • 166
Andrew Ben
  • 66
  • 2