You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Sunita Pahwa <pa...@gmail.com> on 2008/02/18 10:11:33 UTC

deploying to archiva repository

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.

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

In Archiva log, following error shows up

NFO: RepositoryServlet: Authorization Denied [ip=127.0.0.1
,isWriteRequest=true,
ermission=archiva-upload-repository,repo=internal] : no matching permissions

Can anyone tell me, how to resolve this.
What should be the id for server in settings.xml?
The user id given in settings.xml has role of 'Repository Manager' .
I have followed all the steps specified at
http://maven.apache.org/archiva/docs/1.0/userguide/deploy.html but it is not
working.

Thanks in advance.

Re: deploying to archiva repository

Posted by Martin Hoeller <ma...@xss.co.at>.
Hi Wendy!

On 18 Feb 2008, Wendy Smoak wrote:

> On Feb 18, 2008 4:35 AM, Martin Hoeller <ma...@xss.co.at> wrote:
> > On 18 Feb 2008, Sunita Pahwa wrote:
> > > 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.
> 
> Thanks, Martin.  I fixed that in the docs for the next version, which
> you can see at http://maven.apache.org/archiva/docs/1.1-SNAPSHOT/userguide/deploy.html

I had a look and it is much clearer now. Thanks for fixing it.

> We've also just added a 'known issues and errata' page and linked to
> it from the downloads page.

Good idea!

> Please let us know if you see anything else that needs to be
> corrected.  (Preferably on the Archiva mailing lists or JIRA --
> http://maven.apache.org/archiva/mail-lists.html .)

Well, I already posted an issue on the archiva list [0], where following
the documentation brought me... nowhere. Unfortunately no response so
far. Maybe you can have a look.

thanks again,
- martin

[0] http://www.nabble.com/Separating-the-base-from-the-installation-not-working-to15542875s177.html
-- 
Martin Höller                   | martin.hoeller@xss.co.at
*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

Re: deploying to archiva repository

Posted by Wendy Smoak <ws...@gmail.com>.
On Feb 18, 2008 4:35 AM, Martin Hoeller <ma...@xss.co.at> wrote:
> On 18 Feb 2008, Sunita Pahwa wrote:
> > 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.

Thanks, Martin.  I fixed that in the docs for the next version, which
you can see at http://maven.apache.org/archiva/docs/1.1-SNAPSHOT/userguide/deploy.html

We've also just added a 'known issues and errata' page and linked to
it from the downloads page.

Please let us know if you see anything else that needs to be
corrected.  (Preferably on the Archiva mailing lists or JIRA --
http://maven.apache.org/archiva/mail-lists.html .)

HTH,
-- 
Wendy

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


Re: deploying to archiva repository

Posted by Martin Hoeller <ma...@xss.co.at>.
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                   | martin.hoeller@xss.co.at
*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