Hi folks, We are using Maven 2.1.0 and have provided the following settings.xml file:
<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>/home/azeez/.m2/repository</localRepository> <interactiveMode>false</interactiveMode> <servers> <server> <id>wso2-snapshot-repository</id> <username>snapshots</username> <password>xxxxx</password> <filePermissions>664</filePermissions> <directoryPermissions>755</directoryPermissions> <!--configuration></configuration--> </server> </servers> </settings> In our project's POM file, we have the following distribution management section: <distributionManagement> <repository> <id>wso2-maven2-repository</id> <name>WSO2 Maven2 Repository</name> <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url> </repository> <snapshotRepository> <id>wso2-snapshot-repository</id> <name>WSO2 Snapshot Repository</name> <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url> </snapshotRepository> </distributionManagement> The maven-deploy-plugin version is 2.3. However, the password provided in the settings.xml file seems to be ignored. We are always getting this error: Error retrieving previous build number for artifact 'org.apache.axis2:axis2-parent:pom': repository metadata for: 'snapshot org.apache.axis2:axis2-parent:SNAPSHOT' could not be retrieved from repository: wso2-snapshot-repository due to an error: Authentication failed: Cannot connect. Reason: Auth fail However, we are able to SSH to that machine using the same username & password given in the settings.xml file. Any idea what could be the problem? We also noticed that the keyboard interaction is used even when the password is supplied and this seems to be a bug http://jira.codehaus.org/browse/WAGON-237 -- Thanks Afkham Azeez Blog: http://afkham.org --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
