Search code examples
javamavengwtcompiler-errorsgwt2

GWT - Compilation error: No source code is available for type


I am building GWT application by Maven.

When compiling get the following message:

Validating newly compiled units

At first there is this warning:

[WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts

Then there is this error:

[ERROR] Line 19: No source code is available for type org.apache.commons.lang.StringUtils did you forget to inherit a required module?

Despite this build does not fall and Dev mode works properly. How can I get rid of these error messages?


Solution

  • Perhaps a reason is in your module file. You should to identify packages that is to be compiled. This is configured in .gwt.xml module.

    <source path="packagename">
    

    And GWT compiler will compile packages gwtxmlmodulepath.packagename.

    See more