Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 72510 invoked from network); 5 Nov 2010 12:17:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 12:17:59 -0000 Received: (qmail 11033 invoked by uid 500); 5 Nov 2010 12:18:28 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 10741 invoked by uid 500); 5 Nov 2010 12:18:24 -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 10732 invoked by uid 99); 5 Nov 2010 12:18:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 12:18:23 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antonio.petrelli@gmail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 12:18:17 +0000 Received: by fxm19 with SMTP id 19so2272004fxm.30 for ; Fri, 05 Nov 2010 05:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yHX6KiRQkQ9REc6HPqWY9p934We9iOTEcjDodTsY4QM=; b=OB4skt5jV2CuatGAjYjupsJ3mG2jKV7o+KAwB71Wj+Em7S3Ugk95EyV4nvoD0jLA4Q 9iWftyYvSHtPwnfZ8qZ4BR4xFkQx+cpzCSAz70dArcD984l0kWFzIWW2wLSNvbyp7Kg9 HJrL+BvNoTE+Re/JyAKIZNEJuPqwi2kRiy5hA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iTIwyKxROPOtunVDkw37e+Q07vt7/3uaP+kMMvPvPAOIiWrMzNcsCYIk+4ClK0P3I0 MeP6jWWuLwdrfG4lelQVKxephCxYOHGsYjVIDEfsaaLikHARMdvGjL4JuwhvKSvmANh5 iTiXy3WjEsCQp/WHQeHh/KGLmq6bAd/G4v5Xs= MIME-Version: 1.0 Received: by 10.223.101.194 with SMTP id d2mr879451fao.88.1288959476835; Fri, 05 Nov 2010 05:17:56 -0700 (PDT) Received: by 10.223.111.14 with HTTP; Fri, 5 Nov 2010 05:17:56 -0700 (PDT) In-Reply-To: <20101105120646.12500@gmx.net> References: <20101105120646.12500@gmx.net> Date: Fri, 5 Nov 2010 13:17:56 +0100 Message-ID: Subject: Re: How to set some variables in archetypes? From: Antonio Petrelli To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2010/11/5 Sonja Stocker : > I=B4m developing an archetype for out projects. Their general structure i= s Customer --> Project --> Submodule_1, ..., Submodule_n. For each project = the customer and project vary. During the archetype generating I=B4m able t= o set the name of the top directory, customer. But after this I have to cha= nge the name of the project in the generated Maven project, in all subordin= ated directories. > > Is there a possibility to use place holder for this name which whould be = replaced during the generating of the archetype? I=B4ve tried it with > > =A0 =A0${project} > > in the upper POM and using archetype.properties where this property was d= eclared: project=3DPROJECTNAME. But it didn=B4t work. Any other idea? I suppose that you are using create-from-project goal. You can have module names automatically replaced when module names are an "extension" to the name of the project. For example: my-project -- my-project-ear -- my-project-ejb -- my-project-war See here for more information: http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-mu= lti-module-project.html Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org