Msb4 Maven Skin

Apache Maven skin built on Bootstrap 4.0

Msb4 skin provides custom tools for Apache Velocity to be used in Maven site template. These objects are contributed to Velocity context and can be used within the template. Refer to Javadoc for each tool for more information.

  • SkinConfigTool (key $config)

    Provides a uniform access to Maven site custom configuration options. Supports global and per-page configuration. See info on per-page configuration in Msb4 skin for an example of features it brings.

  • HtmlTool (key $htmlTool)

    Provides methods to modify and query HTML text using jsoup library.

  • URITool (key $uriTool)

    Provides URI utilities that expose URIs to the template.

Usage

To enable these tools, add msb4-velocity-tools dependency to maven-site-plugin in the POM file:

<build>
  <plugins>
    ...
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-site-plugin</artifactId>
      <version>4.0</version>
      <dependencies>
        ...
        <dependency>
          <groupId>pl.matsuo.maven.skins</groupId>
          <artifactId>msb4-velocity-tools</artifactId>
          <version>0.1.0-SNAPSHOT</version>
        </dependency>
        ...
      </dependencies>
      ...
    </plugin>
    ...
  </plugins>
</build>

Back to top

Version: 0.1.0-SNAPSHOT. Last Published: 2016-01-03.

Msb4 Maven skin by Marek Romanowski.