BEWSoftware MDj Maven Plugin

mdj (goal)

This goal executes the underlying program, causing it to process the markdown files (*.md) in the source directory, storing the output files (*.html) in the destination directory.

Additional options are available for:

pom.xml

Add the following to your pom.xml file.

    
<project>
    ...
    <build>
        <plugins>
            <plugin>
                <groupId>com.bewsoftware.mojo</groupId>
                <artifactId>mdj-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <id>MDj-Compile</id>
                        <goals>
                            <goal>mdj</goal>
                        </goals>
                        <configuration>
                            <source>src/docs/manual</source>
                            <destination>target/docs/manual</destination>
                            <verbosity>1</verbosity>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            ...
        </plugins>
    </build>
</project>
    

I suggest that putting the plugin into a separate profile would be a good idea, so it only runs when you need it to.

Configuration

<source>

property * defaultValue
mdj.directory.source src/docs

The source directory for markdown files.

<destination>

property * defaultValue
mdj.directory.destination target/docs

The destination directory for HTML files.

<wrapper>

defaultValue
target/docs

Process meta block, wrapping your document with templates and style sheets.

<recursive>

defaultValue
true

Recursively process directories.

<verbosity>

defaultValue
0

Set the level of verbosity.