Open keinhaar opened 1 month ago
@keinhaar this PR looks great, and the implementation looks simply reasonable. Before reviewing / merging, I'd like to know @niloc132 opinion about it. Multi-module templates is definitely the right way to use GWT, classpath issues bite very often, but:
1) Is there any overlap with what the SDK does already? 2) The build is Eclipse only (no maven, no gradle), does this make sense? (I think so, honestly) - @keinhaar I don't find any pom.xml file, but I see something about maven nature. Am I rigth or not, that maven is not involved?
BTW the solution is expandable either by adding to the template dir, or defining an env variable. Not bad!
1. Is there any overlap with what the SDK does already?
It just uses modified versions of the files that are created by the sdk.
- The build is Eclipse only (no maven, no gradle), does this make sense? (I think so, honestly) - @keinhaar I don't find any pom.xml file, but I see something about maven nature. Am I rigth or not, that maven is not involved? maven based example could be added easily by just providing a template with pom files. I did not create more templates, because i did not know if this would be accepted. BTW the solution is expandable either by adding to the template dir, or defining an env variable. Not bad!
The env variable makes it possible to create and use your own custom templates. Thats what i personally would like to use, because my applications often have 5 or even 6 projects which depend on each other.
@keinhaar Thanks for contributing. I would suggest to provide only the multi module templates. GWT is moving to a more serverless approach. AFAIK the webappcreator inside GWT is deprecated for that reason (only one single module). And, as @protoism already mention, a Maven module artifact using the gwt-maven-plugin would be nice.
And, having a template project using Spring Boot on the server side would be fine. ;-)
It just uses modified versions of the files that are created by the sdk
Just use the archetype creators for generating the template files:
These are the suggested way creating a new project: https://www.gwtproject.org/gettingstarted-v2.html
@niloc132 Could you please have a look on this pull request, as @protoism requested?
It just uses modified versions of the files that are created by the sdk
Just use the archetype creators for generating the template files:
* https://github.com/tbroyer/gwt-maven-archetypes (Tomcat) * https://github.com/NaluKit/gwt-maven-springboot-archetype (Spring Boot)
These are the suggested way creating a new project: https://www.gwtproject.org/gettingstarted-v2.html
I've created a maven based template using the instructions on the gettingstarted-v2 page. It runs just fine if used with maven, but there are some problems running it from eclipse:
To make it work from eclipse the following steps are required:
<source path=""/>
to <source path="MAINPACKAGE"/>
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel INFO -codeServerPort 9997 -port 8888 -war /YOURPATH/PROJECTNAME/PROJECTNAME-server/src/main/webapp module module
I'm in doubt if i should add it in this state. Because i don't use maven, some maven user may decide this. @protoism, @FrankHossfeld? What do you think?
@protoism I've fixed all the things that collin suggested.