Class DetectExtension


  • @Component(role=org.apache.maven.AbstractMavenLifecycleParticipant.class,
               hint="detect-os")
    public class DetectExtension
    extends org.apache.maven.AbstractMavenLifecycleParticipant
    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

      • DetectExtension

        public DetectExtension()
    • Method Detail

      • afterProjectsRead

        public void afterProjectsRead​(org.apache.maven.execution.MavenSession session)
                               throws org.apache.maven.MavenExecutionException
        Overrides:
        afterProjectsRead in class org.apache.maven.AbstractMavenLifecycleParticipant
        Throws:
        org.apache.maven.MavenExecutionException