<module rename-to='mymodule'>
<!-- Inherits -->
<!-- ... -->
<!-- Entry point -->
<entry-point class="com.mycompany.mymodule.client.mymodule"></entry-point>
<!-- paths -->
<source path='client' />
<source path='shared' />
<!-- SDM -->
<!-- <add-linker name="xsiframe"/>
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
<set-property name="compiler.useSourceMaps" value="true"/> -->
<set-configuration-property name="CssResource.conversionMode" value="strict" />
</module>Hey guys,
I'm trying to migrate my app which looks like this :GWT 2.5.1 front, PHP back, no maven -> GWT 2.8.2 front, PHP back, maven with gwt-maven-plugin.I manage to mvn gwt:compile and mvn gwt:run-codeserver.I actually think I'm confused about how the SDM runs now in 2.7+ but here is what I was thinking :
- Run compile (optional ? ) via mvn gwt:compile
- Run code server via mvn gwt:run-codeserver
- Save the bookmarklet and compile via the popup on my gwt page
- re-compile on every code change manually
Loading Java files in (project shared).
[ERROR] Errors in 'file:(some client project file)'
No source code is available for type '(some file from shared project)' ; did you forget to inherit a required module?
<dependency> <groupId>${project.groupId}</groupId> <artifactId>shared</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>shared</artifactId> <version>${project.version}</version> <classifier>sources</classifier> </dependency>Hi everyone, and Thomas especially :pI'm migrating a larger legacy project to the actual GWT standards. I'm running into many problems but I'm sure they are all due to my misunderstanding of how to wire modules between them. Here is the context and my questions :My old project structure was (GWT 2.5) :Shared: gwt project - pure clientside gwtWebUI: gwt project, depending on SharedMobileUI: gwt project, depending on SharedNew project (GWT 2.8.2) :Right now I'm trying just to have WebUI working, so I'm inspiring from Thomas's gwt-maven-archetypes (modular webapp).
My architecture is :
- root-project
- pom.xml
- shared
- pom.xml
- src/main/module.gwt.xml
- web-client
- pom.xml
- src/main/module.gwt.xml
Questions
- When I try to gwt:codeserver :
Loading Java files in (project shared).
[ERROR] Errors in 'file:(some client project file)'
No source code is available for type '(some file from shared project)' ; did you forget to inherit a required module?
Although I have these dependencies set in my client pom.xml :I also added maven-source-plugin to both client and shared.<dependency><groupId>${project.groupId}</groupId><artifactId>shared</artifactId><version>${project.version}</version></dependency><dependency><groupId>${project.groupId}</groupId><artifactId>shared</artifactId><version>${project.version}</version><classifier>sources</classifier></dependency>
- I have some old gwt .jar dependencies that do not seem to have any maven artifacts, how do I properly inherit these? I was thinking about <inherits> in module.gwt.xml and adding a <scope>system</scope> dependency in pom to link to the JAR.
- I'm running codeserver in the root-project right now, is that ok even when I would like to serv my mobile sub-project ? (Using "modules" parameter I suppose)
Couldn't load client from Super Dev Mode server at http://remote-server:9876.
[INFO] Compiling module com.test.WebClient[INFO] Tracing compile failure path for type 'com.test.client.token.PanelFilterLotToken'[INFO] [ERROR] Errors in 'file:/C:/workspace/test/web-client/src/main/java/com/test/client/token/PanelFilterLotToken.java'[INFO] [ERROR] Line 28: No source code is available for type com.test.token.controler.LotsManager; did you forget to inherit a required module?[INFO] Tracing compile failure path for type 'com.test.client.util.TimerUtil'[INFO] [ERROR] Errors in 'file:/C:/workspace/test/web-client/src/main/java/com/test/client/util/TimerUtil.java'[INFO] [ERROR] Line 34: No source code is available for type com.test.dao.IDAO; did you forget to inherit a required module?lat<dependency> <groupId>com.reveregroup.gwt</groupId> <artifactId>gwt-image-loader</artifactId> <version>1.1.4</version> <scope>system</scope> <systemPath>${basedir}/war/WEB-INF/lib/gwt-image-loader-1.1.4.jar</systemPath> </dependency> [ERROR] Unable to find 'com/reveregroup/gwt/imagepreloader/ImagePreloader.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?