1

I am trying to use the gwt-maven-archetype from here and now after I imported the project I'd like Eclipse Maven to run:

  1. mvn gwt:codeserver -pl *-client -am to start the codeserver and
  2. mvn tomcat7:run -pl *-server -am -Denv=dev to run tomcat server

How can I tell Eclipse to do that for me?

Best regards.

Thomas Broyer
  • 64,353
  • 7
  • 91
  • 164
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
  • I would suggest creating run configuration for each command. Than you can start it one by one – Eugene Ryzhikov Jun 04 '15 at 19:53
  • @eugener Is there a way to combine these somehow? To tell either Maven or Eclipse to run those two servers? – Stefan Falk Jun 04 '15 at 19:54
  • if you have maven installed externally, you can create an external tools configuration – Eugene Ryzhikov Jun 04 '15 at 19:55
  • I've been told the [GWT Plugin for Eclipse](https://gwt-plugins.github.io/documentation/) (fork of Google Plugin for Eclipse) can do that; I have no idea if/how it supports multi-module projects though. – Thomas Broyer Jun 05 '15 at 09:21

1 Answers1

0

You could establish an extra "run" project and use the exec-maven-plugin in it's POM.

Gerold Broser
  • 14,080
  • 5
  • 48
  • 107