I've been trying to figure this out for some time and I think I'm stuck.
I have a simple project with only the example pricing decision table in it and GreetingResource.
It compiles and runs fine using:
mvn clean compile quarkus:dev
But when I try to build a legacy jar file using:
mvn clean compile -Pnative quarkus:build
The build fails with the following error:
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:build (default-cli) on project kogito-example: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /META-INF/resources
If I take the pricing.dmn file out of the project, the build of the legacy jar works fine.
FYI, I added the following to the pom file, but otherwise it is as generated from the quarkus site.
<quarkus.package.type>legacy-jar</quarkus.package.type>
I'd appreciate any guidance that could be provided.
I'm running on Windows 10, openjdk 17.0.1, maven 3.8.4
Regards,
Doug