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
  • 33,478
  • 73
  • 290
  • 513

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
  • 60,866
  • 25
  • 183
  • 186
Andrew Ben
  • 66
  • 2