Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml.
But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: <repositories> <repository> <id>central</id> <url>http://10.17.13.7:9080/artifactory/repo</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <url>http://10.17.13.7:9080/artifactory/repo</url> <releases> <enabled>false</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://10.17.13.7:9080/artifactory/repo</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>snapshots</id> <url>http://10.17.13.7:9080/artifactory/repo</url> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories> <distributionManagement> <repository> <id>repo-releases</id> <name>repo-releases</name> <url>http://10.17.13.7:9080/artifactory/libs-releases-local</url> </repository> <snapshotRepository> <id>repo-snapshots</id> <name>repo-snapshots</name> <url>http://10.17.13.7:9080/artifactory/libs-snapshots-local</url> </snapshotRepository> </distributionManagement> settings.xml <servers> <server> <id>central</id> <username>username</username> <password>password</password> </server> <server> <id>repo-releases</id> <username>username</username> <password>password</password> </server> <server> <id>repo-snapshots</id> <username>username</username> <password>password</password> </server> </servers> <mirrors> <mirror> <id>artifactory</id> <mirrorOf>*</mirrorOf> <url>http://10.17.13.7:9080/artifactory/repo</url> <name>Artifactory</name> </mirror> </mirrors>
