Thanks Olivier, I will give that a go. I would like to only tag if the version is not a SNAPSHOT, not sure if I can do that or not. I.E. pretty sure that I will not be able to control flow like that. Basically I have a jenkins job that runs my 'deploy'. We developers update the code they can just run the jenkins job to deploy a release to our local repository (SNAPSHOT or otherwise). I would like that job to automatically create a tag when a developer runs the job with a version that is not a SNAPSHOT.
On Wed, May 2, 2012 at 10:26 AM, Olivier Lamy <[email protected]> wrote: > The option could be having a profile which call the tag goal of the > maven scm plugin > Something like > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-scm-plugin</artifactId> > <version>1.7</version> > <executions> > <execution> > <goals> > <goal>tag</goal> > </goals> > </execution> > </executions> > </plugin> > > But honestly, I have never tested that :-) > > 2012/5/2 Billy Newman <[email protected]>: > > Release plugin looks ok but thinking scm plugin might work a little > better in my dev environment. Anyone know if the scm plugin can do what I > want (see first post)? > > > > Thanks. > > > > On May 2, 2012, at 1:35 AM, Olivier Lamy <[email protected]> wrote: > > > >> Hi, > >> If you want to release your project (i.e creating a tag then deploying > >> the version) you must have a look at the release plugin which will > >> will do the stuff for you. > >> > >> 2012/5/2 Billy Newman <[email protected]>: > >>> I was looking at possibly using the maven-scm-plugin to tag my > releases in scm. > >>> > >>> A couple quick questions. > >>> > >>> Does anyone have a quick example of creating a tag from an scm trunk > inside of a maven build, maybe a profile? > >>> > >>> What about only running the scm:tag goal if the version I am deploying > is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases > deployed that are not SNAPSHOTs. > >>> > >>> Thanks! > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [email protected] > >>> For additional commands, e-mail: [email protected] > >>> > >> > >> > >> > >> -- > >> Olivier Lamy > >> Talend: http://coders.talend.com > >> http://twitter.com/olamy | http://linkedin.com/in/olamy > >> > >> --------------------------------------------------------------------- > >> 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] > > > > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
