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

François Esthète picture François Esthète · Aug 7, 2012 · Viewed 13.4k times · Source

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?

Answer

Kapelchik picture Kapelchik · Aug 7, 2012

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