GWT Maven Plugin — gwt:run works but gwt:compile doesn't. Why?
问题 I'm using gwt-maven-plugin to manage a GWT project. I use the gwt:run goal all the time to run locally in "dev mode" for testing. I now want to compile my project into a war for deployment on Tomcat. When I run gwt:compile , however, I get compile errors that indicate a classpath configuration issue. An example: Finding entry point classes [ERROR] Errors in 'shared.MyClass.java' [ERROR] Line 4: The import server.model.MyObject cannot be resolved Any ideas? Do I need to manually add the server