You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tiles.apache.org by Mck <mi...@semb.wever.org> on 2010/05/05 20:33:50 UTC

troubles with `mvn release:stage`

Halfway through the "test build" process and i am stuck!

mvn -Papache-release -Darguments="-Papache-release" release:stage
 (-Prelease seems to have been replaced with -Papache-release)

fails with

> [INFO] [INFO] Using alternate deployment repository scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] BUILD FAILURE
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] : scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
> [INFO] Invalid syntax for repository.
> [INFO] 
> [INFO] Invalid syntax for alternative repository. Use "id::layout::url".

Should i (can i) just try the original `mvn release:perform ...` ?

~mck

ps the other thing wrong with 
   <stagingRepository>scp://people.apache.org/www/people.apache.org/builds/tiles-master/${pom.version}/m2-staging-repository</stagingRepository>
was ${pom.version} got resolved as 3-SNAPSHOT. I got around it by checking out the tag and running release:stage there instead.


-- 
"We are what we think. All that we are arises with our thoughts. With
our thoughts, we make the world." Buddha 
| http://semb.wever.org | http://sesat.no | http://finn.no |

Re: troubles with `mvn release:stage`

Posted by Greg Reddin <gr...@gmail.com>.
On Thu, May 6, 2010 at 1:29 PM, Antonio Petrelli
<an...@gmail.com> wrote:
> I am sorry, just now I realized the sillyness of my request: the
> "tiles" directory has been created by someone above us, so the
> tiles-master directly cannot be created by us.
> I really don't know what I was thinking and I apologize for this.

Well, some projects have multiple directories and it looks like all
committers have rights to create - or so I thought. But I do think we
can keep it separate within the tiles directory.

I guess we're actually learning how to do releases now instead of just
watching you from the sidelines :-)

Greg

Re: troubles with `mvn release:stage`

Posted by Antonio Petrelli <an...@gmail.com>.
2010/5/6 Antonio Petrelli <an...@gmail.com>:
> 2010/5/6 Greg Reddin <gr...@gmail.com>:
>> On Thu, May 6, 2010 at 11:20 AM, Mck <mi...@semb.wever.org> wrote:
>>> On Thu, 2010-05-06 at 11:43 +0200, Antonio Petrelli wrote:
>>>> BTW, the URL should have "/builds/tiles-master/ and not
>>>> "/builds/tiles/".
>>>
>>> I don't have permissions to create
>>> /people.apache.org/www/people.apache.org/builds/tiles-master
>>
>> Hmm, well, I'm not sure why you don't have permissions. You're in the
>> committers group. But... Antonio, is there a problem with hosting the
>> build inside the tiles directory instead?
>
> No, it was only to separate things. However the version scheme of
> tiles-master is totally different to the Tiles' framework one.
> So Mck if you cannot create it, use "tiles" instead.

I am sorry, just now I realized the sillyness of my request: the
"tiles" directory has been created by someone above us, so the
tiles-master directly cannot be created by us.
I really don't know what I was thinking and I apologize for this.

Antonio

Re: troubles with `mvn release:stage`

Posted by Antonio Petrelli <an...@gmail.com>.
2010/5/6 Greg Reddin <gr...@gmail.com>:
> On Thu, May 6, 2010 at 11:20 AM, Mck <mi...@semb.wever.org> wrote:
>> On Thu, 2010-05-06 at 11:43 +0200, Antonio Petrelli wrote:
>>> BTW, the URL should have "/builds/tiles-master/ and not
>>> "/builds/tiles/".
>>
>> I don't have permissions to create
>> /people.apache.org/www/people.apache.org/builds/tiles-master
>
> Hmm, well, I'm not sure why you don't have permissions. You're in the
> committers group. But... Antonio, is there a problem with hosting the
> build inside the tiles directory instead?

No, it was only to separate things. However the version scheme of
tiles-master is totally different to the Tiles' framework one.
So Mck if you cannot create it, use "tiles" instead.

Antonio

Re: troubles with `mvn release:stage`

Posted by Greg Reddin <gr...@gmail.com>.
On Thu, May 6, 2010 at 11:20 AM, Mck <mi...@semb.wever.org> wrote:
> On Thu, 2010-05-06 at 11:43 +0200, Antonio Petrelli wrote:
>> BTW, the URL should have "/builds/tiles-master/ and not
>> "/builds/tiles/".
>
> I don't have permissions to create
> /people.apache.org/www/people.apache.org/builds/tiles-master

Hmm, well, I'm not sure why you don't have permissions. You're in the
committers group. But... Antonio, is there a problem with hosting the
build inside the tiles directory instead?

Greg

Re: troubles with `mvn release:stage`

Posted by Mck <mi...@semb.wever.org>.
On Thu, 2010-05-06 at 11:43 +0200, Antonio Petrelli wrote:
> BTW, the URL should have "/builds/tiles-master/ and not
> "/builds/tiles/".

I don't have permissions to create 
/people.apache.org/www/people.apache.org/builds/tiles-master

~mck

-- 
"Microsoft has done for software what McDonald's did for the hamburger."
PC MAGAZINE, June 1997 
| http://semb.wever.org | http://sesat.no | http://finn.no |

Re: troubles with `mvn release:stage`

Posted by Antonio Petrelli <an...@gmail.com>.
2010/5/6 Mck <mi...@semb.wever.org>:
> On Thu, 2010-05-06 at 09:44 +0200, Antonio Petrelli wrote:
>> Can you try using the -DstagingRepository parameter directly, using
>> the specified layout?
>> tiles-staging::standard::scp://....
>
> I think it should be "tiles-staging::default::scp://..."
>
> But I can't get the -DstagingRepository parameter to work.
>
> For example using
> mvn
> -DstagingRepository=tiles-staging::standard::scp://people.apache.org/www/junk  -Dusername=mck -Papache-release
> -Darguments="-Dusername=mck -Papache-release -DstagingRepository=tiles-staging::standard::scp://people.apache.org/www/junk"
>  release:stage -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/tiles/maven/tags/tiles-master-2
>
> still gives
>
>> [INFO] [ERROR] BUILD FAILURE
>> [INFO] [INFO] ------------------------------------------------------------------------
>> [INFO] [INFO] : scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
>> [INFO] Invalid syntax for repository.
>> [INFO]
>> [INFO] Invalid syntax for alternative repository. Use "id::layout::url".

It seems that, whatever parameter you use, the release plugin uses the
one in the configuration of the release plugin.
At this point I guess you should rollback the modifications to
2-SNAPSHOT version, fix the configuration and try again.
This means removing the tag too. Luckily there is no release package around :-)
BTW, the URL should have "/builds/tiles-master/ and not "/builds/tiles/".

Thanks
Antonio

Re: troubles with `mvn release:stage`

Posted by Mck <mi...@semb.wever.org>.
On Thu, 2010-05-06 at 09:44 +0200, Antonio Petrelli wrote:
> Can you try using the -DstagingRepository parameter directly, using
> the specified layout?
> tiles-staging::standard::scp://.... 

I think it should be "tiles-staging::default::scp://..."

But I can't get the -DstagingRepository parameter to work.

For example using
mvn
-DstagingRepository=tiles-staging::standard::scp://people.apache.org/www/junk  -Dusername=mck -Papache-release 
-Darguments="-Dusername=mck -Papache-release -DstagingRepository=tiles-staging::standard::scp://people.apache.org/www/junk"
 release:stage -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/tiles/maven/tags/tiles-master-2

still gives

> [INFO] [ERROR] BUILD FAILURE
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] : scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
> [INFO] Invalid syntax for repository.
> [INFO] 
> [INFO] Invalid syntax for alternative repository. Use "id::layout::url".

I've also tried specifying the -DaltDeploymentRepository (inside -Darguments as well) without any luck.

~mck




Re: troubles with `mvn release:stage`

Posted by Antonio Petrelli <an...@gmail.com>.
2010/5/5 Mck <mi...@semb.wever.org>:
> Halfway through the "test build" process and i am stuck!
>
> mvn -Papache-release -Darguments="-Papache-release" release:stage
>  (-Prelease seems to have been replaced with -Papache-release)
>
> fails with
>
>> [INFO] [INFO] Using alternate deployment repository scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
>> [INFO] [INFO] ------------------------------------------------------------------------
>> [INFO] [ERROR] BUILD FAILURE
>> [INFO] [INFO] ------------------------------------------------------------------------
>> [INFO] [INFO] : scp://people.apache.org/www/people.apache.org/builds/tiles/2/m2-staging-repository
>> [INFO] Invalid syntax for repository.
>> [INFO]
>> [INFO] Invalid syntax for alternative repository. Use "id::layout::url".
>
> Should i (can i) just try the original `mvn release:perform ...` ?

No, otherwise the build will be put in the release repository. Let's
stage it before.
Can you try using the -DstagingRepository parameter directly, using
the specified layout?
tiles-staging::standard::scp://....

Antonio