Class ToolchainMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.toolchain.ToolchainMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="toolchain", defaultPhase=VALIDATE, configurator="toolchains-requirement-configurator") public class ToolchainMojo extends org.apache.maven.plugin.AbstractMojo
Check that toolchains requirements are met by currently configured toolchains and store the selected toolchains in build context for later retrieval by other plugins.
Author:
mkleint
  • Constructor Details

    • ToolchainMojo

      public ToolchainMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getToolchainRequirementAsString

      protected String getToolchainRequirementAsString(String type, Map<String,String> params)
    • selectToolchain

      protected boolean selectToolchain(String type, Map<String,String> params) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException