Comments (6)
See #1 and DevModeDesignDoc
BTW, gwt:generate-module
runs in the generate-resources
phase, which you should run (you should run up to and including process-classes
) before running DevMode or SuperDevMode. gwt:generate-module
generates the gwt.xml file in target/classes
which should also be in your classpath for DevMode or SuperDevMode.
How are you running SuperDevMode? from your IDE? using the exec-maven-plugin
? with which configuration? (classpath, arguments)
from gwt-maven-plugin.
Got it working using exec-plugin, my first attempt was using eclipse run config.
I used this setup, confirmed orking for war, gwt-app and gwt-lib
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-codeserver</artifactId>
<version>2.6.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>generate-module</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<moduleName>${module.fullName}</moduleName>
<strict>true</strict>
<outputGen>true</outputGen>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<classpathScope>test</classpathScope>
<mainClass>com.google.gwt.dev.codeserver.CodeServer</mainClass>
<arguments>
<argument>-src</argument>
<argument>src/main/java</argument>
<argument>${module.fullName}</argument>
</arguments>
</configuration>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Of course a mojo would be nice, maybe with auto-injecting the prequesites into the .gwt.xml:
<!-- SuperDev -->
<add-linker name="xsiframe" />
<set-configuration-property name="devModeRedirectEnabled" value="true" />
<set-property name="compiler.useSourceMaps" value="true" />
from gwt-maven-plugin.
Notes: devModeRedirectEnabled
is on by default in GWT 2.6.0, xsiframe
will be the default linker in the next release (and in 2.6 CodeServer
automatically replaces the std
linker with the xsiframe
linker), and CodeServer
automatically sets compiler.useSourceMaps
. So none of these changes are necessary in the gwt.xml.
I'll try to hack something to launch the SuperDevMode (it's simpler than DevMode given that it doesn't serve the webapp / server-side code)
from gwt-maven-plugin.
Thanks, Good to know!
Yes, I tried combining a forked jetty and codeserver for quick tests and debugging of client code, but its a much easier workflow IMHO to put the statics into public and use the codeserver alone .
from gwt-maven-plugin.
Hi,
I read that xsiframe and devModeRedirectEnabled would be the default, but I still find that both are needed to get super dev mode to work. What am I missing? Thanks!
https://code.google.com/p/google-web-toolkit/issues/detail?id=8681
from gwt-maven-plugin.
gwt:codeserver
was added in 1.0-beta-1
from gwt-maven-plugin.
Related Issues (20)
- Version 1.0.0 do not support GWT 2.1.0 HOT 5
- Lombok not working with codeserver HOT 2
- Custom Linkers? HOT 2
- Source path from Inherited GWT.xml files are not being considered HOT 13
- GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0 HOT 3
- Integration with GWT Eclipse Plugin seems partially broken HOT 6
- GWT 2.9.0 HOT 2
- GWT Multimodule modulename specificaiton HOT 1
- Redirected gwt artifacts cause a NPE when generating modules HOT 4
- Cannot compile GWT project using com.google.gwt:2.10.0-new-groupid-2 HOT 4
- API incompatibility issue with version 1.0.1 HOT 2
- Change default structure? HOT 2
- java process doesn't start. HOT 1
- Critical CVEs detected in transitive jar dependencies. HOT 1
- Validation warning, plugin should declare these Maven artifacts in `provided` scope HOT 1
- Upgrade to GWT 2.10.0 HOT 3
- goal codeserver fails when web app dependencies are managed in a BOM pom HOT 3
- [Question] How can i activate the debug logging ? because i keep getting the error: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly HOT 5
- Release versión with GWT 2.11.0 support HOT 2
- [Question] Can I hide the devmode gui? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maven-plugin.