@Mojo(name="detect",
defaultPhase=VALIDATE,
threadSafe=true)
public class DetectMojo
extends org.apache.maven.plugin.AbstractMojo
os.detected.name - normalized os.name (e.g. linux, osx)os.detected.arch - normalized os.arch (e.g. x86_64, x86_32)os.detected.bitness - bitness from wither sun.arch.data.model or com.ibm.vm.bitmode or os.arch
(e.g. 64, 32)os.detected.classifier - a shortcut for 'os.detectedName'.'os.detectedArch'
(e.g. linux-x86_64). If the property ${os.detection.classifierWithLikes} is set,
the first value for which a corresponding os.detected.release.like.{variant} property
exists will be appended to the classifier (e.g. building on ubuntu with
os.detection.classifierWithLikes = "debian,rhel" would result in
os.detected.classifier = "linux-x86_64-debian").os.detected.release - provides the ID for the linux release (if available).os.detected.release.version - provides version ID for this linux release. Only
available if ${os.detected.release} is also available. os.detected.release.like.{variant} - Identifies a linux release that this release is
"like" (for example, ubuntu is "like" debian). Only available if ${os.detected.release} is also
available. An entry will always be made for os.detected.release.like.${os.detected.release}. | Constructor and Description |
|---|
DetectMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
static java.util.List<java.lang.String> |
getClassifierWithLikes(java.lang.String propertyValue)
Takes a comma-separated value of os "likes" to be included in the generated classifier and
returns them as a list.
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic static java.util.List<java.lang.String> getClassifierWithLikes(@Nullable
java.lang.String propertyValue)
propertyValue - the value of the CLASSIFIER_WITH_LIKES_PROPERTY property.Copyright © 2014-2021 Trustin Lee. All Rights Reserved.