Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 424
François Esthète Avatar asked Dec 03 '22 02:12

François Esthète


1 Answers

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

like image 82
kapandron Avatar answered Dec 26 '22 01:12

kapandron