Package kr.motd.maven.os
Class DetectMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- kr.motd.maven.os.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
- normalizedos.name
(e.g.linux
,osx
)os.detected.arch
- normalizedos.arch
(e.g.x86_64
,x86_32
)os.detected.classifier
- a shortcut for'os.detectedName'.'os.detectedArch'
(e.g.linux-x86_64
)
-
-
Constructor Summary
Constructors Constructor Description DetectMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-