github / maven-plugins

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

Site plugin fails with a 405 #26

Closed tduchateau closed 11 years ago

tduchateau commented 11 years ago

Hi,

Since today, my Jenkins job which deploys a Maven site fails with the following error :

Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.github:site-maven-plugin:0.7:site (default) on project datatables4j-docs: Error creating blob: Not Allowed (405) 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:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating blob: Not Allowed (405) at com.github.maven.plugins.site.SiteMojo.createBlob(SiteMojo.java:279) at com.github.maven.plugins.site.SiteMojo.execute(SiteMojo.java:337) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 27 more Caused by: java.io.IOException: Not Allowed (405) 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:275) ... 30 more

The Maven command :

-B -f /scratch/jenkins/workspace/datatables4j-docs-deploy/pom.xml -s /private/datatables4j/my-settings.xml site-deploy

The POM is available here : https://github.com/datatables4j/docs/blob/master/pom.xml

Is it a Github issue ?

Thanks !

tduchateau commented 11 years ago

Fixed. Related to server issues. :-)

Thanks

awoods commented 10 years ago

I am seeing the same error. Can you elaborate on the "server issues"?

jinahya commented 10 years ago

I'm facing the very same problem with 0.9.

cescoffier commented 10 years ago

Are you configuring the plugin as presented on: http://github.github.com/maven-plugins/site-plugin/quickstart.html

Authentication and Project/Repository identification are more precisely described on: http://github.github.com/maven-plugins/site-plugin/authentication.html http://github.github.com/maven-plugins/site-plugin/project.html

torito commented 10 years ago

I had the same fail, but when I try with -X to see more info, the plugin didn't fail, so I think is a server issue. El oct 17, 2013 8:11 a.m., "Clement Escoffier" notifications@github.com escribió:

Are you configuring the plugin as presented on: http://github.github.com/maven-plugins/site-plugin/quickstart.html

Authentication and Project/Repository identification are more precisely described on: http://github.github.com/maven-plugins/site-plugin/authentication.html http://github.github.com/maven-plugins/site-plugin/project.html

— Reply to this email directly or view it on GitHubhttps://github.com/github/maven-plugins/issues/26#issuecomment-26481355 .

awoods commented 10 years ago

My issue was resolved when I placed the "-s /my/settings/xml" as the first argument of the "mvn" command. But the issue could have easily been serverside, as well.