github / maven-plugins

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

site-maven-plugin fails now that user agent is mandatory #38

Closed klieber closed 11 years ago

klieber commented 11 years ago

A recent API change is causing the site-maven-plugin to fail. Here is the specific error I am receiving:

[INFO] --- site-maven-plugin:0.7:site (default) @ jasmine-maven-plugin ---
[INFO] Creating 583 blobs
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:03.903s
[INFO] Finished at: Sun Apr 28 22:24:26 CDT 2013
[INFO] Final Memory: 53M/458M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.7:site (default) on project jasmine-maven-plugin: Error creating blob: Missing or invalid User Agent string. See http://developer.github.com/v3/#user-agent-required (403) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
th-schwarz commented 11 years ago

Hi,

I've got exactly the same problem. Is there a known workaraound?

Kind regards Thilo

mprins commented 11 years ago

There's a workaround, and a fix merged in trunk see: #37

@kevinsawicki can you shed some light on the new release?

th-schwarz commented 11 years ago

@mprins you saved my day

klieber commented 11 years ago

@mprins thanks for the workaround.

kevinsawicki commented 11 years ago

I just pushed a 0.8 of the site plugin with the user agent fix to https://oss.sonatype.org and it should sync over to Maven Central in the next 8 hours or so.