在阅读了很多关于 gwt 2.5 SuperDevMode 的内容后,我想自己尝试一下。我读过https://vaadin.com/blog/-/blogs/vaadin-and-superdevmode以及其他一些文章。据我了解,我必须运行代码服务器类。 我检查了 gwt-maven-plugin 存储库,但不太确定是否已经支持 gwt2.5。
有人设法让 SuperDevMode 与 Maven 一起工作吗?
问候, 阿恩
编辑:
感谢托马斯,我成功了!这是我的 pom 的摘录。
<resources>
<resource>
<directory>
src/main/java
</directory>
</resource>
</resources>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.google.gwt.dev.codeserver.CodeServer</mainClass>
<arguments>
<argument>com.myapp.Application</argument>
</arguments>
</configuration>
</plugin>
现在我只需运行目标:exec:java
即可启动代码服务器。
最佳答案
gwt-maven-plugin 2.5.0-rc1 版本将通过 run-codeserver
goal 支持它。该版本目前正在上演。请测试一下 vote .
同时,您可以将它与 exec-maven-plugin 一起使用。
关于gwt - 如何将 SuperDevMode 与 Maven 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11063263/