Using maven plugin default output directory "generated-sources/xyz"?

226 views
Skip to first unread message

steffen...@gmail.com

unread,
Jun 7, 2018, 8:54:43 AM6/7/18
to jsonschema2pojo-users
Hi,

I read that some convention is using target/generated-sources/PLUGIN (https://stackoverflow.com/a/38394608), I'm not sure whether this is Netbeans specific or not. 

So (at least) Netbeans users may link to add:

  <outputDirectory>${project.build.directory}/generated-sources/jsonschema2pojo/</outputDirectory>
or
  <outputDirectory>${basedir}/target/generated-sources/jsonschema2pojo/</outputDirectory>

to the configuration. If there is no special reason for the current default output directory ("java-gen"), maybe this could be considered as default instead?

Steffen

Joe Littlejohn

unread,
Jun 8, 2018, 8:59:57 AM6/8/18
to jsonschema...@googlegroups.com
Thanks for raising this. 

I don't recall why I chose 'java-gen' way back when the jsonschema2pojo plugin was first created. I would definitely be keen to get this sorted for 1.0.0, since we're introducing other breaking changes there. It would be good to be sure that the scheme you have described really is the de facto standard, but assuming that it is (it seems logical) then I'd accept a PR that changes the default.


--
You received this message because you are subscribed to the Google Groups "jsonschema2pojo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonschema2pojo-...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsonschema2pojo-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages