Thanks a lot! This shows a working example, it is easy to become confused sometime, I now see the full logic in this setup! :-) I wish a more full example was part of the EAR plugin doc, for many other plugins there are and they are usually very helpful.
//Kent 2008/7/23 Vedanta Ulises <[EMAIL PROTECTED]>: > As I understand, packaging EAR will produce files with extension .ear not > .jar. > > May be this link will give more enlighten on how to arrange the project. > > http://sdudzin.blogspot.com/2007/09/maven-2-and-websphere-automated-build.html > > On Wed, Jul 23, 2008 at 4:52 AM, Kent Närling <[EMAIL PROTECTED]> > wrote: > > > I do understand the dependency and packaging concepts, but I failed to > get > > it working by refering to another artifact even though i ran "mvn > install" > > on the dependent artifact. (ok, it only installed it in my local > > repository, > > but that shouldn't matter?) > > But this is the way it is supposed to work apparently? > > > > So, the EAR packaging is actually just an artifact packaging a bunch of > > other artifacts into an EAR package? > > The documentation for the EAR plugin describes this badly... also, what > > packaging types should the referred packages have? I assume jar? > > > > //Kent > > > > 2008/7/22 Stefan Seidel <[EMAIL PROTECTED]>: > > > > > It is really very easy, you add the artifacts you want to include in > the > > > EAR as dependencies to the pom.xml. "Modules" refers not to Maven > > modules, > > > but to the WARs and EJB-JARs that are included in the EAR. > > > > > > If "dependencies" and "packaging" are relatively new for you, I > recommend > > > reading one of [0], [1] or especially [2]. > > > > > > Stefan > > > [0] > > > > http://maven.apache.org/guides/introduction/introduction-to-the-pom.html > > > [1] > > > > > > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > > > [2] http://www.exist.com/download/BetterBuildsWithMaven.pdf > > > > > > > > > Kent Närling wrote: > > > > > >> Can anyone please enlighten me how to use the EAR plugin? > > >> > > >> The documentation is (as usual) a bit cryptic... > > >> > > >> In the documentation it almost seems like the EAR project packaging > can > > >> contain sub-modules, but if I try to declare modules inside t I just > get > > >> errors?!? (aggregator projects require 'pom' as packaging) > > >> But the configuration refers to "modules" (like ejb3 etc) ? > > >> > > >> Also each EAR module refer to groupId and artifactId, from where? > > >> I tried to build & install a separate jar project and then refer to it > > in > > >> the EAR project, but nothing gets packaged? > > >> > > >> Please anyone give me a few pointers... > > >> > > >> Best regards, > > >> //Kent > > >> > > >> > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Kent Närling > > > > System Architect > > SEAMLESS > > Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden > > Phone: +46 8 5648 7800, fax: +46 8 5648 7823 > > Mobile: +46 70 836 9925 > > Mail: [EMAIL PROTECTED] > > www.seamless.se > > > > > > -- > Vedanta Ulises > > -- The Beginning of knowledge is > the discovery of something we do not understand > --Frank Herber(1920-1986)-- > -- Kent Närling System Architect SEAMLESS Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden Phone: +46 8 5648 7800, fax: +46 8 5648 7823 Mobile: +46 70 836 9925 Mail: [EMAIL PROTECTED] www.seamless.se