Did that, also added a distributionManagement section in the pom like the 
following

<distributionManagement>
        <repository>
                <id>nexus</id>
                
<url>scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots</url>
        </repository>
</distributionManagement> 


And I still get the exact same error

--------------------------------------------
Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate | La direction générale des applications
Chief Information 
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-----Original Message-----
From: Ron Wheeler [mailto:rwhee...@artifact-software.com] 
Sent: Thursday, January 28, 2010 8:50 PM
To: Maven Users List
Subject: Re: Upload snapshot on nexus

http://www.sonatype.com/books/nexus-book/reference/ch14s04.html

Qureshi,Shahzad [Ontario] wrote:
> Hi all,
>
> I am having problem uploading a snapshot of my project to our internal 
> nexus repository. Everything else is working fine, I can download 
> plugins/dependencies, I am able to upload releases using the browser 
> but when I try to do mvn deploy for a snapshot of my project, I get
>
> [INFO] Error retrieving previous build number for artifact
> 'test:Archive:jar': repository metadata for: 'snapshot 
> test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
> central due to an error: Authentication failed: Cannot connect. Reason:
> connection is closed by foreign host
>
> I've done what this link mentioned here:
> http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-g
> ro up.html i.e. included snapshot repository to the public group and 
> created the settings.xml and everything is working except deploying of 
> the snapshot
>
> I don't have <distributionManagement> section in my pom file though, 
> does that matter? If so, what should go in there? Because I don't seem 
> to need it when deploying releases
>
> It seems to me that the reason its failing is because I need to 
> proivde login and password for the server where I am trying to upload 
> the snapshot("Authentication failed"), where do I specify that?
>
> Any help will be great
>
> Thanks
>
> --------------------------------------------
> Shahzad Qureshi
>
>
>   


---------------------------------------------------------------------
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

Reply via email to