Saturday, December 7, 2024

Re: How to put output from GWT compile into my html directory?

I feel your pain.  The gwt-maven-plugin works great, but personally, I find it hard to understand how to configure it.

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.

Another option would be to move it with the maven-resources-plugin copy-resources after it's built.  But that would mean it wouldn't work during development.

On Sunday, 8 December 2024 at 4:01:44 pm UTC+11 Neil Aggarwal wrote:

Hello:

 

I am trying to integrate GWT into an existing maven project.

 

My maven build calls gwt:compile and it creates several files
in target/3dmp/com._3dmathpuzzles.play.Play

 

I would like that output to go to a different directory

html/play so it will be served directly by my httpd server.

NOTE: this directory is not under in the target directory

 

I don't see anything about that in the GWT compiler options

documentation.

 

Thank you,

 Neil

 

--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!

 

--
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/8276d216-3ec1-4b78-b174-c7f4a78cd4dcn%40googlegroups.com.

No comments:

Post a Comment