Hi again, I've now created a test case, at http://github.com/rickyclarkson/maven-git-testcase
It's started to affect more projects, as I'm moving over to git a project at a time, and I'm resorting to manual releases at the moment. I've already made a mistake, though not a serious one, so I'm keen to get this resolved. You can reproduce the problem I have by doing (using Git Bash on Windows): git clone http://github.com/rickyclarkson/maven-git-testcase.git mvn --batch-mode release:prepare You might observe that the scm URL in there would not be a URL that one can push to (it's http, not ssh), but my experiments have shown that the failure happens even if the URL can be pushed to, so to keep reproduction of the problem simple, I used a read-only scm URL. I have tested this on Windows, with and without a space in the directory name (i.e., in C:\Documents and Settings, and in C:\deleteme). I have also tested this on Linux, and found that it succeeds (well, it gets as far as not being able to push), so I suppose I have a workaround - release on Linux, then checkout the tag on Windows to deploy artifacts. The git installation I have is via Git Bash (msysgit), and hasn't been configured other than user.name, user.email and core.autocrlf. git add on the same file manually succeeds, it is only from maven that it fails. The problem does not occur in a single-module project. Is there any more information I can give that might help? Thanks, Ricky. -- Ricky Clarkson Java and Scala Programmer, AD Holdings +44 1928 706373 Skype: ricky_clarkson Google Talk: [email protected] Google Wave: [email protected] On 6 April 2010 07:08, Ricky Clarkson <[email protected]> wrote: > Hi Mark, > > Yes, ./ is a repository. It's a multi-module project, in one git > repository. I just realised that the open source project it works > fine on doesn't have child modules. I'll add one and try to do > another release of that. > > Thanks, > Ricky. > > -- > Ricky Clarkson > Java and Scala Programmer, AD Holdings > +44 1928 706373 > Skype: ricky_clarkson > Google Talk: [email protected] > Google Wave: [email protected] > > > > On 5 April 2010 23:29, Mark Derricutt <[email protected]> wrote: >> Is ./ a git repository? Or are ./native-launcher and ./skytab two >> separate repositories? My guess is the later, and maven is telling >> you that your ./pom.xml is not actually in a repository? >> >> -- >> Pull me down under... >> >> On Wed, Mar 31, 2010 at 2:27 AM, Ricky Clarkson >> <[email protected]> wrote: >>> Hi Mark, >>> >>> ./native-launcher/pom.xml >>> ./skytab/src/main/assembly/bin.xml >>> ./skytab/src/main/java/uk/org/netvu/skytab/SkyTab.java >>> ./skytab/pom.xml >>> ./pom.xml >>> >>> I start my mvn release:prepare from the top of that (. in the listing >>> above). >>> >>> Thanks, >>> Ricky. >>> >>> -- >>> Ricky Clarkson >>> Java and Scala Programmer, AD Holdings >>> +44 1928 706373 >>> Skype: ricky_clarkson >>> Google Talk: [email protected] >>> Google Wave: [email protected] >>> >>> >>> >>> On 30 March 2010 13:43, Mark Struberg <[email protected]> wrote: >>>> Can you post a tree of your project structure? >>>> >>>> And from where in the project tree do you start the release? >>>> >>>> txs, >>>> strub >>>> >>>> --- Ricky Clarkson <[email protected]> schrieb am Di, 30.3.2010: >>>> >>>>> Von: Ricky Clarkson <[email protected]> >>>>> Betreff: mvn release:prepare using git, fatal: pom.xml is outside >>>>> repository >>>>> An: "Maven Users List" <[email protected]> >>>>> Datum: Dienstag, 30. März, 2010 14:21 Uhr >>>>> Hi, >>>>> >>>>> I'm trying to tag a release using mvn release:prepare, and >>>>> I see that >>>>> a child module's pom.xml cannot be committed: >>>>> >>>>> The git-add command failed. >>>>> Command output: >>>>> fatal: 'C:\Documents and >>>>> Settings\Ricky\SkyTab\skytab\pom.xml' is >>>>> outside repository >>>>> >>>>> Any suggestions? >>>>> >>>>> Thanks, >>>>> Ricky. >>>>> >>>>> -- >>>>> Ricky Clarkson >>>>> Java and Scala Programmer, AD Holdings >>>>> +44 1928 706373 >>>>> Skype: ricky_clarkson >>>>> Google Talk: [email protected] >>>>> Google Wave: [email protected] >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>> >>>> __________________________________________________ >>>> Do You Yahoo!? >>>> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz >>>> gegen Massenmails. >>>> http://mail.yahoo.com >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
