Re: mvn release:prepare using git, fatal: pom.xml is outside repository
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: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com On 6 April 2010 07:08, Ricky Clarkson 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: ricky.clark...@gmail.com > Google Wave: ricky.clark...@googlewave.com > > > > On 5 April 2010 23:29, Mark Derricutt 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 >> 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: ricky.clark...@gmail.com >>> Google Wave: ricky.clark...@googlewave.com >>> >>> >>> >>> On 30 March 2010 13:43, Mark Struberg 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 schrieb am Di, 30.3.2010: > Von: Ricky Clarkson > Betreff: mvn release:prepare using git, fatal: pom.xml is outside > repository > An: "Maven Users List" > 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: ricky.clark...@gmail.com > Google Wave: ricky.clark...@googlewave.com > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > __ 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> >> ---
Re: mvn release:prepare using git, fatal: pom.xml is outside repository
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: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com On 5 April 2010 23:29, Mark Derricutt 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 > 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: ricky.clark...@gmail.com >> Google Wave: ricky.clark...@googlewave.com >> >> >> >> On 30 March 2010 13:43, Mark Struberg 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 schrieb am Di, 30.3.2010: >>> Von: Ricky Clarkson Betreff: mvn release:prepare using git, fatal: pom.xml is outside repository An: "Maven Users List" 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: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org >>> >>> __ >>> 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: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn release:prepare using git, fatal: pom.xml is outside repository
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 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: ricky.clark...@gmail.com > Google Wave: ricky.clark...@googlewave.com > > > > On 30 March 2010 13:43, Mark Struberg 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 schrieb am Di, 30.3.2010: >> >>> Von: Ricky Clarkson >>> Betreff: mvn release:prepare using git, fatal: pom.xml is outside repository >>> An: "Maven Users List" >>> 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: ricky.clark...@gmail.com >>> Google Wave: ricky.clark...@googlewave.com >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> >> __ >> 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: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn release:prepare using git, fatal: pom.xml is outside repository
Hi Mark, I haven't solved the problem in that project yet, but an open source project I just created works fine for the same thing, so I'm sure I'll get there on the closed-source project I was asking about. Thanks, Ricky. -- Ricky Clarkson Java and Scala Programmer, AD Holdings +44 1928 706373 Skype: ricky_clarkson Google Talk: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com On 1 April 2010 21:42, Mark Struberg wrote: > No idea, could just guess. > > 1st idea: Sometimes there are still problems with spaces on windows > directories. can you please move the directory to c:\develop or something? > > if that doesn't work then please post a mvn -X log. > > txs and LieGrue, > strub > > --- Ricky Clarkson schrieb am Di, 30.3.2010: > >> Von: Ricky Clarkson >> Betreff: Re: mvn release:prepare using git, fatal: pom.xml is outside >> repository >> An: "Maven Users List" >> Datum: Dienstag, 30. März, 2010 15:27 Uhr >> 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: ricky.clark...@gmail.com >> Google Wave: ricky.clark...@googlewave.com >> >> >> >> On 30 March 2010 13:43, Mark Struberg >> 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 >> schrieb am Di, 30.3.2010: >> > >> >> Von: Ricky Clarkson >> >> Betreff: mvn release:prepare using git, fatal: >> pom.xml is outside repository >> >> An: "Maven Users List" >> >> 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: ricky.clark...@gmail.com >> >> Google Wave: ricky.clark...@googlewave.com >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> >> >> > >> > __ >> > 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: users-unsubscr...@maven.apache.org >> > For additional commands, e-mail: users-h...@maven.apache.org >> > >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > __ > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn release:prepare using git, fatal: pom.xml is outside repository
No idea, could just guess. 1st idea: Sometimes there are still problems with spaces on windows directories. can you please move the directory to c:\develop or something? if that doesn't work then please post a mvn -X log. txs and LieGrue, strub --- Ricky Clarkson schrieb am Di, 30.3.2010: > Von: Ricky Clarkson > Betreff: Re: mvn release:prepare using git, fatal: pom.xml is outside > repository > An: "Maven Users List" > Datum: Dienstag, 30. März, 2010 15:27 Uhr > 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: ricky.clark...@gmail.com > Google Wave: ricky.clark...@googlewave.com > > > > On 30 March 2010 13:43, Mark Struberg > 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 > schrieb am Di, 30.3.2010: > > > >> Von: Ricky Clarkson > >> Betreff: mvn release:prepare using git, fatal: > pom.xml is outside repository > >> An: "Maven Users List" > >> 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: ricky.clark...@gmail.com > >> Google Wave: ricky.clark...@googlewave.com > >> > >> > - > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > __ > > 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: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > __ 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn release:prepare using git, fatal: pom.xml is outside repository
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: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com On 30 March 2010 13:43, Mark Struberg 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 schrieb am Di, 30.3.2010: > >> Von: Ricky Clarkson >> Betreff: mvn release:prepare using git, fatal: pom.xml is outside repository >> An: "Maven Users List" >> 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: ricky.clark...@gmail.com >> Google Wave: ricky.clark...@googlewave.com >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > __ > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org