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
So users may like adding: <outputDirectory>${project.build.directory}/generated-sources/jsonschema2pojo/</outputDirectory>
to the configuration section in the POM.xml file.
Unless there is a special reason for the current default output directory (java-gen), I think this should be considered as default instead:
target/generated-sources/jsonschema2pojo
The text was updated successfully, but these errors were encountered:
@sdettmer If you submit a PR for this, I'll merge.
This is probably a breaking change for some people, however since the jsonschema2pojo-maven-plugin itself automatically adds the output directory as a maven 'compile source root' it should not be a breaking change for most users.
I read that Maven convention for the storing location for generated source code is
target/generated-sources/PLUGIN
, so we should usetarget/generated-sources/jsonschema2pojo
as output directory name.
According to https://stackoverflow.com/a/38394608 and https://stackoverflow.com/q/19325525 this is not in Mavens Standard Directory Layout, but it is a common convention.
One official looking page suggest the same:
https://maven.apache.org/guides/mini/guide-generating-sources.html points to http://www.antlr.org/api/maven-plugin/latest/ which says:
Other projects are using "generated-sources/*" as well, for example:
So users may like adding:
<outputDirectory>${project.build.directory}/generated-sources/jsonschema2pojo/</outputDirectory>
to the
configuration
section in thePOM.xml
file.Unless there is a special reason for the current default output directory (
java-gen
), I think this should be considered as default instead:target/generated-sources/jsonschema2pojo
The text was updated successfully, but these errors were encountered: