You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Afkham Azeez <af...@gmail.com> on 2010/01/20 20:00:19 UTC

mvn deploy:deploy does not work :(

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: mvn deploy:deploy does not work :(

Posted by "Gorham-Engard, Frank" <Fr...@cable.comcast.com>.
Hi Afkham Azeez
The id is the field that connects the server entry to the repository entry. It should be the same in both places. And you need a server entry for each repository.

<!-- Frank Gorham-Engard →


-----Original Message-----
From: Afkham Azeez [mailto:afkham@gmail.com] 
Sent: Wednesday, January 20, 2010 2:00 PM
To: Maven Users List
Subject: mvn deploy:deploy does not work :(

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org