On 1/17/08, elaroche <[EMAIL PROTECTED]> wrote:
>
>
> thanks for you reply,
>
> but what about the compilation problem ?
> in the modular archetype the project-core.jar is not in the WEB-INF/lib
> but
> an other project. So it needs to be processed before creating war file :-/
> otherwise it's quite easy with the lib already existing....


You will still need to have a dependency in each war project on the shared
core - the "Skinny War" option lets you build the war files without
including jar files in WEB-INF/lib. You will always need to rebuild the core
project after any change - if you run the build from the top level in your
project everything should work as expected.

Mike

Mike Horwitz wrote:
> >
> > 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]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/one-core-%28in-jar%29%2C-three-wars%2C-all-in-one-ear-tp14916532s2369p14916812.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