If there really is a regression then it would be worth a Github issue so 
that it gets fixed. I'd recommend, however, first debugging into the 
Dropwizard stack a bit to try and figure out what's going on.

The Dropwizard manual's recommendation to structure a project into three Maven 
modules <https://maven.apache.org/guides/mini/guide-multiple-modules.html> 
— api, client, and application (aka server) — is so that the api's 
"representation" definitions (Java classes that get mapped between Java 
objects and JSON) can be shared by both the client and server modules. (Or 
instead of Maven modules you could have three entirely separate Maven 
projects.) If you don't have an api jar that can be imported by Java client 
apps, then they will have to redefine those Java "representation" classes 
themselves, duplicating code, and creating an opportunity for mismatches 
and errors. This 3-module project structure works well if you have a 
Java-based client app, but it's not really necessary if you are building a 
web app that serves JSON and/or HTML to non-Java clients like a web 
browser. In that case you could just have a simple Maven project with no 
modules that includes api and server code together.

Regards,
Doug


On Monday, July 10, 2017 at 5:25:22 PM UTC-4, Flavio Silveira wrote:
>
>
> Hi Douglas,
>
> Do you think would worth to create an issue on github explaining this to 
> see their answer?
>
> Also, from the manual it seems the preferable way of organizing a project 
> is having separated projects for api, client and application as per here: 
> http://www.dropwizard.io/1.1.2/docs/manual/core.html#organizing-your-project 
> <http://www.google.com/url?q=http%3A%2F%2Fwww.dropwizard.io%2F1.1.2%2Fdocs%2Fmanual%2Fcore.html%23organizing-your-project&sa=D&sntz=1&usg=AFQjCNHAdlDDgJG7IroiN-ft0P-Iet9vug>
>
> As a novice I wonder if that means actually 3 projects, being: 1- a REST 
> server, 2- the front-end, 3- both together. 
>
> If that is what it means, I don't see how to do it, but maybe this out of 
> scope of this thread.
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to