It is possible - the following will be useful:
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html

Basically you want to build each war as a "skinny war" and then package the
lot into an ear file.

Mike

On 1/17/08, elaroche <[EMAIL PROTECTED]> wrote:
>
>
> Hi everybody (Hi Matt ;-) )
>
> I was used to Appfuse < 2.0 and now I'm getting on the latest one (with
> Maven).
>
> What I'm trying to do is to share one core with multiple webapps, which
> will
> live in the same ear. I couldn't find any information in the forum about
> that (if you have a thread let me know :) )
>
> So I was thinking about having :
>
> project.ear:
>
> APP-INF/lib/project-core.jar
> sub-project-A.war
> sub-project-B.war
> sub-project-C.war
>
> is that possible ?
> I started with the modular archetype but....... it's not so easy. I think
> that everything I need to look at is  each pom.xml (the main one for the
> ear
> goal, and the web projects one not to include the core.jar).
>
> if I "just" copy sub-project-A to B and changing its id in the pom.xml,
> and
> then adding the module in the main pom.xml, actually it works except that
> the project-core.jar is included in each war (which is not what I want).
> So I took off the dependency from the sub-project to core, well then the
> compilation doesn't work beacause it doesn't have the core classes >-( .
>
> I'm sure there is something "easy" to solve that !!
>
> Am I looking at the right thing ? The real thing that I want to know is :
> is
> it possible with Appfuse without breaking everything ?
>
> thanks in advance !!!!
>
> --
> View this message in context:
> http://www.nabble.com/one-core-%28in-jar%29%2C-three-wars%2C-all-in-one-ear-tp14916532s2369p14916532.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to