On Wed, Apr 22, 2009 at 8:40 AM, Ryan Connolly <ryn...@gmail.com> 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 <sdav...@mail.nih.gov> 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >