Blazebit / jbake-maven-plugin

Apache License 2.0
5 stars 1 forks source link

Maven Central

JBake Maven Plugin

A Maven plugin for building and running JBake sites.

This plugin is separate from ingenieux's plugin, although it was inspired by it. Until the pull request for allowing configuration overrides is merged and the 2.7 version of the official plugin is released, this plugin can be seen as a replacement for the retired plugin.

The minimum requirements are Maven 3.0.0 and JDK 7.

What is it?

A simple wrapper around JBake that supports building and running a site through Maven goals.

Features

The plugin is a simple wrapper around JBake with support for

How to use it?

Just include the plugin in your build

<build>
    <plugins>
        <plugin>
            <groupId>com.blazebit</groupId>
            <artifactId>jbake-maven-plugin</artifactId>
            <version>1.0.1</version>
            <executions>
                <execution>
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>build</goal>
                    </goals>
                    <configuration>
                        <properties>
                            <site.url>http://localhost:8820/</site.url>
                        </properties>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

You can override the port or IP address on which the site is served via system properties.

mvn jbake:serve -Djbake.port=1234 -Djbake.listenAddress=127.0.0.1

Licensing

This distribution, as a whole, is licensed under the terms of the Apache License, Version 2.0 (see LICENSE.txt).