wiki/typical-development-scenarios.md
... ...
@@ -46,6 +46,21 @@ Whenever you add another GWT RPC service, make sure to add it to the list of ser
46 46
* Add the library to our central maven repository /home/trac/maven-repositories by using the mvn: install:install-file command
47 47
* Command sample to add the library gwt-maps-api-3.9.0-build-17.jar: mvn install:install-file -Dfile=/home/trac/git/java/com.sap.sailing.gwt.ui/WEB-INF/lib/gwt-maps-api-3.9.0-build-17.jar -DgroupId=com.github.branflake2267 -DartifactId=gwt-maps-api -Dversion=3.9.0-build-17 -Dpackaging=jar -DlocalRepositoryPath=/home/trac/maven-repositories
48 48
49
+## Adding a shared GWT library bundle
50
+
51
+Sometimes we need a bundle containing code and resources which can be used by other GWT bundles (GWT library).
52
+To create and use such a bundle from another GWT bundle (e.g. com.sap.sailing.gwt.ui) some additional steps compared to the normal Java bundle creation are required.
53
+
54
+GWT library bundle project creation
55
+* Add a new Java plugin project, using <git-workspace>/java/<bundle-name> as the project directory
56
+* Add the GWT-SDK dependency to the project
57
+* Add a GWT module file to project (ModuleName.gwt.xml)
58
+* Add the bundle to the main pom.xml in /git/java
59
+
60
+Use the GWT library project in a GWT UI project
61
+* Add the src folder of the GWT library bundle to classpath of all GWT-Launch configurations (required to let the GWT dev mode find the sources of java classes) -> Open GWT launch config, select tab 'classpath', select 'User entries', click 'Advanced' button, choose 'add folders' option and add the src folder of the GWT library project
62
+* Add the bundle the pom.xml of the GWT UI project (for the maven build)
63
+
49 64
50 65
## Adding an GWT Extension Library (With Source Code)
51 66
TODO (see Highcharts example)