On 18 Feb 2008, Sunita Pahwa wrote:

> I am using archiva 1.0.1 standalone version. I am trying to deploy my
> artifact to archiva 'internal' repository using 'mvn: deploy'.
> 1) I have done following changes to my artifact's POM:
> -added <repository> and <snapshotRepository> sections under
> <distributionManagement> element with appropriate <id> and <url>
> -added <build>
>       <extensions>
>         <extension>
>           <groupId>org.apache.maven.wagon</groupId>
>           <artifactId>wagon-webdav</artifactId>
>           <version>1.0-beta-2</version>
>         </extension>
>       </extensions>
>     </build>
> 
> 
> 2) In Maven's setting.xml, added one server configuration with archiva user
> name and password. User name is for administrator having 'repository
> manager' rights.

What is the <id> you are using for the <server> entry?

> On mvn:deploy, it gives following error:
> WARNING: No credentials available for the 'Repository Archiva Managed
> Internal Repository' authentication realm at localhost

The <id> under <server> in settings.xml must match the one from your
pom.xml file und <distributionManagement><repository>. It seems this does
not match in your case.

> I have followed all the steps specified at
> http://maven.apache.org/archiva/docs/1.0/userguide/deploy.html but it is not
> working.

Unfortunately this documentation is somewhat inconsistent regarding the
id's in the settings.xml and pom.xml file.

hth,
- martin
-- 
Martin Höller                   | [EMAIL PROTECTED]
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Attachment: signature.asc
Description: PGP signature

Reply via email to