Hi! The short answer is: why not simply call git-add [files], git-commit, git-push ?
If you use SVN you also wouldn't use mvn scm:add, isn't? The long answer is: I honestly have no clue why this happens :) I get the fileSet.getFileList() in the executeAddCommand and simply add all the files in it to the git-add command line. (we could add a '--' for safety reasons btw) So I' need a bit more debug output via mvn -X. A JIRA would also be nice :) And this should btw go to the scm list to not scare users with internal stuff ;) LieGrue, strub --- Ryan Connolly <[email protected]> schrieb am Mi, 22.4.2009: > Von: Ryan Connolly <[email protected]> > Betreff: Re: scm:add question > An: "Maven Users List" <[email protected]> > Datum: Mittwoch, 22. April 2009, 15:12 > How about using */** for > includes? Also, maybe run using -e to see > the stack trace if available? That may help you debug > this issue as > well. > > On Wed, Apr 22, 2009 at 9:00 AM, Sean Davis <[email protected]> > wrote: > > On Wed, Apr 22, 2009 at 8:40 AM, Ryan Connolly <[email protected]> > wrote: > > > >> It looks as though you are trying to add > everything in the src dir but > >> the plugin is complaining that it does not know > what it is you want to > >> add... I would try passing the optional includes > property to the > >> plugin configuration to see if that changes > things. > > > > > > Thanks, Ryan, for the suggestion. > > > > mvn scm:add -Dmaven.scm.basedir=./src > -Dmaven.scm.src.includes=* > > > > produces the same result. > > > > Sean > > > > > >> > >> On Wed, Apr 22, 2009 at 8:27 AM, Sean Davis <[email protected]> > wrote: > >> > I am pretty new to maven and I am trying to > use the maven scm plugin to > >> add > >> > files and then commit to a bare git > repository (located on the file > >> system). > >> > > >> > In my pom, I have: > >> > > >> > <scm> > >> > > <connection>scm:git:file://localhost/tmp/stuff.git</connection> > >> > > >> > > >> > <developerConnection>scm:git:file://localhost/tmp/stuff.git</developerConnection> > >> > </scm> > >> > > >> > Then, I am executing from the command line > and in the base directory of > >> the > >> > project (directory contains pom.xml): > >> > > >> > sdavis$ mvn scm:add > -Dmaven.scm.basedir=./src > >> > [INFO] Scanning for projects... > >> > [INFO] Searching repository for plugin with > prefix: 'scm'. > >> > [INFO] > >> > > ------------------------------------------------------------------------ > >> > [INFO] Building SeqWrench > >> > [INFO] task-segment: [scm:add] > (aggregator-style) > >> > [INFO] > >> > > ------------------------------------------------------------------------ > >> > [INFO] [scm:add] > >> > [INFO] > >> > > ------------------------------------------------------------------------ > >> > [ERROR] BUILD ERROR > >> > [INFO] > >> > > ------------------------------------------------------------------------ > >> > [INFO] Cannot run add command : > >> > > >> > Embedded error: Exception while executing SCM > command. > >> > You must provide at least one file/directory > to add > >> > > >> > Any suggestions on what I am missing? > >> > > >> > Thanks, > >> > Sean > >> > > >> > >> > >> > >> -- > >> �...@n > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > > > -- > �...@n > > --------------------------------------------------------------------- > 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]
