If you just add software.amazon.smithy.java:codegen-plugin to your dependencies without adding software.amazon.smithy.java:framework-errors and run server codegen it will fail at runtime at this line:
software/amazon/smithy/java/framework/model/UnknownOperationException
java.lang.NoClassDefFoundError: software/amazon/smithy/java/framework/model/UnknownOperationException
at software.amazon.smithy.java.codegen.server.generators.ServiceGenerator$GetOperationGenerator.lambda$run$0(ServiceGenerator.java:347)
at software.amazon.smithy.utils.AbstractCodeWriter.openBlock(AbstractCodeWriter.java:1612)
It looks like an explicit dependency on framework-errors in codegen-plugin is missing?
If you just add
software.amazon.smithy.java:codegen-pluginto your dependencies without addingsoftware.amazon.smithy.java:framework-errorsand run server codegen it will fail at runtime at this line:It looks like an explicit dependency on
framework-errorsincodegen-pluginis missing?