【发布时间】:2012-06-16 12:06:29
【问题描述】:
在阅读了很多关于 gwt 2.5 的 SuperDevMode 之后,我想自己尝试一下。我阅读了https://vaadin.com/blog/-/blogs/vaadin-and-superdevmode 和其他一些文章。据我了解,我必须运行 codeserver 类。 我查看了 gwt-maven-plugin 存储库,但不太确定是否已经支持 gwt2.5。
有没有人设法让 SuperDevMode 与 maven 一起工作?
问候, 阿恩
编辑:
感谢 Thomas,我成功了!!这是我的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 gwt-maven-plugin