Open yegor256 opened 10 years ago
How are you configuring the authentication ?
using oauth or credential ?
And in settings.xml
:
<server>
<id>github</id>
<username>yegor256</username>
<password>...</password>
</server>
so credentials. Just be be sure, you have checked the credentials ? (in a browser as incognito)
Sure, everything works fine with version 0.8, but fails with 0.9. I change nothing except the plugin version number
Actually, in 0.9 there is one authentication case which is no more supported:
However it doesn't look like you are in this case.
Yeah, I use credentials only
Can you try to remove the gihub.global.server
from your pom file and just use in your settings.xml
(should not change)
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_PASSWORD</password>
</server>
In addition, configure the <url>
from your project to <url>https://github.com/OWNER/PROJECT_NAME</url>
(replace OWNER
and PROJECT_NAME
)
Another test, if it's not successful:
In the plugin configuration set:
<repositoryName>PROJECT_NAME<repositoryName>
<repositoryOwner>OWNER</repositoryOwner>
<server>github</server>
<url>
change didn't help
This configuration works:
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.9</version>
<configuration>
<repositoryName>jcabi-aspects</repositoryName>
<repositoryOwner>jcabi</repositoryOwner>
<server>github</server>
</configuration>
</plugin>
Would be nice to see it working without this extra config though...
This process just required to spot the issue. The plugin is not able to extract the repository name and owner name from data contained in the pom file.
It looks like the plugin is extracting the information from the SCM metadata. Could you check how they are written in comparison to: http://github.github.com/maven-plugins/site-plugin/project.html
This is what I have:
<scm>
<connection>scm:git:github.com:jcabi/jcabi-aspects.git</connection>
<developerConnection>scm:git:github.com:jcabi/jcabi-aspects.git</developerConnection>
<url>https://github.com/jcabi/jcabi-aspects</url>
</scm>
BTW, 0.8 extracts this information without problems
I'm getting this too:
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.9</version>
<configuration>
<message>Maven artifacts for ${project.version}</message>
<noJekyll>true</noJekyll>
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<branch>refs/heads/mvn-repo</branch>
<includes>
<include>**/*</include>
</includes>
<repositoryName>kodomondo</repositoryName>
<repositoryOwner>poblish</repositoryOwner>
</configuration>
<executions>
[...]
</executions>
</plugin>
This configuration works on other Github projects of mine, the only difference seeming to be the size of the artifact to be uploaded, so I don't think the fact that I lack an <scm> element is relevant. 27 MB is the size of the JAR that is failing for me with the "java.io.IOException: Not Allowed (405)"
I too have a similar issue. I get 405 method not allowed when I try to upload files of size over 30MB. It works fine otherwise.
Is there any workaround that we can adopt in the interim?
I'm also getting this problem--we have a large war overlay file we're trying to put in github as a maven repo.
look your config
Version 0.8 works fine, but version 0.9 on the same pom.xml gives this: