No se puede preparar un lanzamiento para el proyecto maven en java.net usando Sonatype Nexus

No se puede preparar un lanzamiento para el proyecto maven en java.net usando OSS

Sigo las instrucciones en

http://java.net/projects/maven2-repository/pages/MigrationAndCleanupRelatedDocumentation#Stage_a_Release

mvn release:clean 

está bien

 mvn release:prepare 

parece estar bien, durante el process me pide mi contraseña gpg que acepta (la he cambiado a contraseña en el resultado a continuación)

pero justo al final falla con:

 svn: OPTIONS of 'https://svn.java.net/svn/jaudiotagger/tags': authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.java.net) 

aquí hay un poco más de la salida

  GPG Passphrase: *password *gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 minutes 21 seconds [INFO] Finished at: Sat Feb 16 17:48:05 GMT 2013 [INFO] Final Memory: 42M/282M [INFO] ------------------------------------------------------------------------ [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file C:\Users\MESH\AppData\Local\Temp\maven-scm-1694916625.commit --targets C:\Users\MESH\AppDat a\Local\Temp\maven-scm-4871080818615227594-targets" [INFO] Working directory: c:\Code\jthink\opensrc\jaudiotagger [INFO] Tagging release with the label 2.0.4... [INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file C:\Users\MESH\AppData\Local\Temp\maven-scm-1619719744.commit --revision 1106 https://svn.java .net/svn/jaudiotagger/tags/2.0.4 https://svn.java.net/svn/jaudiotagger/tags/2.0.4" [INFO] Working directory: c:\code\jthink\opensrc\jaudiotagger [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: OPTIONS of 'https://svn.java.net/svn/jaudiotagger/tags': authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.java .net) 

Actualización Entonces, al leer los comentarios en el enlace, se dijo que se podía pasar el nombre de usuario y el parámetro como contraseña, así que traté de usar

  mvn release:prepare -Dusername=paultaylor -Dpassword=xxxxxx -Dgpg.passphrase=xxxxxx 

y los parameters para pasar al command svn, como se puede ver a continuación, aún así falla de la misma manera.

 [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "svn --username paultaylor --password ***** --no-auth-cache --non-interactive commit --file C:\Users\MESH\AppData\Local\Temp\mav en-scm-264158387.commit --targets C:\Users\MESH\AppData\Local\Temp\maven-scm-6229037003047930707-targets" [INFO] Working directory: c:\Code\jthink\opensrc\jaudiotagger [INFO] Tagging release with the label jaudiotagger-2.0.4... [INFO] Executing: cmd.exe /X /C "svn --username paultaylor --password ***** --no-auth-cache --non-interactive copy --file C:\Users\MESH\AppData\Local\Temp\maven -scm-617643506.commit --revision 1113 https://svn.java.net/svn/jaudiotagger/tags/jaudiotagger-2.0.4 https://svn.java.net/svn/jaudiotagger/tags/jaudiotagger-2.0. 4" [INFO] Working directory: c:\code\jthink\opensrc\jaudiotagger [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: OPTIONS of 'https://svn.java.net/svn/jaudiotagger/tags': authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.java .net) 

Encontré el problema con el time el problema estaba en mi pom

tuve

  <connection>scm:svn:http://svn.java.net/svn/jaudiotagger/trunk </connection> <developerConnection>scm:svn:https://svn.java.net/svn/jaudiotagger /trunk</developerConnection> 

cuando lo necesitaba

  <connection>scm:svn:http://svn.java.net/svn/jaudiotagger~svn/trunk </connection> <developerConnection>scm:svn:https://svn.java.net/svn/jaudiotagger~svn /trunk</developerConnection>