This code block
if (compress != null) {
commandArguments.add(" --compress");
if (compress < 0 || compress > 2) {
throw new MojoFailureException("The given compress parameters " + compress + " is not in the valid value range from 0..2");
}
commandArguments.add(" " + compress);
}
in JavaFXJLinkMojo.java restricts the compress argument to 0, 1 or 2. These values are depricated and replaced by zip-[0-9]. I don't believe the default should be changed but allowing the new values to be specified in the pom plugin configuration would be a good thing.