Scanning model packages in other components which are part of a maven build of sub projects in Eclipse

10 views
Skip to first unread message

coderinabstract

unread,
Dec 29, 2012, 2:54:36 PM12/29/12
to gwt-val...@googlegroups.com
First of all thank you for this wonderful framework. I have had a perfect setup and using this framework for a while via Maven and eclipse with Dev mode running and continuous dev.

Yesterday ran into a problem where I have a maven set of components with parent POM project and maven Sub project dependencies with gwt modules as part of a set of libraries and components/modules

We have a shared DTO maven sub project with DTOs shared between client and server, which is different then the shared folder of the web app. As long as I have the dtos in the web app shared directory everything is working fine by defining model packages to search for, however any DTO in shared sub project, when I include in model package scan that library I am getting ClassnotFound exceptions and am really stuck in a bind.

Any thoughts on how to overcome without rearchitecting the design of the build and the components and modules.

By the way the GWT app runs fine with all the classes in the shared sub project used by client and server side component jars/modules. It is just the model package scan that fails and app cannot start, once I remove shared model package, it works,but no validation for those DTOs.

Appreciate any feedback.

Cheers and Thanks...

coderinabstract

unread,
Dec 31, 2012, 5:20:14 PM12/31/12
to gwt-val...@googlegroups.com
Dont know what happened here for root cause, but this problem is not occuring after I upgraded app to GWT 2.5 with GIN 2.0 and using new Maven GWT 2.5 version plugin for Eclipse... Now the scanning works fine across maven subprojects/modules with the DTOs.. Cheers.
Reply all
Reply to author
Forward
0 new messages