Hello ,
I'm currently trying to set up a project structure inside my IDE which will serve has the basis of almost all my project using :
- Vaadin 7
- Some third party gwt library
- Client side vaadin module ( eventually )
etc …
So i would like to have some advice on structure and if it’s possible to do it that way, here is what i would like to have ( for info i’m using Intellij Ide):
Maven project structure
The naming of component and folder here is just to make the structure more obvious.
src/main
java
|_ com.example.basic
domain
repository
services
web
|_gwt
| |_button
| | |_client
| | | |
| | | VCustomButton.java
| | |
| | CustomButton.java
| | CustomButton.gwt.xml
| |
| |
| |_ProgressBar
| | |_client
| | | |
| | | VCustomProgressBar.java
| | |
| | CustomProgresBar.java
| | CustomProgresBar.gwt.xml
| |
| |
| |_Tabpanel
| | |_client
| | | |
| | | VCustomTabPanel.java
| | |
| | CustomTabPanel.java
| | CustomTabPanel.gwt.xml
| |
| | etc ....
|
Views
|_SommeView.java
| |_AnotherView.java
|
|
MyVaadinAppRoot.java
SomeOtherClass.java etc ...
This just an example, but you get the idea. The main question is how can i make the widgetset compilation maven friendly.
i mean is it possible to add one “main” gwt.xml tha will inherit from CustomProgresBar.gwt.xml, CustomTabPanel.gwt.xml, CustomButton.gwt.xml etc … ?
And even so, where should i place this “main.gwt.xml” in the structure above.
I’m new to gwt and vaadin so maybe my package structure doesn’t fit at all, please let me know how to do this in an explicite way .
thank you vaadin community