0

I'm new to maven and I'm trying to create a new multi-module jersey web service following this tutorial. So now my project is composed of 3 maven modules:

* Model module
* Core module
* web service module

now, since I'm new to maven projects I don't know how to compile these modules and run my web service. What commands should I use when I update one of those 3 modules?

condit
  • 10,852
  • 2
  • 41
  • 60
ColdFire
  • 6,764
  • 6
  • 35
  • 51

1 Answers1

1

Usually one would run mvn clean install in the parent project and then mvn jetty:run from the web-service module (assuming you're using the Jetty plugin).

condit
  • 10,852
  • 2
  • 41
  • 60
  • should I repeat this every time I make some changes to one of the modules(core/model), or it would be updated automatically? – ColdFire Jul 23 '12 at 22:30
  • If you're compiling from the shell, then yes. If you're using Eclipse with m2eclipse there's an option to enable "Workspace Resolution", in which case Eclipse will take care of compiling the dependencies for you. – condit Jul 23 '12 at 22:40