在github页面上使用mvn site-deploy的多模块示例 [英] Multi-module example of using mvn site-deploy with github pages

查看:133
本文介绍了在github页面上使用mvn site-deploy的多模块示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个示例pom.xm l和settings.xml设置,该示例显示了如何部署到使用标准maven站点部署目标site-deploy且也是多模块的github页面.

I am looking for an example pom.xml and settings.xml setup that shows how to deploy to github pages that uses the standard maven site deployment target site-deploy and is also multi-module.

具体来说,我正在寻找一种既可以在Windows操作系统又可以在UNIX上运行的软件.

Specifically I am looking for one that works in both Windows as well as UNIX.

四处搜寻,我还没有找到一个可行的例子.我看过的一些是:

Searching around, I haven't found an example that works. Some of the ones I have looked at are:

  • wagon-gitsite http://khuxtable.github.io/wagon-gitsite/usage.html
  • @kohsuke github-api https://github.com/kohsuke/github-api/blob/master/pom.xml
  • Maven SCM Publish plugin https://jira.codehaus.org/browse/MSCMPUB-4 (though this does not count since it does not work with site-deploy, it has it's own target scm-publish:publish-scm)

它们都不像wagon-ftp一样有效.

None of them work as well as the wagon-ftp.

推荐答案

我发布了一个插件,该插件将处理带有github页面的多模块项目场景.设置对maven-site-plugin

I released a plugin that will handle the multi-module project scenario with github pages. It is a matter of setting the following dependency on maven-site-plugin

<plugin>
    <artifactId>maven-site-plugin</artifactId>
    <version>3.3</version>
    <dependencies>
        <dependency>
            <groupId>net.trajano.wagon</groupId>
            <artifactId>wagon-git</artifactId>
            <version>1.0.0</version>
        </dependency>
    <dependencies>
</plugin>

以下是多模块示例 https://github.com/trajano/app/tree/wagon-git-example ,可在 http://site中看到. trajano.net/app/

The following is the multi-module example https://github.com/trajano/app/tree/wagon-git-example which can be seen at http://site.trajano.net/app/

这篇关于在github页面上使用mvn site-deploy的多模块示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆