Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 36785 invoked from network); 3 Dec 2003 10:14:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Dec 2003 10:14:38 -0000 Received: (qmail 40457 invoked by uid 500); 3 Dec 2003 10:14:09 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 40282 invoked by uid 500); 3 Dec 2003 10:14:08 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 40263 invoked from network); 3 Dec 2003 10:14:08 -0000 Received: from unknown (HELO ts2-ms-a.ants.co.uk) (193.201.47.15) by daedalus.apache.org with SMTP; 3 Dec 2003 10:14:08 -0000 Received: from LONSE004.ants.anplc.co.uk (unverified) by ts2-ms-a.ants.co.uk (Content Technologies SMTPRS 4.2.10) with ESMTP id for ; Wed, 3 Dec 2003 10:13:50 +0000 Received: by lonse004 with Internet Mail Service (5.5.2653.19) id ; Wed, 3 Dec 2003 10:16:59 -0000 Message-ID: From: "Geddes, Mark (ANTS)" To: 'Maven Users List' Subject: RE: Struts dependent artefacts Date: Wed, 3 Dec 2003 10:13:28 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, but there is only one level of inheritance. I am declaring these dependencies in my project's top-level project.xml, and I have multiple sub-projects (ejbs, war, ear) which extend the top-level project. The problem is that I have several other J2EE projects with the same structure, and I am having to repeat this _logic_. I'm looking for an approach based on _composition_ rather than _inheritance_. Thanks anyway, Mark -----Original Message----- From: egglersim@post.ch [mailto:egglersim@post.ch] Sent: 03 December 2003 09:28 To: users@maven.apache.org Subject: RE: Struts dependent artefacts You can inherit the dependecies from another project with the tag. Look at: http://maven.apache.org/reference/project-descriptor.html -----Original Message----- From: Geddes, Mark (ANTS) [mailto:mark.geddes@ants.co.uk] Sent: Mittwoch, 3. Dezember 2003 10:13 To: 'users@maven.apache.org' Subject: Struts dependent artefacts Hi, Apologies if this has been asked before - I searched the archives but didn't find the answer I was looking for. I am in the process of migrating several projects from an in-house build system to the excellent Maven. We tend to package everything as EAR archives, and we make extensive use of Struts. The in-house system leans heavily on the ideas from 'Java Development with Ant' (Hatcher, Loughran), specifically we store versions of Struts in version specific directories. So a 'struts-1.1' directory will contain all the jars and tlds for that version. The Ant script will copy all the runtime required jars and tlds from the directory into the appropriate build area. The version is controlled through a property, so migrating between versions has been seamless. I am now using Maven's dependency mechanism, and have come up with something like this for Struts-1.1: struts struts 1.1 true struts struts-logic 1.1 tld true struts struts-bean 1.1 tld true struts struts-html 1.1 tld true struts struts-nested 1.1 tld true struts struts-template 1.1 tld true struts struts-tiles 1.1 tld true commons-beanutils commons-beanutils 1.6 true commons-digester commons-digester 1.5 true commons-collections commons-collections 2.1 true commons-fileupload commons-fileupload 1.0 true commons-logging commons-logging 1.0.3 true commons-lang commons-lang 1.0.1 true commons-validator commons-validator 1.0.2 true oro oro 2.0.6 true This is fine. The problem is that I have to duplicate this for each project. Is there a simple way to re-use this _logic_ across multiple projects, or am I heading up the wrong path? Any ideas gratefully received. Mark ************************************************************************ *** This communication (including any attachments) contains confidential information. If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. Internet communications are not necessarily secure and may be intercepted or changed after they are sent. Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes. If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication. This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding. Abbey National Treasury Services plc. Registered Office: Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN. Registered in England under Company Registration Number: 2338548. Regulated by the Financial Services Authority (FSA). ************************************************************************ *** --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org *************************************************************************** This communication (including any attachments) contains confidential information. If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. Internet communications are not necessarily secure and may be intercepted or changed after they are sent. Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes. If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication. This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding. Abbey National Treasury Services plc. Registered Office: Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN. Registered in England under Company Registration Number: 2338548. Regulated by the Financial Services Authority (FSA). *************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org