This code should be changed:
if (genPackages) {
deployParams.setBundleType(BundleType.NATIVE); <-- here
deployParams.validate();
packager.generateDeploymentPackages(deployParams);
}
if "-native image" is passed in then BundleType.NATIVE is set and should remain. Fix that.
if (genPackages) {
deployParams.setBundleType(BundleType.NATIVE); <-- here
deployParams.validate();
packager.generateDeploymentPackages(deployParams);
}
if "-native image" is passed in then BundleType.NATIVE is set and should remain. Fix that.