Saturday, December 28, 2024

Re: Compile multiple modules in one project

Note that you've defined more than one gwt:compile execution into a single maven module. The maven plugin you're using is capable of this, but not really designed for it - please consider splitting into multiple maven modules (1:1 with the gwt modules they seek to compile).

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.

As it happens, you have three executions as your project is configured: DiagonalSlitherlink, DiagonalSlitherlink2, and "default-cli" the default execution. All three are required to have a moduleName to be able to run. 

I believe that dropping the "gwt-app" packaging will opt you out of the default wiring that the plugin assumes, and get rid of default-cli, but you also may have some additional setup to do to make the project work once you've removed all the default wiring.

What are you trying to achieve with this?

On Saturday, December 28, 2024 at 10:25:00 AM UTC-6 ne...@propfinancing.com wrote:
I am trying to follow this example:
https://groups.google.com/g/google-web-toolkit/c/sjh6AGfeCKQ/m/Dp2fNL6HAQA
J

So, I put this into my pom.xml:
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>DiagonalSlitherlink</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<failOnError>true</failOnError>
<logLevel>INFO</logLevel>
</configuration>
</execution>
<execution>
<id>DiagonalSlitherlink2</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<failOnError>true</failOnError>
<logLevel>INFO</logLevel>

<moduleName>com._3dmathpuzzles.gwt.DiagonalSlitherlink2</moduleName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

But I get this error from Maven:

[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< com.3dmathpuzzles:3DMathPuzzlesWeb
>-----------------
[INFO] Building 3DMathPuzzlesWeb 2.1.0
[INFO] from pom.xml
[INFO] --------------------------------[ war
]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ 3DMathPuzzlesWeb ---
[INFO] Deleting C:\OneDrive\Dev\3DMathPuzzlesWeb\target
[INFO]
[INFO] --- resources:3.3.0:resources (default-resources) @
3DMathPuzzlesWeb ---
[INFO] Copying 0 resource
[INFO] Copying 52 resources
[INFO]
[INFO] --- compiler:3.10.1:compile (default-compile) @ 3DMathPuzzlesWeb
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 65 source files to
C:\OneDrive\Dev\3DMathPuzzlesWeb\target\classes
[INFO]
[INFO] --- gwt:1.1.0:compile (default-cli) @ 3DMathPuzzlesWeb ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.939 s
[INFO] Finished at: 2024-12-28T10:24:00-06:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
net.ltgt.gwt.maven:gwt-maven-plugin:1.1.0:compile (default-cli) on project
3DMathPuzzlesWeb: The parameters 'moduleName' for goal
net.ltgt.gwt.maven:gwt-maven-plugin:1.1.0:compile are missing or invalid
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException


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/70ea2e33-11c7-447b-8c4d-dcd8d83cbe47n%40googlegroups.com.

No comments:

Post a Comment