> Only one of your <execution>s defines <moduleName>, and the error is letting you know that
> at least one execution doesn't define a moduleName.
Oops. I was editing the file and accidentally deleted that. I fixed it, but I am still getting
the error.
> What are you trying to achieve with this?
I am trying to create a war file which has two GWT endpoints in it.
I would like to access them by these URLs:
https://dev.3dmathpuzzles.com/3dmp/DiagonalSlitherlink.html
and
https://dev.3dmathpuzzles.com/3dmp/DiagonalSlitherlink2.html
> did you remove gwt-app as the packaging?
I want the project packaged into a single war file which I upload
to my server.
I am not knowledgeable enough about Maven and GWT to understand
most of your emails but I am working through them.
I was able to get it working by setting the goals in my run configuration to:
clean compile gwt:compile@DiagonalSlitherlink gwt:compile@DiagonalSlitherlink2 war:war
> If you're asking my advice, add a switch/case to your entrypoint based on window.location.pathname,
> and keep a single entrypoint
I am not sure that will work. Different puzzles might have completely different layouts.
For example, I am designing my Diagonal Slitherlink puzzle to be completely contained
in the GWT UI, but I am envisioning the TripleCross puzzles to have the clues in the HTML
below the UI.
> Producing a single war from multiple maven modules is straightforward
I will look into that.
I am not sure that will work. Different puzzles might have completely different layouts.
For example, I am designing my Diagonal Slitherlink puzzle to be completely contained
in the GWT UI, but I am envisioning the TripleCross puzzles to have the clues in the HTML
below the UI.
> if each HTML page has its own layout as you already have it, but all load "games/games.nocache.js", and
> the entrypoint there tests the name of the HTML page that loaded it to decide what to do next, the rest of the
> code and module could be shared
Maybe you are right. I am going to test it.
> if each HTML page has its own layout as you already have it, but all load "games/games.nocache.js",
> and the entrypoint there tests the name of the HTML page that loaded it to decide what to do next,
> the rest of the code and module could be shared.
You are correct. I tried it and it is working. Thanks for the advice!