Thanks for the quick response. What are the use-cases where attached artifacts are appropriate? Would creating a zip of the source along with a primary artifact be a candidate for an attached artifact?
Carlos -----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 11:45 AM To: Maven Users List Subject: Re: [M2] multiple-artifacts Easiest is always to break into multiple modules as you've already outlined. Wayne On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am very new to maven and trying to wrap my head around how best to > port an existing ant based project to maven. > > The project is a webservice layer for application. The ant build > currently generates two artifacts: > > - my-ws-client.jar. Consists of WS interfaces, a few concrete classes > used only by the client and a client spring config file. > - my-ws.war. Consists of WS interfaces, WS impls, server spring config > file and other config resources (e.g. web.xml etc) > > Although maven strongly encourages a single primary artifact per > project, there is support for attached artifacts. I normally see this > in reference to the ejb plugin. However, there are archived emails that > mention registering the build-helper-maven-plugin and using it to > generate other associated artifacts. > > Should I use these plugins to generate the client jar? What is the best > way of doing that? > > Or should I break this project into separate modules? > > If I break them into separate modules I suspect that I will need three > modules: > > 1 - my-ws-client: classes and config files used by client only. > 2 - my-ws: classes and config files used by the server only. > 3 - my-ws-common: common classes, almost all interfaces, that the two > previous modules depend on. > > Any help or reference to online docs/mail thread I have missed would be > appreciated. > > Carlos. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]