Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4550EA62 for ; Sat, 2 Mar 2013 11:24:47 +0000 (UTC) Received: (qmail 24942 invoked by uid 500); 2 Mar 2013 11:24:45 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 24042 invoked by uid 500); 2 Mar 2013 11:24:39 -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 24003 invoked by uid 99); 2 Mar 2013 11:24:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Mar 2013 11:24:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefano.fornari@gmail.com designates 209.85.212.174 as permitted sender) Received: from [209.85.212.174] (HELO mail-wi0-f174.google.com) (209.85.212.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Mar 2013 11:24:31 +0000 Received: by mail-wi0-f174.google.com with SMTP id hi8so374101wib.13 for ; Sat, 02 Mar 2013 03:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=XMmCxUO7lh01/SXn/oUKuPcfkNUfapCU4BUK65kqckc=; b=kBAxZuHdkur4HXSbQpTjmpWygNU+6gCh1B+quXXNzkB3YH6vMkalsSCce9HiAH8PZW zcRbceAL3//PWQJ0kL3A/kAsMETYmUYPJKFAJY9pAxYA4gPLayQCHruqdpzFgz7JX9dc xRFe6sw6tRJx9k36GWarQfs2+SOfmxC3E8xPiPxSuh1rMVYE5BgTB91cHoEUYDPkxlkr m6jsOzolm++3VOb6g3qhi+H0iGZlToV1cjoekfHGZpZDC6aLYoEouJv2jRumxmkdnhhn xG/zPsbIZEm0bdy4NDYd/5KOxCPwJB3cGQmKlbngu1ydWZUoWJvRYyIOYqJXdKkmdEI0 1SiA== MIME-Version: 1.0 X-Received: by 10.180.87.98 with SMTP id w2mr2572915wiz.30.1362223451202; Sat, 02 Mar 2013 03:24:11 -0800 (PST) Received: by 10.216.151.170 with HTTP; Sat, 2 Mar 2013 03:24:11 -0800 (PST) In-Reply-To: <4BD6AB66.40601@ObjectWay.it> References: <2BECD7FE-D7BD-4070-85DB-96DA3C8E7FA4@kathrynhuxtable.org> <4BD59DF4.6060506@gmail.com> <8339_1272296315_4BD5B37B_8339_383479_1_4BD5B34F.7060401@gmail.com> <4BD6AB66.40601@ObjectWay.it> Date: Sat, 2 Mar 2013 12:24:11 +0100 Message-ID: Subject: Re: Release plugin & git repo with multiple projects From: Stefano Fornari To: Maven Users List Content-Type: multipart/alternative; boundary=f46d04182616ea70ea04d6ef5c5a X-Virus-Checked: Checked by ClamAV on apache.org --f46d04182616ea70ea04d6ef5c5a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi All, reverting this topic on a more recent version, Maven 3.0.5... I have a project built of two submodules: beanshellweb + beanshelweb (lib) + beanshelweb (webapp) They are under a unique git repository https://github.com/stefanofornari/beanshellweb When I run release:prepare, I think maven rightly asks me for one tag only: ... What is the release version for "BeanShellWeb (lib)"? (ste.web:beanshellweb-lib) 1.2: : 1.1.1 What is the release version for "BeanShellWeb (webapp)"? (ste.web:beanshellweb-webapp) 1.2: : 1.1.1 What is the release version for "BeanShellWeb"? (ste.web:beanshellweb) 1.2: : 1.1.1 What is SCM release tag or label for "BeanShellWeb"? (ste.web:beanshellweb) beanshellweb-1.1.1: : ... What is the new development version for "BeanShellWeb (lib)"? (ste.web:beanshellweb-lib) 1.1.2-SNAPSHOT: : 1.2-SNAPSHOT What is the new development version for "BeanShellWeb (webapp)"? (ste.web:beanshellweb-webapp) 1.1.2-SNAPSHOT: : 1.2-SNAPSHOT What is the new development version for "BeanShellWeb"? (ste.web:beanshellweb) 1.1.2-SNAPSHOT: : 1.2-SNAPSHOT But then it fails trying to create the tag. The failing command is: Executing: /bin/sh -c cd /home/ste/Projects && git tag -F /tmp/maven-scm-1273059077.commit beanshellweb-1.1.1 It seems to me it is just failing CDing in the wrong directory (/home/ste/Projects instead of /home/ste/Projects/beanshellweb). Any hints? Do I really need to have one repository per module? But in that case, can I have nested git repositories? Thanks a lot in advance. Ste On Tue, Apr 27, 2010 at 11:16 AM, Nicola Musatti < Nicola.Musatti@objectway.it> wrote: > I believe there's a very similar problem with Subversion too, when you > have a repository for each module which are linked to the aggregator > project by means of svn:externals. This is an approach which, as far as I > can tell, is not supported by the release plugin. > > Cheers, > Nicola Musatti > > Justin Edelson wrote: > >> OK. Then we're on the same page... >> >> On 4/26/10 11:32 AM, Kathryn Huxtable wrote: >> >> >>> Perhaps I wasn't clear. I don't support multiple projects in one >>> repository. Definitely not. I was trying to criticize the svn-centric >>> thinking, not support it. >>> >>> I think there should be a JIRA issue to make modules work, given that >>> they'll be in separate repositories. >>> >>> I'm not going to file this because I have almost zero experience with >>> nested projects. There have been places it would have made sense and I >>> shied away. >>> >>> But the release plugin should work with git projects that have modules >>> and it should do it in the standard git manner, which is one repository >>> containing one project. (Distributed, of course.) >>> >>> -K >>> >>> On Apr 26, 2010, at 9:06 AM, Justin Edelson wrote: >>> >>> >>> >>>> Kathryn- >>>> Maybe I'm misunderstanding what you mean, but I think you have this >>>> exactly backwards. The "svn-centric thinking" is what's inspired someo= ne >>>> to put multiple projects in the same repository. AFAIK, this is simply >>>> not supported by git, i.e. there's no way to clone, branch or tag _par= t_ >>>> of a repository. >>>> >>>> I am by no means a git expert, so I could be mistaken about this. >>>> >>>> Justin >>>> >>>> >>>> >>>> On 4/26/10 9:21 AM, Kathryn Huxtable wrote: >>>> >>>> >>>>> Having recently switched from svn to git for most of my projects, I >>>>> have an opinion. >>>>> >>>>> I think you should create a JIRA ticket and consider this a bug. >>>>> >>>>> What we're dealing with here is a bit of svn-centric thinking during >>>>> design. It needs to be fixed. >>>>> >>>>> -K >>>>> >>>>> On Apr 26, 2010, at 8:08 AM, Jean-Laurent de Morlhon wrote: >>>>> >>>>> >>>>> >>>>>> We're considering migrating from svn to git, we stumble on the >>>>>> maven-release-plugin usage with git. >>>>>> We think we prefer to use a single repository for many independently >>>>>> built >>>>>> projects like : >>>>>> >>>>>> foobar-repo.git >>>>>> |-> project-foo/ >>>>>> | |-> pom.xml >>>>>> | |=96> module A/ >>>>>> | |-> module B/ >>>>>> | >>>>>> |-> project-bar/ >>>>>> |-> pom.xml >>>>>> >>>>>> >>>>>> project-bar scm url looks like : >>>>>> scm:git:ssh://**somehost.nowhere:/foobar-repo.** >>>>>> git >>>>>> >>>>>> This hints to the right repository but I can't write that the actual >>>>>> project-bar is in the project-bar subdirectory. >>>>>> >>>>>> mvn release:prepare goes well and ends succesfully. >>>>>> >>>>>> mvn release:perform fails whenever it tries to build the project fro= m >>>>>> the >>>>>> tag. It effectively clone correctly the repository. >>>>>> But use the root of the repository rather than going into project-ba= r >>>>>> subdirectory whenever it tries to clean deploy the tag. >>>>>> >>>>>> This prevent using git and multiple projects in the same directory. >>>>>> Some may think we should use gitmodules but >>>>>> 1) the release plugin does not support it [1] >>>>>> 2) gitmodules is an aggregate of single repository >>>>>> >>>>>> Should I issue a "new feature" ticket into jira project MRELEASE or >>>>>> SCM ? >>>>>> Or should I fall back to the current convention of 1 project =3D 1 g= it >>>>>> repository ?? >>>>>> Or maybe someone managed to do it ? >>>>>> >>>>>> any advice appreciated. >>>>>> >>>>>> [1] : http://jira.codehaus.org/**browse/SCM-530 >>>>>> >>>>>> >>>>> >>>>> ------------------------------**------------------------------** >>>>> --------- >>>>> 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 >>>> >>>> >>> >>> ------------------------------**------------------------------** >>> --------- >>> 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 >> >> >> >> > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --=20 Ste --f46d04182616ea70ea04d6ef5c5a--