On Mon, Jan 26, 2009 at 8:13 AM, Yves Dessertine <[email protected]>wrote:

> I have an (Ant) project which generates a JAR, plus a WAR for
> webservices, to port to maven. I have a question about the best
> practises:
>
> 1) I created a subproject for the webservices, ok like this?
>
> 2) The Webservices uses lots of source from my main project what's the
> best approach ? Déclare two source path (ws + parent) ? Make the WS
> subproject depend on the parent project ?
>

The WAR is your web services?  What do you use the JAR for?
Based on the limited understanding I have of your project, I'd say that
basically, you want:

myproject (pom project, no real implementation other than the two modules)
-  "myproject-jar" -- whatever this project is for; common? library? domain?
 JAR packaging.
-  "myproject-web-services" -- depends on myproject-jar as a JAR, WAR
packaging.

  - Geoffrey
--
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to