IntelliJ:我如何调试Maven-GWT项目? [英] IntelliJ: How do I debug a Maven-GWT project?

查看:110
本文介绍了IntelliJ:我如何调试Maven-GWT项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win XP上使用IntelliJ IDEA 8.1.2。我有一个Maven 3.0.3项目,使用GWT 2.4插件。它配置如下...

 <! -  GWT Maven Plugin  - > 
< plugin>
< groupId> org.codehaus.mojo< / groupId>
< artifactId> gwt-maven-plugin< / artifactId>
< version> $ {gwtVersion}< / version>
<执行次数>
<执行>
<目标>
< goal>编译< / goal>
< goal> test< / goal>
<! - - < goal> i18n< / goal> <目标> generateAsync< /目标> - >
< /目标>
< /执行>
< /执行次数>
<! - 插件配置。有许多可用选项,请参阅codehaus.org上的gwt-maven-plugin
文档 - >
<配置>
< runTarget> index.html< / runTarget>
< hostedWebapp> $ {webappDirectory}< / hostedWebapp>
< i18nMessagesBundle> com.cme.clearing.product.client.Messages< / i18nMessagesBundle>
< / configuration>
< / plugin>

在IntelliJ中,我该如何运行和调试此项目? Google建议的唯一相关链接 - http://antonkirillov.wordpress.com/2011/03/22/creating-and-running-gwt-project-using-maven-and-intellij-idea-10/ ,被我们公司的防火墙阻止。



如果它有任何用处,我也会在本地安装Tomcat 6.0.33。



谢谢, - Dave


  1. 首先,创建一个mvn gwt:debug。当您运行maven时,将启动您的应用程序,并监听8000端口(点击调试图标)。
  2. 第二,创建远程配置以连接8000端口。


I'm using IntelliJ IDEA 8.1.2 on Win XP. I have a Maven 3.0.3 project, using the GWT 2.4 plugin. It is configured below ...

        <!-- GWT Maven Plugin -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>${gwtVersion}</version>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                        <goal>test</goal>
                        <!-- <goal>i18n</goal> <goal>generateAsync</goal> -->
                    </goals>
                </execution>
            </executions>
            <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                documentation at codehaus.org -->
            <configuration>
                <runTarget>index.html</runTarget>
                <hostedWebapp>${webappDirectory}</hostedWebapp>
                <i18nMessagesBundle>com.cme.clearing.product.client.Messages</i18nMessagesBundle>
            </configuration>
        </plugin>

In IntelliJ, how do I run and debug this project? The only relevant link that Google recommends -- http://antonkirillov.wordpress.com/2011/03/22/creating-and-running-gwt-project-using-maven-and-intellij-idea-10/, is blocked by our company firewall.

If it is of any use, I have Tomcat 6.0.33 also installed locally.

Thanks, - Dave

解决方案

@Vijay Krishna this doesn't work for me, my solution was.

  1. First, create a mvn gwt:debug. When you run maven will start your application, and listen to port 8000(click on debug icon).
  2. Second, Create a Remote configuration to connect port 8000.

这篇关于IntelliJ:我如何调试Maven-GWT项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆