开发模式工作正常,但如果我更改客户端代码并刷新浏览器,则不会看到代码更改。我使用maven,使用以下gwt插件配置。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.6.0</version>
<executions>
<execution>
<goals>
<goal>browser</goal>
<goal>run</goal>
<goal>debug</goal>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
<goal>resources</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>simmapp/simmapp/template/Login.vm</runTarget>
<hostedWebapp>${war}</hostedWebapp>
<servicePattern>redangus/client/**/*Service.java</servicePattern>
<generateDirectory>${target}/generated-sources/gwt</generateDirectory>
<modules>
<module>redangus.Inventory</module>
</modules>
<deploy>${target}/extra</deploy>
<!--war>${war}</war-->
<!-- If you don't have this, an empty JspFactory sneaks in and
breaks the tests. -->
<gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath>
<runClasspathExcludes>
<runClasspathExclude>javaee-web-api-6.0.jar</runClasspathExclude>
</runClasspathExcludes>
<sourceLevel>1.7</sourceLevel>
<persistentunitcache>true</persistentunitcache>
<persistentunitcachedir>${basedir}/persistent</persistentunitcachedir>
</configuration>
</plugin>
由具有类路径的netbeans生成并运行的命令行被黑客攻击:
/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/bin/java -Xmx1024m -Xdebug -Xnoagent -Djava.compiler = NONE -Xrunjdwp:transport = dt_socket,server = y,address = 8000,suspend = y -classpath what -Dgwt.persistentunitcache = true -Dgwt.persistentunitcachedir = / Users / tom / git / reds_gwt / persistent com.google.gwt.dev.DevMode -deploy / Users / tom / git / reds_gwt / target / extra -gen /Users/tom/git/reds_gwt/target/.generated -war /Users/tom/git/reds_gwt/target/simmapp-1.0-SNAPSHOT -logLevel WARN -port 8888 -codeServerPort 9997 -startupUrl simmapp / simmapp /template/Login.vm -logdir / var / log / tomcat redangus.Inventory