[英]Is it possible to run and debug a GWT-Maven project in Super Dev Mode?
我有一个maven
的核心思想,我想在GWT
支持maven
,所以我使用GWT
和maven
创建了一个项目。 目前要运行这个我必须install
它并在tomcat服务器上manually deployed
它。 它真的是一个时间的过程。
是否可以使用super dev mode
run
此Gwt-Maven
项目?
我的FishingEntry.gwt.xml
<module rename-to='WeeklyFishingInit'>
<inherits name="ae.ead.fishing.common.FishingCommon"/>
<entry-point class="ae.ead.fishing.init.client.FishingEntry"/>
<source path="client" />
<source path="shared" />
</module>
和pom.xml是
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.maven.plugin.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<skip>false</skip>
<!-- disableCastChecking>true</disableCastChecking -->
<!-- disableClassMetadata>true</disableClassMetadata -->
<!-- draftCompile>true</draftCompile -->
<!-- style>PRETTY</style-->
<soyc>false</soyc>
<optimizationLevel>0</optimizationLevel>
<compileReport>false</compileReport>
<!-- extraParam>true</extraParam -->
<runTarget>FishingEntry.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
</configuration>
</plugin>
我的项目结构是
和错误是
我的目标文件夹是
当然,这就是我们运行GWT-Spring-Maven项目的方式。 在你的pom.xml
添加gwt-maven-plugin
插件( 链接 ),如下所示:
的pom.xml
<plugins>
<!-- rest of your plugins here -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<runTarget>com.example.Application/Application.html</runTarget>
<!--<extraJvmArgs>-Xmx6G</extraJvmArgs>-->
<!--<localWorkers>1</localWorkers>-->
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<bindAddress>0.0.0.0</bindAddress>
<i18nMessagesBundle>com.example.client.ApplicationMessages</i18nMessagesBundle>
<generateDirectory>${project.basedir}/src/main/java</generateDirectory>
<debugSuspend>false</debugSuspend>
<deploy>${project.build.outputDirectory}</deploy>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
如果需要,进行任何配置并运行:
mvn gwt:run
或mvn gwt:debug
我设置了这样的超级开发模式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.