https://github.com/xlavs/gwt-maven-archetype
Client folder:
/**
* The client-side stub for the RPC service.
*/
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}
* The async counterpart of <code>GreetingService</code>.
*/
public interface GreetingServiceAsync {
void greetServer(String input, AsyncCallback<String> callback)
throws IllegalArgumentException;
}
Service folder:
* The server-side implementation of the RPC service.
*/
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet implements
GreetingService {
As our project is a large one with many packages without clear separation, what is the best way to convert it to Maven project with proper structure in a timely manner? I read some posts suggesting to use a multi-module project structures for a big Maven project. Is it the right way to go? Or we have a simple way to convert it as we don't have much maven experiences for the multi-module project.
Your help is much appreciated!
Jenny
Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.2:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.2'. A required class is missing: Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer
-----------------------------------------------------
realm = plugin>org.apache.maven.plugins:maven-war-plugin:2.2
Another question is if I can use Eclipse built in internal jetty server to start the super dev mode or not. I recalled that we have to use external tomcat server to run the project after we upgraded the jdk from jdk8 to jdk11 as the eclipse gwt plugin can no longer be used for newer version of jdk. What's your suggestion to deal with the following problem? I'll also do more research for this problem tomorrow.
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-8:codeserver (default-cli) @ TodoList ---
[INFO] Turning off precompile in incremental mode.
[INFO] Super Dev Mode starting up
[INFO] workDir: C:\Apps\JavaStudy\GWT2.9\gwt-2.9.0\TodoListApp\target\gwt\codeserver
[INFO] [WARN] unable to delete 'C:\Apps\JavaStudy\GWT2.9\gwt-2.9.0\TodoListApp\target\gwt\codeserver\org.gwtproject.tutorial.TodoList\compile-1' (skipped)
[INFO] [ERROR] unable to create directory: C:\Apps\JavaStudy\GWT2.9\gwt-2.9.0\TodoListApp\target\gwt\codeserver\org.gwtproject.tutorial.TodoList\compile-1
[WARNING] 2025-02-06 21:56:25.556:INFO::main: Logging initialized @847ms
[INFO] Loading Java files in org.gwtproject.tutorial.TodoList.
[INFO] Module setup completed in 1661 ms
[WARNING] 2025-02-06 21:56:26.818:INFO:oejs.Server:main: jetty-9.2.14.v20151106
[WARNING] 2025-02-06 21:56:26.837:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7238072e{/,null,AVAILABLE}
[WARNING] 2025-02-06 21:56:26.846:WARN:oejuc.AbstractLifeCycle:main: FAILED ServerConnector@4de37f33{HTTP/1.1}{127.0.0.1:9876}: java.net.BindException: Address already in use: bind
[WARNING] java.net.BindException: Address already in use: bind
[WARNING] at java.base/sun.nio.ch.Net.bind0(Native Method)
Your help is much appreciated!
Jenny