简体   繁体   English

如何从maven配置GWT项目中的运行

[英]how to configure run in GWT project from maven

I have problem with run GWT project made from maven. 我有从maven制作的运行GWT项目的问题。 I don't know what to do to start this. 我不知道该怎么办才能开始这个。 Run button is disabled. 运行按钮被禁用。 I attach screen 我附上屏幕

Project was created by Create "Maven Project", I also have installed GWT plugin Project是由Create“Maven Project”创建的,我也安装了GWT插件

Based on your inputs I will suggest you to confirm following two things 根据您的输入,我建议您确认以下两件事

  1. Use Google Web Toolkit is checked 选中使用Google Web Toolkit

    right click on project --> Google --> Web Toolkit --> check Use Google Web Toolkit & give correct location of default GWT SDK 右键单击项目 - > Google - > Web Toolkit - >选中使用Google Web Toolkit并提供默认GWT SDK的正确位置

  2. Sample Argument for running application 用于运行应用程序的示例参数

    -war path_to_your_target_war_folder -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl landing_html_file -logLevel INFO -codeServerPort 9997 -port 8888 -superDevMode entry_class_location -war path_to_your_target_war_folder -remoteUI“$ {gwt_remote_ui_server_port}:$ {unique_id}”-startupUrl landing_html_file -logLevel INFO -codeServerPort 9997 -port 8888 -superDevMode entry_class_location

Change all variables by correct values, list of variables and example values is as follows 通过正确的值更改所有变量,变量列表和示例值如下所示

  • path_to_your_target_war_folder : \\Workplace\\source\\appName\\target\\appName-0.0.1-SNAPSHOT path_to_your_target_war_folder :\\ Workplace \\ source \\ appName \\ target \\ appName-0.0.1-SNAPSHOT

  • landing_html_file : index.html landing_html_file :index.html

  • entry_class_location : com.test.myapp.Main entry_class_location :com.test.myapp.Main

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM