0

我正在尝试使用 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 你可以在这里找到完整的输出。

有什么想法我可能做错了吗?

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

4

2 回答 2

1

您的分支不正确:

<branch>gh-pages</branch>

删除它并使用默认值。

于 2012-12-23T17:01:18.090 回答
0

你试过这个 maven 插件http://maven.apache.org/plugins/maven-scm-publish-plugin/various-tips.html吗?

于 2012-12-24T08:07:01.343 回答