You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
This is causing a conflict with maven-checkstyle-plugin which is throwing errors when simple java.lang imports are present. So we end up having to manually edit ResponseDelegate where we shouldn't touch generated code.
Seems like we're depending on an older version of javapoet. Maybe that option was introduced later on or not working as expected in that version? MY 2c :)
Hello,
The issue is that the generated ResponseDelegate contains this:
It should only contain this java.lang import:
This is causing a conflict with maven-checkstyle-plugin which is throwing errors when simple java.lang imports are present. So we end up having to manually edit ResponseDelegate where we shouldn't touch generated code.
I looked into it and found that there is a
skipJavaLangImports
flag on the javapoet library, which can be set here:https://github.com/mulesoft-labs/raml-for-jax-rs/blob/master/raml-to-jaxrs/jaxrs-code-generator/src/main/java/org/raml/jaxrs/generator/ResponseSupport.java#L105
However it doesn't work when I try to set it to true.
Just my two cents, as we're trying to reduce friction around the maven plugin.
The text was updated successfully, but these errors were encountered: