On 2010-08-29 14:06, Anders Hammar wrote: > Sure, just match the id of the repo with the id of the server credentails in > settings.xml.
I tried: <servers> <server> <id>repo-id</id> <username>user</username> <password>password</password> (...) <repositories> <repository> <snapshots> <enabled>true</enabled> </snapshots> <id>repo-id</id> <name>repo-id</name> <url>...</url> (...) In log I only see (it's a SNAPSHOT artifact): (...) [INFO] snapshot my-group-id:my-artifact-id:1.2.0-SNAPSHOT checking for updates from repo-id Downloading: http://url/.../1.2.0-SNAPSHOT/my-artifact-id-1.2.0-SNAPSHOT.pom [INFO] Unable to find resource 'my-group-id:my-artifact-id:1.2.0-SNAPSHOT' in repository repo-id (url) Is there any easier way (than sniffing) to get know if maven uses credentials to try to get artifact? Marcin > 2010/8/28 Marcin Zajączkowski <msz...@wp.pl> > >> Hi, >> >> >> I need to set up a repository whose artifacts would be accessible (being >> able to get using Maven client) only for authorized people (with account >> like for deploy). I have an Artifactory server with a few publicly >> available repositories and I added there a new one only for selected >> people. It's not available for anonymous users, but I have one problem - >> Maven client tries to connect as anonymous user and claims there are no >> such artifact (server returns 404 Not Found). >> >> Is it possible to force Maven client to always connect to given >> repository with user/password (defined in settings.xml) to *get* artifacts? >> >> >> Regards >> Marcin >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org