Maven Jacobe Plugin

This plugin lets you invoke TIOBE's Jacobe from a Maven project. All you have to do is add a dependency to this plugin in your pom.xml. Like in the following example.

<plugins>
    <plugin>
        <groupId>com.tiobe.jacobe</groupId>
        <artifactId>maven-jacobe-plugin</artifactId>
        <version>1.0</version>
        <configuration>
        </configuration>
    </plugin>
</plugins>

For more information regarding Jacobe, please visit TIOBE's website at http://www.tiobe.com.

Plugin configuration

  • Example of the plugin configuration in pom.xml
    <plugins>
        <plugin>
            <groupId>com.tiobe.jacobe</groupId>
            <artifactId>maven-jacobe-plugin</artifactId>
            <version>1.0</version>
            <configuration>
                <jacobeExecutable>c:\opt\jacobe\jacobe.exe</jacobeExecutable>
                <rules>
                    <param>indent=2</param>
                    <param>continuationindent=1</param>
                </rules>
                <configurationFile>c:\opt\jacobe\sun.cfg</configurationFile>
                <comparisonThreshold>0.01</comparisonThreshold>
                <headerFile>${basedir}/src/main/resources/header.txt</headerFile>
                <javadoc>private</javadoc>
                <noAssert>true</noAssert>
                <noEnum>true</noEnum>
                <noBackup>true</noBackup>
                <overwrite>true</overwrite>
                <outputExtension>formatted</outputExtension>
                <input>${basedir}/src/main/java</input>
            </configuration>
        </plugin>
    </plugins>
    

    The only required configuration is input. The other values assume the same default as Jacobe.