Closed vainolo closed 11 years ago
Did you create the site first? I'm mean, made a manually commit to the gh-pages
branch. I had some similiar issues, but this solved it.
Same issue! Using OAuth2 token, command: $ mvn -X ghSite:site
Output:
[DEBUG] Configuring mojo com.github.github:site-maven-plugin:0.6:site from plugin realm ClassRealm[plugin>com.github.github:site-maven-plugin:0.6, parent: sun.misc.Launcher$AppClassLoader@129a41d2]
[DEBUG] Configuring mojo 'com.github.github:site-maven-plugin:0.6:site' with basic configurator -->
[DEBUG] (f) branch = refs/heads/gh-pages
[DEBUG] (f) message = Creating site for configurator-maven-plugin 1.0-SNAPSHOT
[DEBUG] (f) outputDirectory = /Users/mark/git/configurator-maven-plugin/target/site
[DEBUG] (f) project = MavenProject: de.paluch.maven.configurator:configurator-maven-plugin:1.0-SNAPSHOT @ /Users/mark/git/configurator-maven-plugin/pom.xml
[DEBUG] (f) server = github
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5e0e1d51
[DEBUG] -- end configuration --
[DEBUG] Using GitHub repository mp911de/configurator-maven-plugin.git
[DEBUG] Scanning /Users/mark/git/configurator-maven-plugin/target/site and including [] and exluding []
[INFO] Creating 55 blobs
[DEBUG] Scanned files to include: [configure-artifact-mojo.html, configure-mojo.html, css/apache-maven-fluido-1.3.0.min.css, css/print.css, css/site.css, dependencies.html, dependency-info.html, distribution-management.html, help-mojo.html, images/accessories-text-editor.png, images/add.gif, images/apache-maven-project-2.png, images/application-certificate.png, images/close.gif, images/contact-new.png, images/document-properties.png, images/drive-harddisk.png, images/fix.gif, images/icon_error_sml.gif, images/icon_help_sml.gif, images/icon_info_sml.gif, images/icon_success_sml.gif, images/icon_warning_sml.gif, images/image-x-generic.png, images/internet-web-browser.png, images/logos/build-by-maven-black.png, images/logos/build-by-maven-white.png, images/logos/maven-feather.png, images/network-server.png, images/package-x-generic.png, images/profiles/pre-release.png, images/profiles/retired.png, images/profiles/sandbox.png, images/remove.gif, images/rss.png, images/update.gif, images/window-new.png, img/glyphicons-halflings-white.png, img/glyphicons-halflings.png, index.html, integration.html, internal.html, issue-tracking.html, js/apache-maven-fluido-1.3.0.min.js, license.html, mail-lists.html, plugin-info.html, plugin-management.html, plugins.html, project-info.html, project-reports.html, project-summary.html, source-repository.html, team-list.html, usage.html]
[DEBUG] Using 'github' server credentials
[DEBUG] Using OAuth2 access token authentication
[DEBUG] Creating blob from /Users/mark/git/configurator-maven-plugin/target/site/configure-artifact-mojo.html
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:17.675s
[INFO] Finished at: Tue Apr 09 18:45:37 CEST 2013
[INFO] Final Memory: 13M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.6:site (default-cli) on project configurator-maven-plugin: Error creating blob: Not Found (404) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.github:site-maven-plugin:0.6:site (default-cli) on project configurator-maven-plugin: Error creating blob: Not Found (404)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating blob: Not Found (404)
at com.github.maven.plugins.site.SiteMojo.createBlob(SiteMojo.java:271)
at com.github.maven.plugins.site.SiteMojo.execute(SiteMojo.java:362)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.io.IOException: Not Found (404)
at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:523)
at org.eclipse.egit.github.core.client.GitHubClient.sendJson(GitHubClient.java:600)
at org.eclipse.egit.github.core.client.GitHubClient.post(GitHubClient.java:679)
at org.eclipse.egit.github.core.service.DataService.createBlob(DataService.java:115)
at com.github.maven.plugins.site.SiteMojo.createBlob(SiteMojo.java:267)
... 22 more
[ERROR]
[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
dxkrew4fasdft32x:configurator-maven-plugin mark$
I think so, but it has been some time and I already deleted the project. Sorry.
@vainolo
It is because your repository name is incorrect.
<repositoryName>https://github.com/vainolo/vainolo.github.com</repositoryName>
should be something like
<repositoryName>OPClipse</repositoryName>
where instead of OPClipse you use the correct repo for the specific project.
Speculative explanation:
When the plugin tries to commit to a repo named https://github.com/vainolo/vainolo.github.com
for user vainolo, it generates a URL like https://github.com/vainolo/https://github.com/vainolo/vainolo.github.com
which is obviously a nonsensical URL that 404s
Hope that helps anyone else who runs into this issue!
:+1:
Interesting. I hope to have time to check it out soon. Thanks!
Closing bug after 6 month of inactivity.
I have the same issue my repo is https://github.com/alexandrehsantos/review-doubly-linked-list and tried:
`
` This configuration above didn't work.
And with the same configuration below, didn't work too.
`
` I will try to find some documentation for this Maven plugin.
I followed the instructions shown in this post on SO on how to use the plugin. But I'm gettin a 404 all the time. This is my pom.xml:
Any ideas/suggestions? Thanks!