Class JpackagePropsMojo
java.lang.Object
network.ike.plugin.JpackagePropsMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
@Mojo(name="jpackage-props",
defaultPhase="initialize",
projectRequired=true)
public class JpackagePropsMojo
extends Object
implements org.apache.maven.api.plugin.Mojo
Compute build timestamp, platform, and JPackage version properties.
Sets ~19 Maven project properties consumed by JReleaser's jpackage assembler via resource-filtered YAML. Replaces build-helper-maven-plugin timestamp/regex executions, maven-antrun-plugin derived-property logic, and OS-activated Maven profiles for platform detection.
All timestamps are UTC. Platform detection uses os.name and
os.arch system properties mapped to JReleaser canonical names.
Windows MSI version constraints (Minor ≤ 255) are handled automatically.
Usage:
mvn ike:jpackage-props
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JpackagePropsMojo
public JpackagePropsMojo()Creates this goal instance.
-
-
Method Details
-
getLog
protected org.apache.maven.api.plugin.Log getLog()Access the Maven logger.- Returns:
- the logger
-
execute
public void execute() throws org.apache.maven.api.plugin.MojoException- Specified by:
executein interfaceorg.apache.maven.api.plugin.Mojo- Throws:
org.apache.maven.api.plugin.MojoException
-