Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 34126 invoked from network); 25 Feb 2011 01:14:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 01:14:28 -0000 Received: (qmail 48344 invoked by uid 500); 25 Feb 2011 01:14:28 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 48258 invoked by uid 500); 25 Feb 2011 01:14:27 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 48251 invoked by uid 99); 25 Feb 2011 01:14:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 01:14:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 01:14:21 +0000 Received: by wwb39 with SMTP id 39so1525830wwb.1 for ; Thu, 24 Feb 2011 17:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=AuRgEgGz7jHU3HblGiSk3k+yKk3KBPi6zApP71R3xro=; b=COQIOvCcuht58sXb8SRo26UaFWuWcTENB0Sr9TBWrMlBbq8TP7P9RL70OhgbYIfPKg GPXtP5ih9hC1E6xJbrHm7lDxjQJ3t7NA57xkomBRSBsidsXn+jbstf6YlSLtwA9NkTlh SwGsE+OJ6MjPA5Q0Ds7maznEoSWdMiAUxW+SM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=LKsyh4vC6pOWFhBqbctNKA8cnliCMy2eE/xFgWpH9RIoA4oycoeOvNjHB4zz8w/Nsf 35wIGKHN86J3FklZm16s1s9OehsohRJIsIdv/fPTppXWf74UxSuy26AD7Pmjh9rM/TAn iH9yaw0KxdKtgo/OMdhd361jOD2eqjg0j/xU4= Received: by 10.227.196.65 with SMTP id ef1mr1490526wbb.158.1298596439823; Thu, 24 Feb 2011 17:13:59 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net [78.192.106.184]) by mx.google.com with ESMTPS id x1sm124547wbh.2.2011.02.24.17.13.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Feb 2011 17:13:58 -0800 (PST) Message-ID: <4D670255.2050305@gmail.com> Date: Fri, 25 Feb 2011 02:13:57 +0100 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Adding a new profile to the 'project' pom.xml to ease the import of the same project twice in Eclipse References: <1FB7E130968747F68CFEA4269613C049@gmail.com> In-Reply-To: <1FB7E130968747F68CFEA4269613C049@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/23/11 1:54 PM, Pierre-Arnaud Marcelot wrote: > Hi Dev, > > Eclipse is great but it has one major drawback for me (and others too I believe), that's it's inability to import the same project twice in the workspace. > > Now, by "the same project" I don't mean the exact same project (which would not make much sense) but I mean the same project but from various SVN branches (e.g. one version from trunk and another from a branch). > > Considering that we're now working in two different places ('trunks' and 'milestones' branches), I would rather have all the projects in a common workspace than having two workspaces (one for each branch). > > The basic problem is that 'mvn eclipse:eclipse' generates the same project names for both branches and that Eclipse only allows one project with a given name at a time in the workspace (and I can understand that). > > Recently, while looking at the Maven Eclipse plugin documentation I found out an interesting configuration option that we could leverage to solve this issue. > > I built a specific profile that will be activated if we specify a string we want to be appended to the name of the project when creating eclipse descriptors using 'mvn eclipse:eclipse -Dappend.to.project.name=[string]'. > > Here it is: > >> >> append-to-project-name >> >> >> append.to.project.name >> >> >> >> >> >> maven-eclipse-plugin >> >> [artifactId]-${append.to.project.name} >> >> >> >> >> > > > > Using this profile it is now possible to import the same project twice (and more) by providing for example the name of the branch, which will be appended to the name of the project. > > I'd like to include this new profile in the 'project' pom to be able to reuse it across all our projects. > > Thoughts? > > Regards, > Pierre-Arnaud +1. Go for it ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com