You need to have access to the Maven repository and add the credential to your Maven settings.xml see http://stackoverflow.com/questions/20570009/deploying-artifacts-in-nexus-from-maven-gives-error-return-code-is-401
Am 09.02.2014 20:49, schrieb Rob Weir: > I'm trying to get an RC ready for 0.6.1. the release:prepare maven > target worked fine, as far as I can see. But I get an error when > running the release:perform script. > > > > The specific error is: > > Error deploying artifact: Failed to transfer file: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating.pom. > Return code is: 401 > > Any ideas? Do I need anything special to have access to > repository.apache.org? > > The context is here: > > > [INFO] [INFO] [install:install {execution: default-install}] > [INFO] [INFO] Installing /home/rob/odf/target/checkout/pom.xml to > /home/rob/.m2/repository/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating.pom > [INFO] [INFO] Installing > /home/rob/odf/target/checkout/target/odftoolkit-0.6.1-incubating-source-release.zip > to > /home/rob/.m2/repository/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating-source-release.zip > [INFO] [INFO] Installing > /home/rob/odf/target/checkout/target/odftoolkit-0.6.1-incubating.pom.asc > to > /home/rob/.m2/repository/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating.pom.asc > [INFO] [INFO] Installing > /home/rob/odf/target/checkout/target/odftoolkit-0.6.1-incubating-source-release.zip.asc > to > /home/rob/.m2/repository/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating-source-release.zip.asc > [INFO] [INFO] [deploy:deploy {execution: default-deploy}] > [INFO] Uploading: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating.pom > [INFO] 4/19K > [INFO] 8/19K > [INFO] 12/19K > [INFO] 16/19K > [INFO] 19/19K > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [ERROR] BUILD ERROR > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] Error deploying artifact: Failed to transfer file: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/odftoolkit/odftoolkit/0.6.1-incubating/odftoolkit-0.6.1-incubating.pom. > Return code is: 401 > [INFO] > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] For more information, run Maven with the -e switch > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] Total time: 43 seconds > [INFO] [INFO] Finished at: Sun Feb 09 14:43:59 EST 2014 > [INFO] [INFO] Final Memory: 51M/237M > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Maven execution failed, exit code: '1' > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3 minutes 26 seconds > [INFO] Finished at: Sun Feb 09 14:44:00 EST 2014 > [INFO] Final Memory: 23M/197M > [INFO] > ------------------------------------------------------------------------ > rob@robuntu:~/odf$
