You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by baz themail <ba...@gmail.com> on 2010/09/16 16:45:28 UTC

How can i test release plugin locally?

Hi,

How can i test release plugin locally in my machine? Specifically, can
i release the artifacts into my local repository on my machine? Can i
configure it so that i do not need to make actual updates to pom files
in perforce but only in local source tree?

Thank you.

A.

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


Re: How can i test release plugin locally?

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
Try release plugin with -DdryRun=true


2010/9/16 baz themail <ba...@gmail.com>:
> Hi,
>
> How can i test release plugin locally in my machine? Specifically, can
> i release the artifacts into my local repository on my machine? Can i
> configure it so that i do not need to make actual updates to pom files
> in perforce but only in local source tree?
>
> Thank you.
>
> A.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Olivier
http://twitter.com/olamy
http://www.linkedin.com/in/olamy

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


Re: How can i test release plugin locally?

Posted by Nick Stolwijk <ni...@gmail.com>.
Yes, you can do that, it is called a dryrun. [1]

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

Hth,

Nick Stolwijk
~Java Developer~

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



On Thu, Sep 16, 2010 at 4:45 PM, baz themail <ba...@gmail.com> wrote:
> Hi,
>
> How can i test release plugin locally in my machine? Specifically, can
> i release the artifacts into my local repository on my machine? Can i
> configure it so that i do not need to make actual updates to pom files
> in perforce but only in local source tree?
>
> Thank you.
>
> A.
>
> ---------------------------------------------------------------------
> 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 can i test release plugin locally?

Posted by Nick Stolwijk <ni...@gmail.com>.
Export your code and import it to a local subversion repository. There
you can test anything you want.

svnadmin create /tmp/testrepo
svn co file:///tmp/testrepo ~/testwc
copy your sources to ~/testwc
change your SCM settings in the pom file
svn add *
svn commit
And start testing with the release plugin, all it will affect is your
local repository.

Hth,

Nick Stolwijk
~Java Developer~

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



On Thu, Sep 16, 2010 at 10:37 PM, baz themail <ba...@gmail.com> wrote:
> Nick, do you mean to branch out the existing code into a test branch?
>
> Any other ideas?
>
> On Thu, Sep 16, 2010 at 12:05 PM, Nick Stolwijk <ni...@gmail.com> wrote:
>> To test release:prepare I usually use a branch or a local SVN
>> repostory. To test release:perform you can set the goals [1] to
>> install instead of deploy.
>>
>> [1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals
>>
>> Hth,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> IPROFS BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> http://www.iprofs.nl
>>
>>
>>
>> On Thu, Sep 16, 2010 at 8:25 PM, baz themail <ba...@gmail.com> wrote:
>>> The reason i want to dryRun and actual release in local repository is
>>> to make sure the module pom.xml files are being update correctly.
>>> Currently, I am having problem with incrementing the pom.xml file in
>>> one of the modules and not sure how to debug this.
>>>
>>> Can someone give me a sample where i can confirm the creation of new
>>> version'ed jar in both dryRun or actual log?
>>>
>>> On Thu, Sep 16, 2010 at 11:16 AM, baz themail <ba...@gmail.com> wrote:
>>>> Another question. Is this possible to release into local repository
>>>> without giving SCM information such as P4 username and password? I do
>>>> not mean dryRun this time.
>>>>
>>>> On Thu, Sep 16, 2010 at 10:12 AM, baz themail <ba...@gmail.com> wrote:
>>>>> Thanks for the replies.
>>>>>
>>>>> Yes, i know about DryRun. So, my question is: Does DryRun correctly
>>>>> run without SCM information such as P4 userid and password?
>>>>>
>>>>> Thanks. B.
>>>>>
>>>>> On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
>>>>>> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> How can i test release plugin locally in my machine? Specifically, can
>>>>>>> i release the artifacts into my local repository on my machine? Can i
>>>>>>> configure it so that i do not need to make actual updates to pom files
>>>>>>> in perforce but only in local source tree?
>>>>>>
>>>>>> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>>>>>>
>>>>>> ---
>>>>>> Nayan Hajratwala
>>>>>> http://agileshrugged.com
>>>>>> http://twitter.com/nhajratw
>>>>>> 734.658.6032
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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 can i test release plugin locally?

Posted by baz themail <ba...@gmail.com>.
Nick, do you mean to branch out the existing code into a test branch?

Any other ideas?

On Thu, Sep 16, 2010 at 12:05 PM, Nick Stolwijk <ni...@gmail.com> wrote:
> To test release:prepare I usually use a branch or a local SVN
> repostory. To test release:perform you can set the goals [1] to
> install instead of deploy.
>
> [1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Thu, Sep 16, 2010 at 8:25 PM, baz themail <ba...@gmail.com> wrote:
>> The reason i want to dryRun and actual release in local repository is
>> to make sure the module pom.xml files are being update correctly.
>> Currently, I am having problem with incrementing the pom.xml file in
>> one of the modules and not sure how to debug this.
>>
>> Can someone give me a sample where i can confirm the creation of new
>> version'ed jar in both dryRun or actual log?
>>
>> On Thu, Sep 16, 2010 at 11:16 AM, baz themail <ba...@gmail.com> wrote:
>>> Another question. Is this possible to release into local repository
>>> without giving SCM information such as P4 username and password? I do
>>> not mean dryRun this time.
>>>
>>> On Thu, Sep 16, 2010 at 10:12 AM, baz themail <ba...@gmail.com> wrote:
>>>> Thanks for the replies.
>>>>
>>>> Yes, i know about DryRun. So, my question is: Does DryRun correctly
>>>> run without SCM information such as P4 userid and password?
>>>>
>>>> Thanks. B.
>>>>
>>>> On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
>>>>> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> How can i test release plugin locally in my machine? Specifically, can
>>>>>> i release the artifacts into my local repository on my machine? Can i
>>>>>> configure it so that i do not need to make actual updates to pom files
>>>>>> in perforce but only in local source tree?
>>>>>
>>>>> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>>>>>
>>>>> ---
>>>>> Nayan Hajratwala
>>>>> http://agileshrugged.com
>>>>> http://twitter.com/nhajratw
>>>>> 734.658.6032
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>
>

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


Re: How can i test release plugin locally?

Posted by Nick Stolwijk <ni...@gmail.com>.
To test release:prepare I usually use a branch or a local SVN
repostory. To test release:perform you can set the goals [1] to
install instead of deploy.

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

Hth,

Nick Stolwijk
~Java Developer~

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



On Thu, Sep 16, 2010 at 8:25 PM, baz themail <ba...@gmail.com> wrote:
> The reason i want to dryRun and actual release in local repository is
> to make sure the module pom.xml files are being update correctly.
> Currently, I am having problem with incrementing the pom.xml file in
> one of the modules and not sure how to debug this.
>
> Can someone give me a sample where i can confirm the creation of new
> version'ed jar in both dryRun or actual log?
>
> On Thu, Sep 16, 2010 at 11:16 AM, baz themail <ba...@gmail.com> wrote:
>> Another question. Is this possible to release into local repository
>> without giving SCM information such as P4 username and password? I do
>> not mean dryRun this time.
>>
>> On Thu, Sep 16, 2010 at 10:12 AM, baz themail <ba...@gmail.com> wrote:
>>> Thanks for the replies.
>>>
>>> Yes, i know about DryRun. So, my question is: Does DryRun correctly
>>> run without SCM information such as P4 userid and password?
>>>
>>> Thanks. B.
>>>
>>> On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
>>>> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> How can i test release plugin locally in my machine? Specifically, can
>>>>> i release the artifacts into my local repository on my machine? Can i
>>>>> configure it so that i do not need to make actual updates to pom files
>>>>> in perforce but only in local source tree?
>>>>
>>>> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>>>>
>>>> ---
>>>> Nayan Hajratwala
>>>> http://agileshrugged.com
>>>> http://twitter.com/nhajratw
>>>> 734.658.6032
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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 can i test release plugin locally?

Posted by baz themail <ba...@gmail.com>.
The reason i want to dryRun and actual release in local repository is
to make sure the module pom.xml files are being update correctly.
Currently, I am having problem with incrementing the pom.xml file in
one of the modules and not sure how to debug this.

Can someone give me a sample where i can confirm the creation of new
version'ed jar in both dryRun or actual log?

On Thu, Sep 16, 2010 at 11:16 AM, baz themail <ba...@gmail.com> wrote:
> Another question. Is this possible to release into local repository
> without giving SCM information such as P4 username and password? I do
> not mean dryRun this time.
>
> On Thu, Sep 16, 2010 at 10:12 AM, baz themail <ba...@gmail.com> wrote:
>> Thanks for the replies.
>>
>> Yes, i know about DryRun. So, my question is: Does DryRun correctly
>> run without SCM information such as P4 userid and password?
>>
>> Thanks. B.
>>
>> On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
>>> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>>>
>>>> Hi,
>>>>
>>>> How can i test release plugin locally in my machine? Specifically, can
>>>> i release the artifacts into my local repository on my machine? Can i
>>>> configure it so that i do not need to make actual updates to pom files
>>>> in perforce but only in local source tree?
>>>
>>> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>>>
>>> ---
>>> Nayan Hajratwala
>>> http://agileshrugged.com
>>> http://twitter.com/nhajratw
>>> 734.658.6032
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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 can i test release plugin locally?

Posted by baz themail <ba...@gmail.com>.
Another question. Is this possible to release into local repository
without giving SCM information such as P4 username and password? I do
not mean dryRun this time.

On Thu, Sep 16, 2010 at 10:12 AM, baz themail <ba...@gmail.com> wrote:
> Thanks for the replies.
>
> Yes, i know about DryRun. So, my question is: Does DryRun correctly
> run without SCM information such as P4 userid and password?
>
> Thanks. B.
>
> On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
>> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>>
>>> Hi,
>>>
>>> How can i test release plugin locally in my machine? Specifically, can
>>> i release the artifacts into my local repository on my machine? Can i
>>> configure it so that i do not need to make actual updates to pom files
>>> in perforce but only in local source tree?
>>
>> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>>
>> ---
>> Nayan Hajratwala
>> http://agileshrugged.com
>> http://twitter.com/nhajratw
>> 734.658.6032
>>
>>
>> ---------------------------------------------------------------------
>> 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 can i test release plugin locally?

Posted by baz themail <ba...@gmail.com>.
Thanks for the replies.

Yes, i know about DryRun. So, my question is: Does DryRun correctly
run without SCM information such as P4 userid and password?

Thanks. B.

On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala <na...@chikli.com> wrote:
> On Sep 16, 2010, at 10:45 AM, baz themail wrote:
>
>> Hi,
>>
>> How can i test release plugin locally in my machine? Specifically, can
>> i release the artifacts into my local repository on my machine? Can i
>> configure it so that i do not need to make actual updates to pom files
>> in perforce but only in local source tree?
>
> Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html
>
> ---
> Nayan Hajratwala
> http://agileshrugged.com
> http://twitter.com/nhajratw
> 734.658.6032
>
>
> ---------------------------------------------------------------------
> 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 can i test release plugin locally?

Posted by Nayan Hajratwala <na...@chikli.com>.
On Sep 16, 2010, at 10:45 AM, baz themail wrote:

> Hi,
> 
> How can i test release plugin locally in my machine? Specifically, can
> i release the artifacts into my local repository on my machine? Can i
> configure it so that i do not need to make actual updates to pom files
> in perforce but only in local source tree?

Have you tried the -DdryRun=true option? http://maven.apache.org/plugins/maven-release-plugin/usage.html

---
Nayan Hajratwala
http://agileshrugged.com
http://twitter.com/nhajratw
734.658.6032


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