Landslide Maven plugin

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Categories

Categories

IDE Development Tools Maven Build Tools
GroupId

GroupId

com.github.rmannibucau
ArtifactId

ArtifactId

landslide-maven-plugin
Last Version

Last Version

0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Landslide Maven plugin
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/rmannibucau/landslide-maven-plugin

Download landslide-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.rmannibucau</groupId>
    <artifactId>landslide-maven-plugin</artifactId>
    <version>0.2</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.1
org.python : jython-standalone jar 2.7-b1
commons-io : commons-io jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Landslide Maven Plugin

Usage:

  <plugin>
    <groupId>com.github.rmannibucau</groupId>
    <artifactId>landslide-maven-plugin</artifactId>
    <version>0.1-SNAPSHOT</version>
    <configuration>
      <source>${project.basedir}/src/slides/</source>
      <destination>${project.build.directory}/landslide/presentation.html</destination>
      <theme>${project.basedir}/src/slides/theme</theme> <!-- nothing means default theme -->
      <extensions>tables</extensions> <!-- markdown extensions -->
      <embed>true</embed> <!-- include js, css, images -->
    </configuration>
  </plugin>

Notes for developers

  • The build integrates python dependencies automatically in the jar.
  • mainmojo.py is mainly main.py from landslide with the following changes:
    • remove sys.exit calls
    • use args as parameter instead of relying on sys.argv
    • this file needs to be synchronized with main.py when upgrading landslide
  • runner.py the wrapper called from java

Common usage

To invoke the plugin just invoke:

mvn landslide:landslide

And in write mode it is quite easy to use:

mvn landslide:landslide -Dlandslide.watch=1

It will poll the sources to auto-update the destination.

Versions

Version
0.2
0.1