github / maven-plugins

Official GitHub Maven Plugins
MIT License
584 stars 198 forks source link

No authentication credentials configured #18

Closed macalinao closed 12 years ago

macalinao commented 12 years ago

I get the following error with Maven 3 on Ubuntu 12.04:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.5:site (default) on project modthemodapi: No authentication credentials configured -> [Help 1]

My settings.xml is as follows:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
      <server>
      <id>github</id>
      <username>...</username>
      <password>...</password>
    </server>
  </servers>
</settings>

For some reason, this all works fine on my other computer. I know this settings.xml is getting loaded because it errors when I make the XML invalid.

Here's the output of `mvn -v':


Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600)
Maven home: /usr/share/maven3
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"
simplyianm@ian-desktop-9000:~/.m2$ 

Thanks in advance!

macalinao commented 12 years ago

Updating everything to the latest versions solved everything.

kevinsawicki commented 12 years ago

Great to hear, please let me know if you have any other issues.

Tzrlk commented 10 years ago

Another thing that's easy to forget (what I did to get the same issue) is to specify the server configuration property if you're using server authentication. Might be nice to have clearer error messages.