使用github site-maven-plugin将目录发布到gh-pages时出现500错误

时间:2012-12-23 05:26:46

标签: maven github

我正在尝试使用github网站插件将目录复制到github上的gh-pages分支。不过,每当我尝试时,我都会收到500错误。

这是我的构建配置:

        <plugin>
            <groupId>com.github.github</groupId>
            <artifactId>site-maven-plugin</artifactId>
            <version>0.7</version>
            <configuration>
                <message>Creating site for ${project.version}</message>
                <branch>gh-pages</branch>
                <noJekyll>true</noJekyll>
                <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
                <includes>
                    <include>**/*</include>
                </includes>
                <repositoryName>greenDAO</repositoryName>
                <repositoryOwner>emmby</repositoryOwner>
            </configuration>
        </plugin>

以下是mvn ghSite:site

的输出
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DaoCore 1.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- site-maven-plugin:0.7:site (default-cli) @ greendao ---
[INFO] Creating 12 blobs
[INFO] Creating tree with 13 blob entries
[INFO] Creating commit with SHA-1: 656a23ffd7d898c2d45a107ee4f8f2d8ee86706e
[INFO] Creating reference gh-pages starting at commit 656a23ffd7d898c2d45a107ee4f8f2d8ee86706e
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.608s
[INFO] Finished at: Sat Dec 22 22:25:21 MST 2012
[INFO] Final Memory: 7M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.7:site (default-cli) on project greendao: Error creating reference: Server Error (500) -> [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

您可以找到mvn -X ghSite:site here的完整输出。

任何想法我可能做错了什么?

(我的身份验证凭据位于我的〜/ .m2 / settings.xml文件中,看起来是正确的,因为如果我将其注释掉,则推送失败并出现身份验证错误。)

2 个答案:

答案 0 :(得分:1)

您的分支不正确:

<branch>gh-pages</branch>

删除它并使用默认值。

答案 1 :(得分:0)