You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wim Deblauwe <wi...@gmail.com> on 2010/08/31 10:04:28 UTC

How to activate a profile during release:prepare?

Hi,

I know that during the release:perform, there is a property 'performRelease'
that is set to true. I use this to activate a release profile. However, I
need to do the same during the release:prepare. Is there something like a
performPrepare property?

regards,

Wim

Re: How to activate a profile during release:prepare?

Posted by Wim Deblauwe <wi...@gmail.com>.
It does not even matter, because I don't think I can add a separate
configuration for perform or prepare?


2010/8/31 Antonio Petrelli <an...@gmail.com>

> 2010/8/31 Anders Hammar <an...@hammar.net>:
> > Wim wants it for the prepare goal. Your link is for the perform goal.
>
> Come on a bit of fantasy! :-D
>
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to activate a profile during release:prepare?

Posted by Antonio Petrelli <an...@gmail.com>.
2010/8/31 Anders Hammar <an...@hammar.net>:
> Wim wants it for the prepare goal. Your link is for the perform goal.

Come on a bit of fantasy! :-D
http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to activate a profile during release:prepare?

Posted by Nick Stolwijk <ni...@gmail.com>.
My bad, this one is better [1] ;).

[1] http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Tue, Aug 31, 2010 at 11:40 AM, Anders Hammar <an...@hammar.net> wrote:
> Nick,
>
> Wim wants it for the prepare goal. Your link is for the perform goal.
>
> /Anders
>
> On Tue, Aug 31, 2010 at 11:21, Nick Stolwijk <ni...@gmail.com>wrote:
>
>> It is also a configuration item [1].
>>
>> [1]
>> http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#arguments
>>
>> With regards,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> IPROFS BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> http://www.iprofs.nl
>>
>>
>>
>> On Tue, Aug 31, 2010 at 11:19 AM, Wim Deblauwe <wi...@gmail.com>
>> wrote:
>> > I suppose you mean adding this to the command line when running mvn
>> > release:prepare. I would like to have this property present automatically
>> > like in the release:perform case so I can make sure the profile gets
>> > activated, even if somebody would forget to add that extra command line
>> > argument.
>> >
>> > 2010/8/31 Antonio Petrelli <an...@gmail.com>
>> >
>> >> 2010/8/31 Wim Deblauwe <wi...@gmail.com>:
>> >> > I know that during the release:perform, there is a property
>> >> 'performRelease'
>> >> > that is set to true. I use this to activate a release profile.
>> However, I
>> >> > need to do the same during the release:prepare. Is there something
>> like a
>> >> > performPrepare property?
>> >>
>> >> -Darguments="-Pmyprofile"
>> >>
>> >> HTH
>> >> Antonio
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to activate a profile during release:prepare?

Posted by Anders Hammar <an...@hammar.net>.
Nick,

Wim wants it for the prepare goal. Your link is for the perform goal.

/Anders

On Tue, Aug 31, 2010 at 11:21, Nick Stolwijk <ni...@gmail.com>wrote:

> It is also a configuration item [1].
>
> [1]
> http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#arguments
>
> With regards,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Tue, Aug 31, 2010 at 11:19 AM, Wim Deblauwe <wi...@gmail.com>
> wrote:
> > I suppose you mean adding this to the command line when running mvn
> > release:prepare. I would like to have this property present automatically
> > like in the release:perform case so I can make sure the profile gets
> > activated, even if somebody would forget to add that extra command line
> > argument.
> >
> > 2010/8/31 Antonio Petrelli <an...@gmail.com>
> >
> >> 2010/8/31 Wim Deblauwe <wi...@gmail.com>:
> >> > I know that during the release:perform, there is a property
> >> 'performRelease'
> >> > that is set to true. I use this to activate a release profile.
> However, I
> >> > need to do the same during the release:prepare. Is there something
> like a
> >> > performPrepare property?
> >>
> >> -Darguments="-Pmyprofile"
> >>
> >> HTH
> >> Antonio
> >>
> >> ---------------------------------------------------------------------
> >> 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: How to activate a profile during release:prepare?

Posted by Nick Stolwijk <ni...@gmail.com>.
It is also a configuration item [1].

[1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#arguments

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Tue, Aug 31, 2010 at 11:19 AM, Wim Deblauwe <wi...@gmail.com> wrote:
> I suppose you mean adding this to the command line when running mvn
> release:prepare. I would like to have this property present automatically
> like in the release:perform case so I can make sure the profile gets
> activated, even if somebody would forget to add that extra command line
> argument.
>
> 2010/8/31 Antonio Petrelli <an...@gmail.com>
>
>> 2010/8/31 Wim Deblauwe <wi...@gmail.com>:
>> > I know that during the release:perform, there is a property
>> 'performRelease'
>> > that is set to true. I use this to activate a release profile. However, I
>> > need to do the same during the release:prepare. Is there something like a
>> > performPrepare property?
>>
>> -Darguments="-Pmyprofile"
>>
>> HTH
>> Antonio
>>
>> ---------------------------------------------------------------------
>> 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: How to activate a profile during release:prepare?

Posted by Wim Deblauwe <wi...@gmail.com>.
I suppose you mean adding this to the command line when running mvn
release:prepare. I would like to have this property present automatically
like in the release:perform case so I can make sure the profile gets
activated, even if somebody would forget to add that extra command line
argument.

2010/8/31 Antonio Petrelli <an...@gmail.com>

> 2010/8/31 Wim Deblauwe <wi...@gmail.com>:
> > I know that during the release:perform, there is a property
> 'performRelease'
> > that is set to true. I use this to activate a release profile. However, I
> > need to do the same during the release:prepare. Is there something like a
> > performPrepare property?
>
> -Darguments="-Pmyprofile"
>
> HTH
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to activate a profile during release:prepare?

Posted by Antonio Petrelli <an...@gmail.com>.
2010/8/31 Wim Deblauwe <wi...@gmail.com>:
> I know that during the release:perform, there is a property 'performRelease'
> that is set to true. I use this to activate a release profile. However, I
> need to do the same during the release:prepare. Is there something like a
> performPrepare property?

-Darguments="-Pmyprofile"

HTH
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org