Jason van Zyl wrote:

On 9 Jun 07, at 5:56 AM 9 Jun 07, Dennis Lundberg wrote:

Sure. I think I've found out why the process stopped after the files had been unzipped on the server. It turns out that we are using OS-dependent file separators in the rename script. Here's what that script looks like for the maven-one-plugin release that I tried earlier:

mv org\apache\maven\plugins\maven-metadata.xml.md5.rip org\apache\maven\plugins\maven-metadata.xml.md5 mv org\apache\maven\plugins\maven-metadata.xml.rip org\apache\maven\plugins\maven-metadata.xml mv org\apache\maven\plugins\maven-metadata.xml.sha1.rip org\apache\maven\plugins\maven-metadata.xml.sha1 mv org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml.md5.rip org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml.md5 mv org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml.rip org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml mv org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml.sha1.rip org\apache\maven\plugins\maven-one-plugin\maven-metadata.xml.sha1

So we need to do
  StringUtils.replace( s, "\\", "/" );
in two places in DefaultRepositoryCopier.scanDirectory(...) where we are using file.getAbsolutePath(). I'll try to patch and verify this.

This patch has been verified and committed. While testing I also found another Windows-related problem. The lines in the rename-script got \r\n line endings, which meant that the target-files and -directories looked really weird on the Unix repo server. I patched that as well and have tested the patch on maven-idea-plugin.

<snip>

I've tried to get the maven-stage-plugin working. Currently the -DrepositoryId parameter is not working, which is not a fault of the plugin itself. That problem seems to stem from WagonManager in maven-artifact-manager or beyond. Anyway I couldn't find the root of the problem.

I found a work-around for this one. You can specify your username in the target URL like this:

-Dtarget="scp://[EMAIL 
PROTECTED]/www/people.apache.org/repo/m2-ibiblio-rsync-repository"

I have added a note about this to the release document in Maven site.


Now I need this to work because my local Windows user name is not the same as my ASF user name. So I decided to sidestep this and added a stage.username parameter to the plugin. I had to modify an interface to squeeze it in, so I have not committed anything of this.

With that in place I had a go at moving the staged release on the maven-one-plugin 2.1. It didn't go that well unfortunately, because the zip-file is created on Windows and apparently contains backslashes in the paths, see error message below. But if I manually unzip the file on people.a.o it unzips nicely, although it displays the same warning. That being said, the files have been unzipped by the plugin, but it's only halfway finished leaving a bunch of .rip files in the there. And the metadata has not been merged. I'm going to remove the stray files for now.

This was just a heads up, in case anyone else tried to go down this road...


[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Error copying repository from http://people.apache.org/~dennisl/staging-repository-one-plugin/ to scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository

Embedded error: Exit code: 1 - warning: /www/people.apache.org/repo/m2-ibiblio-rsync-repository/staging-plugin-2.1.zip appears to use backslashes as path separators

--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to