ch.acanda.maven.coan.VersionsMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-analysis-maven-plugin Show documentation
Show all versions of code-analysis-maven-plugin Show documentation
The Code Analysis Maven Plugin runs several static analysis tools to check
your code for bugs, design and formatting problems.
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