On Sunday, December 8, 2024 at 7:49:07 AM UTC+1 ma...@craig-mitchell.com wrote:
I feel your pain. The gwt-maven-plugin works great, but personally, I find it hard to understand how to configure it.
The documentation is not "high level", and you have to understand both Maven and GWT, and I agree it can be a barrier to entry.
The plugin (and its documentation) are here to answer the question "how do I use GWT from Maven?", so you start by understanding how GWT works then ask yourself "OK, now how do I do that with Maven?", and the plugin is here for that, and is a relatively "thin" level of abstraction: https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html
I fully understand that people come from many different horizons and don't necessarily approach it that way, but I'm happily leaving that to others to document (on the gwtproject.org site?)
This is my setup:<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<moduleName>team.drift.EntryPointMain</moduleName>
<moduleShortName>dt</moduleShortName>
<workDir>${basedir}/target/gwt/workDir</workDir>
<deploy>${project.build.directory}/${project.build.finalName}/WEB-INF/deploy</deploy>
<compilerArgs>
<!--
Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile)
Report goes in: drift-team-client\target\extras\dt\soycReport\compile-report\index.html
-->
<!-- <arg>-compileReport</arg> -->
</compilerArgs>
</configuration>
</plugin>I have no clue what workDir and deploy arguments do, and I can't find them in the doco: https://tbroyer.github.io/gwt-maven-plugin/ The only reason they are there, is I used https://github.com/NaluKit/gwt-maven-springboot-archetype to generate my app, and it put them there.
They're documented on this page: https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html
They directly map to the similarly-named options of the GWT compiler documented on that page: https://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/5d118776-13f9-4a92-ba62-bdeb011d3fean%40googlegroups.com.
No comments:
Post a Comment