Thanks Thomas.

The bit I was missing was from the Goals menu 
( https://tbroyer.github.io/gwt-maven-plugin/plugin-info.html ), I needed 
to drill into the "gwt:compile".

And I should have known to do that if I looked at the Lifecycles menu 
( https://tbroyer.github.io/gwt-maven-plugin/lifecycles.html ), and saw it 
does the "gwt:compile" in the "prepare-package" phase.

Always learning.  Thanks again.  🙂

On Monday, 9 December 2024 at 3:17:02 am UTC+11 Thomas Broyer wrote:

> On Sunday, December 8, 2024 at 7:49:07 AM UTC+1 [email protected] 
> 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 
> <https://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideJavaToJavaScriptCompiler>
>  
> 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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/a74cd283-ccf7-45a0-bf04-746f99f3d930n%40googlegroups.com.

Reply via email to