Class DetectMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="detect",
          defaultPhase=VALIDATE)
    public class DetectMojo
    extends org.apache.maven.plugin.AbstractMojo
    Detects the current operating system and architecture, normalizes them, and sets them to various project properties.
    • os.detected.name - normalized os.name (e.g. linux, osx)
    • os.detected.arch - normalized os.arch (e.g. x86_64, x86_32)
    • os.detected.classifier - a shortcut for 'os.detectedName'.'os.detectedArch' (e.g. linux-x86_64)
    • Constructor Detail

      • DetectMojo

        public DetectMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException