github/maven-plugins — Issue #10: Error creating blob: Not Found (404)
Author: gehel
Created: 2012-02-24 20:06:15+00:00
State: open

In a multi-module project, the parent project's site is uploaded without problem, but the child project fails with "Error creating blob: Not Found (404)". I'm a bit at lost as to what the problem is. When running `mvn -e -X site` I get the following output :

[DEBUG] Configuring mojo 'com.github.github:site-maven-plugin:0.3:site' -->
[DEBUG] (f) branch = refs/heads/gh-pages
[DEBUG] (f) message = Creating site for 0.1.0.BUILD-SNAPSHOT
[DEBUG] (f) oauth2Token =
[DEBUG] (f) outputDirectory = /home/gehel/dev/loganalyzer/serene-collector/collector-webapp/target/site
[DEBUG] (f) password = ****
[DEBUG] (f) project = MavenProject: net.sereneproject:collector-webapp:0.1.0.BUILD-SNAPSHOT @ /home/gehel/dev/loganalyzer/serene-collector/collector-webapp/pom.xml
[DEBUG] (f) userName = gehel
[DEBUG] -- end configuration --
[INFO] [ghSite:site {execution: default}]
[DEBUG] Using GitHub repository serene-collector/collector-webapp
[DEBUG] Scanning /home/gehel/dev/loganalyzer/serene-collector/collector-webapp/target/site and including [] and exluding []
[INFO] Creating 506 blobs
[DEBUG] Scanned files to include: [source-repository.html, index.html, taglist.html, checkstyle-aggregate.html, [...long list of files...]]

[DEBUG] Using basic authentication with username: gehel
[DEBUG] Creating blob from /home/gehel/dev/loganalyzer/serene-collector/collector-webapp/target/site/source-repository.html
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating blob: Not Found (404)

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating blob: Not Found (404)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating blob: Not Found (404)
at com.github.maven.plugins.site.SiteMojo.createBlob(SiteMojo.java:250)
at com.github.maven.plugins.site.SiteMojo.execute(SiteMojo.java:302)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.eclipse.egit.github.core.client.RequestException: Not Found (404)
at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:383)
at org.eclipse.egit.github.core.client.GitHubClient.sendJson(GitHubClient.java:498)
at org.eclipse.egit.github.core.client.GitHubClient.post(GitHubClient.java:512)
at org.eclipse.egit.github.core.service.DataService.createBlob(DataService.java:115)
at com.github.maven.plugins.site.SiteMojo.createBlob(SiteMojo.java:246)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 41 seconds
[INFO] Finished at: Fri Feb 24 21:01:23 CET 2012
[INFO] Final Memory: 140M/1161M
[INFO] ------------------------------------------------------------------------