archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kakunin" <akaku...@gmail.com>
Subject Re: Problems with deploying file into archiva
Date Wed, 21 Feb 2007 06:47:09 GMT
OK, I understand - it was not an Archiva problem - but Maven Problem.

Solution provided here
http://docs.codehaus.org/display/MAVENUSER/Deploying+3rd+Party+Jars+With+WebDAV(with
placing required libraries into maven lib) helped me.


2007/2/21, Alexey Kakunin <akakunin@gmail.com>:
>
> Hello. Thank you for suggestion - I tried to use -Durl=dav:http://my.server.com:8091/archiva/repository/xxx/
>   but got error:
>
> [INFO] [deploy:deploy-file]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot find
> wagon
> which supports the requested protocol: dav
>
> Component descriptor cannot be found in the component repository:
> org.apache.mav
> en.wagon.Wagondav.
>
>
> Seems it looks for related wagon plugin in some incorrect place.
>
>
> 2007/2/19, Joakim Erdfelt <joakim@erdfelt.com >:
> >
> > Several things to do.
> >
> > Make sure the ID you use here -> -DrepositoryId=xxxMavenRepo
> > is the same ID you use the appropriate <server> section of your
> > settings.xml.
> > That ID is how the command line deploy:deploy-file binds the credentials
> > found in the settings.xml to the deploy request.
> > Also, make sure you use the correct URL syntax.
> > It should read as
> > -Durl=dav:http://my.server.com:8091/archiva/repository/xxx/ for WebDAV.
> > Problem here, is that wagon-webdav is not present in the core maven
> > client installation.
> > So ... you cannot do anonymous webdav deployments with maven.
> >
> > - Joakim
> >
> > Alexey Kakunin wrote:
> > > Hello!
> > > I just checked out and built latest version of archiva and tried to
> > use.
> > > First I tried to make it working under Tomcat.... in general it
> > > started to
> > > work - but...
> > > Finally I decied to switch to archiva-plexus-runtime  -about tomcat
> > > problems
> > > I will write a little bit later.
> > >
> > > So, under as plexus runtime it started to work much better - I created
> > > repository xxx, I created user and assigned roles for this user:
> > > Repository Manager - xxx
> > > Repository Observer - xxx
> > >
> > > I can open my http://my.server.com:8091/archiva/repository/xxx/ quite
> > > well
> > > as this user and browse it. But, then I'm trying to deploy file into
> > > repository with using:
> > > mvn deploy:deploy-file -DrepositoryId=xxxMavenRepo -Durl=
> > > http://my.server.com:8091/archiva/repository/xxx/ -DgroupId= .....
> > >
> > > I've got error 409.
> > >
> > > In the archiva logs I found followed:
> > >
> > >
> > ------------------------------------------------------------------------
> > > Feb 19, 2007 4:42:06 PM
> > > org.mortbay.jetty.servlet.ServletHandler$Context log
> > > INFO: RepositoryServlet: Authorization Denied
> > > [ip=192.168.2.118,isWriteRequest=true,permission=archiva-upload-repository]
> >
> > >
> > > : no matching permissions
> > > -->>> request
> > ----------------------------------------------------------
> > > --> http://my.server.com:8091/repository
> > > PUT
> > > /archiva/repository/xxx/jspwiki/java2html/2.4.6/java2html-2.4.6.jar
> > > HTTP/1.1
> > > User-Agent: Java/1.5.0_06
> > > Host: www.emforge.org:8091
> > > Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> > > Connection: keep-alive
> > > Content-Length: 192282
> > > Authorization: Basic YWtha3VuaW46ZW1mMHJnZQ==
> > >
> > >
> > >
> > > It seems like user I'm using for uploading has no right for upload (I
> > > specified user name and password in maven2 settings.xml).
> > >
> > > I'm using Linux as server and WinXP as client. Seems I missed
> > > something in
> > > configuration - could anybody point me?
> > >
> > >
> >
> >
>
>
> --
> With Best Regards,
> Alexey Kakunin, EmDev Limited
>
> Professional Software Development:
> http://www.emdev.ru
>



-- 
With Best Regards,
Alexey Kakunin, EmDev Limited

Professional Software Development:
http://www.emdev.ru

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message