Archimedes Trajano
Archimedes Trajano

Reputation: 41310

Multi-module example of using mvn site-deploy with github pages

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.

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:

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

Upvotes: 2

Views: 1261

Answers (3)

Wolfgang Fahl
Wolfgang Fahl

Reputation: 15769

see the example

and detailed analysis

suggesting to simply use maven-site-plugin and a bash-script function.

Upvotes: 0

Archimedes Trajano
Archimedes Trajano

Reputation: 41310

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>

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/

Upvotes: 1

docwhat
docwhat

Reputation: 11704

Have you looked at GitHub's site-maven-plugin? It seems to be exactly what you want.

Upvotes: 2

Related Questions