Hi Laurent, We also have a nexus-users list where we your question will probably find a faster answer ;-) http://nexus.sonatype.org/mailing-lists.html
Your problem below seems to be that you've set a password on the repository but it's not in your settings. This is done with a <server> entry in your settings and then the id will need to match the id specified on your command line (below you used thirdparty) However, in Nexus Beta-4+, you should never need to use deploy:deploy-file to load stuff into repositories. Simply login to the Nexus UI, open the browse repositories page and right click on the repository. You'll be able to directly upload the jar + pom (pom is optional, you can also specify the minimal info and Nexus will generate a pom for you). This should be much easier than messing with the CLI ;-) --Brian -----Original Message----- From: Laurent Trillaud [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 4:55 AM To: [email protected] Subject: [Nexus] Unable to upload something : error 401] Hi I have installed Nexus and Maven2 I have followed step by step the book of Sonatype on Maven. All work fine except the upload. I'am not able to upload neither third parties artifact, snapshot or release on my Nexus repository. For example, if I try to deploy a mysql connector I got this error : [EMAIL PROTECTED] my-app]$ mvn deploy:deploy-file -DgroupId=com.mysql -DartifactId=mysql -Dversion=3.1.12 -Dpackaging=jar -Dfile=/usr/share/java/mysql-connector-java.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] ------------------------------------------------------------------------ [INFO] Building my-app [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [deploy:deploy-file] Uploading: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/my sql/3.1.12/mysql-3.1.12.jar 454K uploaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/my sql/3.1.12/mysql-3.1.12.jar. Return code is: 401 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Fri Jul 11 10:32:11 CEST 2008 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ My setting.xml is the same than in the book : <settings> <mirrors> <mirror> <!--This is used to direct the public snapshots repo in the profile below over to a different nexus group --> <id>nexus-public-snapshots</id> <mirrorOf>public-snapshots</mirrorOf> <url>http://localhost:8081/nexus/content/groups/public-snapshots</url> </mirror> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://localhost:8081/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>development</id> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <!--this profile will allow snapshots to be searched when activated--> <id>public-snapshots</id> <repositories> <repository> <id>public-snapshots</id> <url>http://public-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>public-snapshots</id> <url>http://public-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>development</activeProfile> </activeProfiles> </settings> and I have put the "3rd party" repository in the group "public" with the Nexus back office I know that is a problem of authenfication/authorization by I don't know what it's going wrong. Thanks in advance Laurent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
