You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Billy Newman <ne...@gmail.com> on 2012/05/02 03:48:36 UTC
maven-scm-plugin example/help
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-scm-plugin example/help
Posted by Billy Newman <ne...@gmail.com>.
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 <ol...@apache.org> 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 <ne...@gmail.com>:
> > 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 <ol...@apache.org> 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 <ne...@gmail.com>:
> >>> 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: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>
> >>
> >>
> >> --
> >> Olivier Lamy
> >> Talend: http://coders.talend.com
> >> http://twitter.com/olamy | http://linkedin.com/in/olamy
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: maven-scm-plugin example/help
Posted by Olivier Lamy <ol...@apache.org>.
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 <ne...@gmail.com>:
> 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 <ol...@apache.org> 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 <ne...@gmail.com>:
>>> 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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-scm-plugin example/help
Posted by Billy Newman <ne...@gmail.com>.
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 <ol...@apache.org> 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 <ne...@gmail.com>:
>> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-scm-plugin example/help
Posted by Olivier Lamy <ol...@apache.org>.
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 <ne...@gmail.com>:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org