Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 78007 invoked from network); 3 Oct 2010 14:56:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Oct 2010 14:56:48 -0000 Received: (qmail 71355 invoked by uid 500); 3 Oct 2010 14:56:46 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 71180 invoked by uid 500); 3 Oct 2010 14:56:43 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 71172 invoked by uid 99); 3 Oct 2010 14:56:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 14:56:43 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justinedelson@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 14:56:37 +0000 Received: by qyk4 with SMTP id 4so2988166qyk.9 for ; Sun, 03 Oct 2010 07:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:references:from :content-type:x-mailer:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=SYvmsNvxHtDp0LRyxVDfaZ4O8x1BZ1AE7gC2uoJYy7E=; b=bISor3kf7nLsyGllwdqem3Tpe0xBD5LT5uxOFRT71TySXC9wqJJy6HWvO4EyJp8XUH 049qNkVOkgVlpGJ8RyX7nybxdQMpiOikfADSPmOvcBTAtYpSi9mdoNiXBi/P0xjtGe8c SzS+XMzl/JKRBPYofuTN+0T73vOf4x9oPgANE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; b=qLbbmSzEAUUspAKMx7uVRXA2lIMf8swP6rgXTeYYkt9P3E5d0m7eMBix39AliGbpk/ klrZZKUUKm5oWo2gkSyBOKSJ3Acd+oRYiylspDBjEiwMm5sQnlOeU3Xi0BNtWakKDdvO MTCaHzn4HUXoUUfQ5qbucyDmA8XlTd6e5oQKE= Received: by 10.224.60.136 with SMTP id p8mr5810994qah.386.1286117776229; Sun, 03 Oct 2010 07:56:16 -0700 (PDT) Received: from [192.168.1.59] (ool-44c6554e.dyn.optonline.net [68.198.85.78]) by mx.google.com with ESMTPS id l13sm4110032qck.43.2010.10.03.07.56.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Oct 2010 07:56:15 -0700 (PDT) Subject: Re: Multiple projects -> one artifact References: <4CA884C3.5090405@studiorga.de> <4CA892CF.2050700@studiorga.de> From: Justin Edelson Content-Type: multipart/alternative; boundary=Apple-Mail-1-720371029 X-Mailer: iPhone Mail (8B117) In-Reply-To: <4CA892CF.2050700@studiorga.de> Message-Id: <5959CE7E-6E91-43FD-B3B4-4058C80D9B20@gmail.com> Date: Sun, 3 Oct 2010 10:55:26 -0400 To: Maven Users List Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 8B117) --Apple-Mail-1-720371029 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Yes, you can do this with war overlays (see the docs for maven-war-plugin) a= nd/or the assembly plugin. On Oct 3, 2010, at 10:27 AM, Dirk Reske wrote: > Hello, >=20 > so I will get a separation by project type (web, ejb, ear). > But want I want, is a separation by functionality. >=20 > Lets take a webshop example. > I have the core module, which includes the main web.xml in the web sub= -module, some core services in the api/impl sub-modules. > Than I have the admin module, which includes the webpages for the shop adm= inistrators in the web submodule and the needed services in api/impl. > etc. >=20 > In the end a super-web module should merge the contents of core/web, admin= /web, etc to one webapp. > A super impl module should merge the contents of the core/impl and admin/i= mpl to one ejb module >=20 > And than a ear module should build an ear out of these thwo artifacts. >=20 > So it should be possible that a developer only checks out the admin module= from the scm an have all webpages, services, entities needed by the admin f= unctionalities in the sub-modules. >=20 > Dirk > Am 03.10.2010 16:07, schrieb Martin Gainty: >>=20 >> Dirk- >> =20 >> i would configure a separate war-artifact pom.xml in MyProject folder som= ething like >> war-artifact >> groupId.. >> version.. >> =20 >> >> >> >> >> >> core-web >> users-web >> admin-web >> >>=20 >> for building the ear ..follow antonios advice=20 >> =20 >> Viel Gluck! >> Martin Gainty=20 >> ______________________________________________=20 >> Verzicht und Vertraulichkeitanmerkung >>=20 >> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfae= nger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterl= eitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient led= iglich dem Austausch von Informationen und entfaltet keine rechtliche Bindun= gswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir k= eine Haftung fuer den Inhalt uebernehmen. >>=20 >> =20 >> > Date: Sun, 3 Oct 2010 15:48:04 +0200 >> > Subject: Re: Multiple projects -> one artifact >> > From: antonio.petrelli@gmail.com >> > To: users@maven.apache.org >> >=20 >> > 2010/10/3 Dirk Reske : >> > > is it possible to build one artifact out of multiple projects. >> > > We are trying to modularize the development. >> > > >> > > Example: >> > > >> > > MyProject >> > > |-- core >> > > | |--api >> > > | |--impl >> > > | |--web >> > > |-- users >> > > | |--api >> > > | |--impl >> > > | |--web >> > > |-- admin >> > > | |--api >> > > | |--impl >> > > | |--web >> > > >> > > this should results in the following ear file >> > > myproject.ear >> > > |--lib/myproject-api.jar (the entity classes, service interfaces, etc= ) >> > > |--myproject-impl.ear (the ejb module) >> > > |--myproject-web.ear (the web module) >> > > >> > > So, if I add a module MyProject/myproject-web, is there a configurati= on, >> > > so that this war module merges the contents of the existing "*/web" >> > > modules to one war file? >> >=20 >> > I think that this link might answer all your questions about JEE >> > development with Maven: >> > http://docs.codehaus.org/display/MAVENUSER/Developing+JEE+projects+with= +Maven >> >=20 >> > Antonio >> >=20 >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> > For additional commands, e-mail: users-help@maven.apache.org >> >=20 >=20 --Apple-Mail-1-720371029--