2013-04-27 41 views
1

我创建使用Maven插件GWT项目:在项目设置我已经添加了GWT小GWT + Maven的理念+,配置和运行

mvn -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.5.1 -DgroupId=com.savdev.BasicGwtProject -DartifactId=BasicGwtProject -Dversion=1.0 org.apache.maven.plugins:maven-archetype-plugin:generate 

。当我将GWT路径设置为GWT安装目录(gwt-2.5.1版本)时,出现以下警告:

路径无效GWT安装:class'com.google.gwt.dev.GWTCompiler'not在jar中找到:... gwt-dev.jar

我可以修复它吗? IDEA提供下载GWT,但它已经下载并且是最后一个版本。也许IDEA不支持最后的GWT版本?

第二个问题, 我运行了:maven install。输出是:

[INFO] T E S T S 
[INFO] ------------------------------------------------------- 
[INFO] Running [email protected] 
[INFO] Please navigate your browser to this URL: 
[INFO] http://169.254.56.62:55728/com.savdev.BasicGwtProject.gwtBasicModuleJUnit.JUnit/junit-standards.html?gwt.codesvr=169.254.56.62:55724 

我浏览过它,但浏览器没有响应任何内容。 (顺便说一句,我已经安装了GWT developer plugin)。实际上它应该在这里做什么?

我想发现的最后一个问题也是运行应用程序。 我已按here所述在Project/Edit configuration/GWT configuration中进行了配置,但我将起始页选项清除。

然后我在IDEA中运行配置。现在我可以看到输出:

[WARN] Server class 'com.google.gwt.junit.server.JUnitHostImpl' could not be found in the web app, but was found on the system classpath 
    [WARN] Adding classpath entry 'file:/C:/Users/sav/.m2/repository/com/google/gwt/gwt-user/2.5.1/gwt-user-2.5.1.jar' to the web app classpath for this session 
    For additional info see: file:/D:/DevSoft/gwt-2.5.1/doc/helpInfo/webAppClassPath.html 
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl 
Dev Mode initialized 

此刻什么是关于这些警告我不知道,但是,我已经试过访问网页:

http://localhost:8888/ 

我只能看到WEB -INF和名为我的模块名称的文件夹 - 'gwtBasicModule'。 我看web.xml和发现:

<!-- Default page to serve --> 
    <welcome-file-list> 
    <welcome-file>gwtBasicModule.html</welcome-file> 
    </welcome-file-list> 

而且生成的gwtBasicModule.html文件存在。为什么我在访问http://localhost:8888/页面时看不到它?我如何通过IDEA和Maven gwt插件正确运行应用程序?

+0

请注明这IDEA版本您使用的版本/社区版/许可等 – SSR 2013-04-29 05:21:00

+0

与IDEA相同的问题12.0.1打造专业化#IU-123.94 – basilboli 2013-08-21 15:59:43

回答