使用 WebAppCreator 制作的 GWT Maven 项目无法在开发模式下工作

Vit*_*yaz 3 java gwt maven dev-mode

我用这种方式创建了一个带有 Maven 配置的 GWT 项目:

webAppCreator -out HelloWorldGWT -templates sample,maven,readme ua.vitvyaz.hellowordgwt.HelloWorldGWT
Run Code Online (Sandbox Code Playgroud)

我尝试在 devmode 上运行项目:

mvn gwt:devmode
Run Code Online (Sandbox Code Playgroud)

但在浏览器中我得到:

"HTTP ERROR 404 

Problem accessing /HelloWorldGWT.html.

Reason: Not Found"
Run Code Online (Sandbox Code Playgroud)

我一看,WEB-INF目录是空的。

有什么问题吗pom.xml

pom.xml:

webAppCreator -out HelloWorldGWT -templates sample,maven,readme ua.vitvyaz.hellowordgwt.HelloWorldGWT
Run Code Online (Sandbox Code Playgroud)

Tho*_*yer 5

README.txtwebAppCreator 生成的:

-- Option D: Using Maven --

If you have generated your project with the option '-maven', you have a 'pom.xml'
file ready to use. Assuming you have Maven installed in your system, 'mvn' is 
in your path, and you have access to maven repositories, you should be able to run:

mvn clean         # delete temporary stuff
mvn test          # run all the tests (gwt and junit)
mvn gwt:devmode   # run development mode (needs "mvn package" to be run before)
mvn package       # generate a .war package ready to deploy

For more information about other available goals, read Maven and gwt-maven-plugin 
documentation (http://maven.apache.org, https://tbroyer.github.io/gwt-maven-plugin/)
Run Code Online (Sandbox Code Playgroud)

所以先运行mvn package,然后mvn gwt:devmode

该网站仍然记录 GWT 2.7,而不是 2.8(截至 2016 年 9 月)。