Msb3 Maven Skin

Responsive Apache Maven skin built on Bootstrap 3.3

Msb3 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 Msb3 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 msb3-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>3.3</version>
      <dependencies>
        ...
        <dependency>
          <groupId>pl.matsuo.maven.skins</groupId>
          <artifactId>msb3-velocity-tools</artifactId>
          <version>0.1.1</version>
        </dependency>
        ...
      </dependencies>
      ...
    </plugin>
    ...
  </plugins>
</build>

Back to top

Version: 0.1.2-SNAPSHOT. Last Published: 2015-12-21.

Msb3 Maven skin by Marek Romanowski.