GWT module may need to be (re)compiled REDUX

前端 未结 8 1591
日久生厌
日久生厌 2020-11-27 03:30

When running in compiled mode I get this dreaded GWT Module \'mymodule\' may need to be (re)compiled dialog message.

I\'ve compiled a list of the things that others

相关标签:
8条回答
  • 2020-11-27 04:32

    You have to run mvn gwt:compile additionally to the usual mvn clean install package, as the GWT-compilation is NOT part of the maven-package-phase. This solves the annoying Javascript-(re)compile-error.

    0 讨论(0)
  • 2020-11-27 04:34

    My Dev mode was correctly configured and above solution didn't work. Following did solve the issue though.

    Multiple steps:

    1. Update Project properties -> deployment Assembly using Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory
    2. mvn clean package
    3. mvn gwt:compile
    4. In eclipse, click on 'GWT Compile Project' -> Advacned -> Remove '-war src/main/webapp' argument and hit compile.

    Output should be like this - Linking into target/project-1.0-SNAPSHOT/ModuleName

    ... and deployment works fine.

    0 讨论(0)
提交回复
热议问题