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
I am using the jsonschema2pojo-maven-plugin to generate java sources via maven.
I have java version 11 installed on my PC but I need to generate the sources for both java8 and java11 versions.
I have tried configuring the targetVersion attribute in the plugin but it still seems to be generating the source for java 11. Basically it is picking up the java version of the installed JRE and not the targetVersion property.
So as next step when I try to compile the sources as java8 it fails.
The reason is because then import statements are generated as import javax.annotation.processing.Generated; and not import javax.annotation.Generated;
Any idea if this is an issue or how this can be worked around.
The text was updated successfully, but these errors were encountered:
I am using the
jsonschema2pojo-maven-plugin
to generate java sources via maven.I have java version 11 installed on my PC but I need to generate the sources for both java8 and java11 versions.
I have tried configuring the
targetVersion
attribute in the plugin but it still seems to be generating the source for java 11. Basically it is picking up the java version of the installed JRE and not thetargetVersion
property.So as next step when I try to compile the sources as java8 it fails.
The reason is because then import statements are generated as
import javax.annotation.processing.Generated;
and notimport javax.annotation.Generated;
Any idea if this is an issue or how this can be worked around.
The text was updated successfully, but these errors were encountered: