I am using version 2.5.
I am refactoring 3 SmartGWTPro apps by removing common datasource and UI client side Java code and creating a separate library project that can be shared across all 3 apps.
Obviously no problems at all with the server side code. However, the GWT compiler needs to "see" the client Java code in the common library.
The worst solution: set symbolic links in the 3 web applications so it looks like the source tree is in each of the project directories. I really would prefer to not do this.
Another possible solution might be to use the "maven-source-plugin" to also generate a source jar for the common library but I don't know how to:
1. use the source jar when running in dev mode (mvn gwt:run).
2. use the source jar when running a GWT/SmartGWT app in InteliJ
3. build a deployable war file
Any advice will be greatly appreciated.
Thanks!,
Mark
I am refactoring 3 SmartGWTPro apps by removing common datasource and UI client side Java code and creating a separate library project that can be shared across all 3 apps.
Obviously no problems at all with the server side code. However, the GWT compiler needs to "see" the client Java code in the common library.
The worst solution: set symbolic links in the 3 web applications so it looks like the source tree is in each of the project directories. I really would prefer to not do this.
Another possible solution might be to use the "maven-source-plugin" to also generate a source jar for the common library but I don't know how to:
1. use the source jar when running in dev mode (mvn gwt:run).
2. use the source jar when running a GWT/SmartGWT app in InteliJ
3. build a deployable war file
Any advice will be greatly appreciated.
Thanks!,
Mark
Comment