All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.acanda.maven.coan.VersionsMojo Maven / Gradle / Ivy

Go to download

The Code Analysis Maven Plugin runs several static analysis tools to check your code for bugs, design and formatting problems.

There is a newer version: 1.13.0
Show newest version
package ch.acanda.maven.coan;

import ch.acanda.maven.coan.version.Versions;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;

/**
 * The "versions" goal outputs the versions of the different tools.
 */
@Mojo(name = "versions", requiresProject = false, threadSafe = true)
public class VersionsMojo extends AbstractMojo {

    @Override
    public void execute() throws MojoFailureException {
        getLog().info(Versions.PLUGIN_ARTIFACT_ID + " " + Versions.getPluginVersion());
        getLog().info("PMD " + Versions.getPmdVersion());
        getLog().info("Checkstyle " + Versions.getCheckstyleVersion());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy